Mar 11

You can retrieve root zone file by visiting Login as anonymous user and get db.cache file from domain subdirectory.

Use wget command to retrieve file and store to /etc/bind/db.root (Debian / Ubuntu Linux), enter:
# wget --user=ftp --password=ftp -O /etc/bind/db.root

Under Red Hat / CentOS / Fedora Linux, default location is /var/named/named.root, enter:
# wget --user=ftp --password=ftp -O /var/named/chroot/var/named/

Reload rndc to update information, enter:
# rndc reload

Another option is run dig command to fetch information:
# dig +bufsize=1200 +norec NS . > /var/named/named.root

The root zone’s nameservers change over time, don’t assume this list is current. Always download a new version of db.cache once or twice year is sufficient. You can also schedule cron jon to update file.

written by MG \\ tags: , ,