-
Notifications
You must be signed in to change notification settings - Fork 397
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
Nameserver entries are incorrectly modified or created when using AutoDNS #3018
Comments
I also found another bug while testing. In example 2 you can see that 83 entries are not deleted due to NO_PURGE. Unfortunately, these are deleted during the push! |
CC'ing @arnoschoon (maintainer of the AutoDNS provider). (I don't have access to a test account for AutoDNS) By the way... the source to |
Hi @lug-gh, Thanks for reaching out and your patience. Can you supply me with the exact version (and possibly CLI command) you're using? I'm not able to reproduce the issue with nameservers you mention, but that might have something to do with my environment. I admit AutoDNS is a bit peculiar in it's nameserver handling, but from your example I can't find out if it's an actual issue or your using it in a more advanced way than I did when developing this provider. We're using the command below in our CI pipeline for several domains and I've not encountered this specific issue before. But had a hard time using those
Our
Please let me know if you are able to adapt to the example I've pasted here and if you still run into problems which version you are using. Best, |
Hi hi! I'm not sure if this is related but... IGNORE() doesn't ignore nameserve delegations (updating the parent or registrar). I'm not sure if that is going to affect this bug, I thought I'd mention it. As far as NO_PURGE deleting records when it should (possibly related to MODIFY-TTL): That is outside the control of Porkbun as it is part of the main system. Could you make a minimal repro case that demonstrates that bug? Please file that as a separate bug. Thanks! |
Hi @arnoschoon, sorry for the late response, I was away for a while and need to get back into the swing of things. I have only used the Docker image for testing purposes so far. The folder I am in only contains the creds.json and dnsconfig.js file. @tlimoncelli But well, then I'll split the issues now. This issue deals with the incorrect "CREATE" of the name servers with the "D" option. In the other issue I will deal with the deletion of the entries in connection with "DOMAIN_ELSEWHERE_AUTO". Correct? I hope it doesn't get too confusing and jumbled up. Scenario 1empty DNS zone, nothing but IGNORE('*')So, for reproduction purposes, simply create a DNS zone of your choice in AutoDNS (a domain is not required), e.g. dnscontrol-issue-3018-debug.com
This is a very minimalistic test environment, but sufficient to reproduce the error.
So, what happens in this scenario is exactly what is to be expected (if you know it), but with the incorrect display "CREATE" instead of "MODIFY". Scenario 2empty DNS zone, create an A record
Scenario 3existing dns record in DNS zone, IGNORE('*') and NS CREATE-> This is probably the most critical, because all existing DNS entries are deleted here! dnsconfig.js is identical to scenario 2, but there is now an additional DNS entry in the zone, which was created via the AutoDNS web interface.
-> second-record is gone, but the push (als also preview) showed it should be ignored. At this point I think I can save myself the second issue, because the behavior here is exactly the same as with "DOMAIN_ELSEWHERE_AUTO", the only difference is that with "DOMAIN_ELSEWHERE_AUTO" "MODIFY" of the NS entries is displayed correctly, whereas with "D" it is displayed as "CREATE". The error therefore seems to be anchored deeper in the code. I hope your mouse wheels are still working now :) |
NOTE: Have a general question? You'll get a better response on the dnscontrol-discuss email list!
Describe the bug
Depending on how my dnsconfig.js looks like, DNSControl wants to either create or modify my NS entries, even if I work with IGNORE(). I suspect it has to do with AutoDNS separating the nameservers and the rest of the resource records. In the resource records are all DNS entries of the zone, except the name servers, these are visible to the user in another menu item, and are then summarized by the AutoDNS backend for the zone.
To Reproduce
Example 1:
preview shows:
Since I use IGNORE("*"), the NS records should not be created, also, they already exist:
dig sub.example.org ns @a.ns14.net
Example 2
The preview shows that DNSControl wants to change the TTL of the name servers.
Expected behavior
DNSControl should not touch the name servers
DNS Provider
additional context
I have only just started using DNSControl, so I can't rule out the possibility that this is simply an operating error on my side, but the different behavior with regard to CREATE and MODIFY of the nameservers makes me very suspicious.
The text was updated successfully, but these errors were encountered: