User Tools

Site Tools


ubuntu:bind:configure_bind9

Ubuntu - Bind - Configure Bind9

Configuration Options

BIND9 can be configured in many different ways, mostly:

  • Caching Nameserver: BIND9 will find the answer to name queries and remember the answer when the domain is queried again.
  • Primary Nameserver: BIND9 reads the data for a zone from a file on its host and is authoritative for that zone.
  • Secondary Nameserver: BIND9 gets the zone data from another nameserver that is authoritative for the zone.

Configuration Files

The DNS configuration files are stored in /etc/bind.

The primary configuration file is /etc/bind/named.conf, which in the layout provided by the package just includes these files.

  • /etc/bind/named.conf.options: Global DNS options.
  • /etc/bind/named.conf.local: For your zones.
  • /etc/bind/named.conf.default-zones: Default zones such as localhost, its reverse, and the root hints.

NOTE: The root nameservers used to be described in the file /etc/bind/db.root.

This is now provided instead by the /usr/share/dns/root.hints file shipped with the dns-root-data package, and is referenced in the named.conf.default-zones configuration file mentioned above.

NOTE: BIND9 can be configured to be a caching name server, primary, and secondary at the same time: it all depends on the zones it is serving.

A server can be the Start of Authority (SOA) for one zone, while providing secondary service for another zone.

All the while providing caching services for hosts on the local LAN.

ubuntu/bind/configure_bind9.txt · Last modified: 2020/12/09 16:06 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki