Generate new 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/ /etc/
   2 dnsip `dnsqr ns . | awk '/answer:/ { print $5; }' |sort` \
   3   > /etc/
   4 cp /etc/ /service/dnscache/root/servers/@
   5 svc -du /service/dnscache


SamatsWiki: CheatSheet/djbdns (last edited 2009-06-27 20:20:54 by SamatJain)