# check if a domain exists, this should result in an NXDomain (section 3.2.1)
# if the check fails, it will delete a record, which should not happen.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxdomain host-255.test.dyndns
# check if the record exists, should result in an NXRRSET (section 3.2.1)
# if the check fails, it will delete a record.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxrrset host-255.test.dyndns A
# check if host-2 does not exist, if so, delete host-2.
# this checks section 3.2.2
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq nxdomain host-2.test.dyndns
cleandig host-2.test.dyndns A
# check if the specific record type styll exists, if not the case, delete it.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq nxrrset host-2.test.dyndns A
cleandig host-2.test.dyndns A
# Check ENT records
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxdomain host.test.dyndns
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='host-255.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NXDOMAIN ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NXDOMAIN, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='host-1.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NXRRSET ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NXRRSET, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='host-2.test.dyndns.', qtype=A
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: YXDOMAIN ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: YXDOMAIN, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='host-2.test.dyndns.', qtype=A
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: YXRRSET ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: YXRRSET, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='host-2.test.dyndns.', qtype=A
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NXDOMAIN ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NXDOMAIN, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
# query to see if the records that we need, are actually there.
cleandig multi.test.dyndns ANY
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxrrset multi.test.dyndns IN A 127.0.0.1
answer
!
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxrrset multi.test.dyndns IN A 127.0.0.1
answer
!
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxrrset multi.test.dyndns IN A 127.0.0.1
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='multi.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NXRRSET ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NXRRSET, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NXRRSET ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NXRRSET, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig big-txt.test.dyndns TXT
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add big-txt.test.dyndns. 600 TXT "99 bottles of beer on the wall, 99 bottles of beer. Take one down, pass it around, 98 bottles of beer on the wall."
# check if things are added
cleandig big-txt.test.dyndns TXT
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete big-txt.test.dyndns. TXT
cleandig cname3.test.dyndns CNAME hidesoadetails
# add mx record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add cname3.test.dyndns. 3600 CNAME cname1.test.dyndns.
cleandig cname3.test.dyndns CNAME
# delete the just added record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete cname3.test.dyndns. 3600 CNAME cname1.test.dyndns.
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='cname3.test.dyndns.', qtype=CNAME
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='cname3.test.dyndns.', qtype=CNAME
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig test.dyndns MX
# add mx record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3000 MX 30 host-3.test.dyndns
cleandig test.dyndns MX
# delete the just added record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete test.dyndns. 3000 MX 30 host-3.test.dyndns
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=MX
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=MX
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig abc.add-delete.test.dyndns ANY hidesoadetails
# add a record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq nxrrset *.add-delete.test.dyndns TXT
cleandig abc1.add-delete.test.dyndns ANY
# delete the just added record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxrrset *.add-delete.test.dyndns TXT
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='abc.add-delete.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='abc1.add-delete.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig add-delete.test.dyndns ANY hidesoadetails
# add a record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq nxrrset add-delete.test.dyndns A
cleandig add-delete.test.dyndns ANY
# delete the just added record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxrrset add-delete.test.dyndns A
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='add-delete.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='add-delete.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
#!/bin/sh
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test2.dyndns. 3600 SOA ns2.test.dyndns. ahu.example.dyndns. 2050100999 28800 7200 604800 86400
answer
!
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test2.dyndns
update add test2.dyndns. 3600 SOA ns2.test.dyndns. ahu.example.dyndns. 2050100999 28800 7200 604800 86400
answer
!
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test2.dyndns. 3600 SOA ns2.test.dyndns. ahu.example.dyndns. 2050100999 28800 7200 604800 86400
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOTZONE ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOTZONE, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOTAUTH ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOTAUTH, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test2.dyndns. IN SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOTZONE ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOTZONE, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig d.d.host.test.dyndns ANY dnssec hidesoadetails
cleandig e.e.host.test.dyndns ANY dnssec hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add c.host.test.dyndns 3600 NS ns1.c.host.test.dyndns
cleandig d.d.host.test.dyndns ANY dnssec hidesoadetails
cleandig e.e.host.test.dyndns ANY dnssec hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete c.host.test.dyndns NS
cleandig d.d.host.test.dyndns ANY dnssec hidesoadetails
cleandig e.e.host.test.dyndns ANY dnssec hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete ns1.c.host.test.dyndns A
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='e.e.host.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='e.e.host.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='e.e.host.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig delegate1.test.dyndns ANY hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add delegate1.test.dyndns 3600 NS ns1.delegate1.test.dyndns
cleandig delegate1.test.dyndns ANY
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add ns1.delegate2.test.dyndns 3600 A 192.168.0.3
cleandig delegate2.test.dyndns ANY
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete delegate2.test.dyndns NS
cleandig ns1.delegate2.test.dyndns ANY
cleandig ns2.delegate2.test.dyndns ANY
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete ns1.delegate2.test.dyndns A
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='delegate1.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
Reply to question for qname='delegate1.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 0, opcode: 0
Reply to question for qname='delegate2.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='ns2.delegate2.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig delete-add.test.dyndns ANY
# add the record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete delete-add.test.dyndns. 3600 A 127.0.0.108
cleandig delete-add.test.dyndns ANY
# add the record again
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add delete-add.test.dyndns. 3600 A 127.0.0.108
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='delete-add.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='delete-add.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
# delete all delete-add.test.dyndns records
# add-records that we deleted.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete delete-add.test.dyndns.
cleandig delete-add.test.dyndns ANY hidesoadetails
# add-records that we deleted.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add delete-add.test.dyndns. 3600 A 127.0.0.108
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='delete-add.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='delete-add.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig test.dyndns MX hidesoadetails
# Insert a MX record for the test.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns 3600 MX 100 mx1.google.com.
cleandig test.dyndns MX
# remove a MX record, with the wrong priority, so this should not match.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete test.dyndns 3600 MX 50 mx1.google.com.
cleandig test.dyndns MX
# Finally delete it for real.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete test.dyndns 3600 MX 100 mx1.google.com.
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=MX
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=MX
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=MX
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig test.dyndns NS
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete test.dyndns. NS
cleandig test.dyndns NS
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete test.dyndns. 3600 NS ns1.test.dyndns.
cleandig test.dyndns NS
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete test.dyndns. 3600 NS ns1.test.dyndns.
cleandig test.dyndns NS
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3600 NS ns1.test.dyndns.
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=NS
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=NS
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=NS
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=NS
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig test.dyndns SOA hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete test.dyndns. SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig e.host.test.dyndns ANY dnssec hidesoadetails
cleandig f.host.test.dyndns ANY dnssec hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add d.host.test.dyndns. 3600 A 127.0.0.1
cleandig e.host.test.dyndns ANY dnssec hidesoadetails
cleandig f.host.test.dyndns ANY dnssec hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete d.host.test.dyndns. 3600 A 127.0.0.1
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='f.host.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='f.host.test.dyndns.', qtype=ANY
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig replace.test.dyndns A
# replace the value
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete replace.test.dyndns. A
cleandig replace.test.dyndns A
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
prereq yxrrset replace.test.dyndns. A
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='replace.test.dyndns.', qtype=A
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='replace.test.dyndns.', qtype=A
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
#!/bin/sh
cleandig cname1.test.dyndns CNAME
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add cname1.test.dyndns. 3600 CNAME host-2.test.dyndns.
cleandig cname1.test.dyndns CNAME
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add cname1.test.dyndns. 3600 CNAME host-1.test.dyndns.
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='cname1.test.dyndns.', qtype=CNAME
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='cname1.test.dyndns.', qtype=CNAME
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
#!/bin/sh
cleandig test.dyndns MX
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3000 MX 10 host-1.test.dyndns.
cleandig test.dyndns MX
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3600 MX 10 host-1.test.dyndns.
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=MX
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=MX
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
cleandig srv.test.dyndns SRV hidesoadetails
# Insert a SRV record
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add srv.test.dyndns 3600 SRV 0 100 389 server1
cleandig srv.test.dyndns SRV
# Insert anthoer with different prio, and update the other.
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add srv.test.dyndns 3600 SRV 1 100 389 server2
cleandig srv.test.dyndns SRV
# And cleanup
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update delete srv.test.dyndns SRV
Rcode: 3, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='srv.test.dyndns.', qtype=SRV
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='srv.test.dyndns.', qtype=SRV
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
#!/bin/sh
cleandig ttl.test.dyndns A
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add ttl.test.dyndns. 31337 A 127.0.0.1
cleandig ttl.test.dyndns A
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add ttl.test.dyndns. 3600 A 127.0.0.1
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='ttl.test.dyndns.', qtype=A
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='ttl.test.dyndns.', qtype=A
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
#!/bin/sh
cleandig test.dyndns SOA hidesoadetails
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3600 SOA ns2.test.dyndns. ahu.example.dyndns. 2050101000 28800 7200 604800 86400
cleandig test.dyndns SOA
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3600 SOA ns2.test.dyndns. ahu.example.dyndns. 2050101000 28800 7200 604800 86400
cleandig test.dyndns SOA
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3600 SOA ns2.test.dyndns. ahu.example.dyndns. 2050100999 28800 7200 604800 86400
cleandig test.dyndns SOA
-nsupdate <<! | sed 's/\, id:.*/ ID_REPLACED/'
+cleannsupdate <<!
server $nameserver $port
zone test.dyndns
update add test.dyndns. 3600 SOA ns2.test.dyndns. ahu.example.dyndns. 2050101001 28800 7200 604800 86400
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA
Rcode: 0, RD: 0, QR: 1, TC: 0, AA: 1, opcode: 0
Reply to question for qname='test.dyndns.', qtype=SOA
Answer:
-;; ->>HEADER<<- opcode: UPDATE, status: NOERROR ID_REPLACED
+;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id: [id]
;; flags: qr aa; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;test.dyndns. IN SOA