Skip to content
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

Order matters when updates involve CNAMEs #7

Open
Nothing4You opened this issue Aug 5, 2019 · 1 comment
Open

Order matters when updates involve CNAMEs #7

Nothing4You opened this issue Aug 5, 2019 · 1 comment

Comments

@Nothing4You
Copy link

Hi,
I just ran into the following issue:

nsupdate commands queued:
server localhost
zone example.com
update add    c.example.com. 600 IN A 10.10.10.10
update add    c.example.com. 600 IN AAAA fe80::1
update delete c.example.com. IN CNAME foo.example.com.
update add    c.example.com. 300 IN MX 10 mail.example.com.
update add    c.example.com. 300 IN TXT "v=spf1 redirect=mail.example.com"
send
answer

[S]end, [e]dit, send and edit [a]gain, [q]uit: [s]

Answer:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:  24821
;; flags: qr; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 1
;; ZONE SECTION:
;example.com.                IN  SOA

;; TSIG PSEUDOSECTION:
keyname.     0   ANY TSIG    hmac-sha512. ... NOERROR 0

bind9 log:

Aug 05 17:05:17 dns.example.com named[293]: client @0x7f25980416a0 ::1#41081/key keyname: signer "keyname" approved
Aug 05 17:05:17 dns.example.com named[293]: client @0x7f25980416a0 ::1#41081/key keyname: updating zone 'example/IN': attempt to add non-CNAME alongside CNAME ignored
Aug 05 17:05:17 dns.example.com named[293]: client @0x7f25980416a0 ::1#41081/key keyname: updating zone 'example/IN': attempt to add non-CNAME alongside CNAME ignored
Aug 05 17:05:17 dns.example.com named[293]: client @0x7f25980416a0 ::1#41081/key keyname: updating zone 'example/IN': deleting an RR at c.example CNAME
Aug 05 17:05:17 dns.example.com named[293]: client @0x7f25980416a0 ::1#41081/key keyname: updating zone 'example/IN': adding an RR at 'c.example' MX 10 mail.example.com.
Aug 05 17:05:17 dns.example.com named[293]: client @0x7f25980416a0 ::1#41081/key keyname: updating zone 'example/IN': adding an RR at 'c.example' TXT "v=spf1 redirect=mail.example.com"
Aug 05 17:05:18 dns.example.com named[293]: zone example/IN: sending notifies (serial 17)
@Nothing4You
Copy link
Author

similarly, when changing all NS records for a domain, bind9 will refuse to remove the last ns record.
at least one new record needs to be added before the last old record can be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant