Skip to content

Instantly share code, notes, and snippets.

@plembo
Last active August 27, 2020 18:08
Show Gist options
  • Save plembo/1acf5846e0646c58f6764285497be258 to your computer and use it in GitHub Desktop.
Save plembo/1acf5846e0646c58f6764285497be258 to your computer and use it in GitHub Desktop.
BIND 9 Admin: Reloading Zones

Reloading zones in BIND 9

Whenever you made changes in a BIND zone file that zone will need to be reloaded.

This can be done in two ways on a DNS master server:

  1. Restart the BIND service (for example, on an Ubuntu server):
$ sudo systemctl restart bind9
  1. Update using the rndc tool:
$ sudo rndc reload example.com
$ sudo rndc reload 0.16.172.in-addr.arpa

Note in the case above both the forward and reverse lookup zones are reloaded.

For DNS slaves, you can either:

  1. Wait for the master to pass down the updates.

  2. Use rndc, exactly as above.

I always use rndc on both my master and slave servers because: (a) it doesn't require restarting the service; and (b) the change is immediate.

NOTE: Always remember to update the serial number on changed zone files before reloading, otherwise the changes will be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment