none:0: open: /etc/rndc.key: file not found
couldn't add command channel ::1#953: file not found
command channel listening on 127.0.0.1#953
command channel listening on ::1#953
which indicates that the rndc.key can be read successfully.
25-May-2014 10:35:47.302 received control channel command 'reload utopia.ncnu.org'
25-May-2014 10:35:47.303 zone utopia.ncnu.org/IN: loaded serial 2014052400
key "diana" {
algorithm HMAC-MD5;
secret "BRy5u4ez+gFltrM/+UAdyg==";
};
include "/var/named/keys.conf";
before the "options" statement.
zone "utopia.ncnu.org" {
type master;
file "utopia.ncnu.org";
allow-update { key "diana"; };
};
zone "utopia.ncnu.org" {
type master;
file "utopia.ncnu.org";
allow-update { key "diana";
key "apollo";
};
};
server ns1.utopia.ncnu.org
zone utopia.ncnu.org.
update delete A.utopia.ncnu.org.
update add A.utopia.ncnu.org. 86400 AAAA 2001::1
send
update add A.utopia.ncnu.org. 86400 A 10.0.0.1
send
From the window of DNS daemon running in foreground,
you can see that the DNS daemon will receive the update request
when you type the "send" command. This implies that it is more
efficient to aggregate multiple updating commands in a request and send
them out altogether.
server ns1.utopia.ncnu.org
zone utopia.ncnu.org.
update add L.utopia.ncnu.org. 300 A 10.10.10.12
send
and run the command "nsupdate -k Kdiana.+157+30155.private -v my-nsupdate.txt".
update delete A.utopia.ncnu.org AAAA 2001:e10:6840::11
send
Now query the ns1.utopia.ncnu.org DNS server directly by
"host -t AAAA A.utopia.ncnu.org ns1.utopia.ncnu.org", you see only an IPv6 address is left. If you want to remove all resource record corresponding to the AAAA record type, you may simply give the command in nsupdate:
update delete A.utopia.ncnu.org AAAA
send
masters "claudia-master" {
2001:e10:6840:20:208:a1ff:fe4e:3f00; // IP addr of master server
163.22.20.101;
};
zone "ncnu.org" {
type slave;
file "data/ncnu.org";
masters { claudia-master; };
allow-query { any; };
};
NS ns1.utopia.ncnu.org.
This will allow the master DNS server to know which slave DNS servers to
notify whenever the zone file is updated.
28-May-2014 18:53:59.036 zone ncnu.org/IN: transferred serial 2014052801
28-May-2014 18:53:59.036 transfer of 'ncnu.org/IN' from 2001:e10:6840:20:208:a1ff:fe4e:3f00#53: Transfer completed: 1 messages, 59 records, 1496 bytes, 0.106 secs (14113 bytes/sec)
28-May-2014 18:53:59.036 zone ncnu.org/IN: sending notifies (serial 2014052801)