-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report bugs in NLnetLabs NSD dns api #2245
Comments
I had to add the following in dns_nsd_add(): with no change in the serial the zonefile wasn't updated on on my second nameserver |
I will think about how to implement this. Because I sign with DNSSEC and have a separate script for that which I use for |
You are right. Maybe it is best to implement this in the Nsd_Command script. Otherwise it would try to change the serial multiple times it you want to issue for more subdomains or wildcard. edit: Well, sadly $Nsd_Command is run for each subdomain on addition of the TXT records and also on removal. |
There is no generic enough way to increment the serial number. I would have to use Basically you have to take care of this in custom scripts, which people using NSD usually already have. Mine increments the serial and signs the zone with DNSSEC and then reloads nsd (which also notifies slave nameservers). |
I also think there is no general approach, but in my zonefile the serial is the only 10-digit number around. I just changed it to "newserial=$(expr "$oldserial" + 1)" because it needs to be updated on addition and removal of the TXT records. |
I am wondering if The code and an explanation of choosing which authoritative servers for validation are explained in these links... PR #3198 along with Nsd_Command="nsd-control reload && nsd-control notify" removes this limitation for me. |
No, don't use awk anywhere. |
Ok. I will retract the PR and think of solving it another way. As a new user and not so experienced at POSIX shell, I am curious why |
Not sure if this is the right place to ask. Apologies in advance. I am looking for help with NSD dnsapi & acme.sh. I have multiple domains and I wish to issue a single certificate that has a wildcard for each domain. E.g.:
I cannot find documentation on how to achieve this with the NSD dnsapi because the configuration is only for a single zonefile for a single domain. Is this kind of issuing possible? Thank you. |
This seems to be exactly what you're after (and as far as I understand it is supported directly by nsd regardless of used dns api): Try it out and report back |
Thanks, plantroon. I read that but I don't understand how to configure a zonefile per domain. Do I not need to configure which zone files to update as per the docs? https://github.com/acmesh-official/acme.sh/wiki/dnsapi#76-use-nlnetlabs-nsd |
Ah sorry, I see the problem now. To preserve compatibility, I'd try adding Nsd_ZoneDir. Could you maybe share what your directory with zonefiles (zonesdir from nsd config) looks like? Like my /srv/dns/zones: Is this a common format to rely on? I have it like that Then we could simply address the files as the script has the full domain name and zonesdir from env variable (which is later saved to the domain's config in acme.sh) I'll get back when I have it (this evening or tomorrow) - the fix is easy, but testing it takes more time xD |
I did a quick trial with I didn't realise |
Oh, did you mean you can add the option for /usr/local/etc/nsd/zones/forward/unsigned/domain-a.com
/usr/local/etc/nsd/zones/forward/unsigned/domain-b.com
It would be great if I could place each of these into a directory like
Then have an option for the NSD dnsapi to find these based on names. |
So sorry I only got around to this now. I have no domains to test this on - I just realized that my freenom domains are dead and I have no way to verify if anything I change works. For now here is a prototype that could work. The code should be really easy to understand and debug. I will only do a PR once it's confirmed working and the code is good enough (or better than what I wrote long ago xD). If I manage to save my freenom domains somehow (I even had paid domains with them, silly me, luckily only unimportant ones), I'll be able to test this in the next weeks. Maybe I could use subdomains, but I didn't want to reconfigure my nsd since I didn't touch it in very long (bcos it works, with DNSSEC and everything :)) I also try to use separate certificates for unrelated services, though I understand that sometimes one wants to have everything in one certificate for use with non-web services without SNI. A sidenote, there are multiple requests for a similar feature. #799, #1278, #3779, #3988 |
This is the place to report bugs in the NLnetLabs NSD API.
If you experience a bug, please report it in this issue.
Thanks!
The text was updated successfully, but these errors were encountered: