Generate new dnsroots.global for dnscache

When dnscache is not in forwarding mode, the Internet's root DNS servers are contacted for DNS resolution. IP addresses for these servers is "hard-coded" into djbdns by way of configuration files. Sometimes the IP addresses for the Internet's root DNS servers change (though infrequent), and these configuration files need to be updated.

To update the relevant files:

   1 mv /etc/dnsroots.global /etc/dnsroot.global.old
   2 dnsip `dnsqr ns . | awk '/answer:/ { print $5; }' |sort` \
   3   > /etc/dnsroots.global
   4 cp /etc/dnsroots.global /service/dnscache/root/servers/@
   5 svc -du /service/dnscache


CategoryCheetSheet