Example DNS Zone File for BIND9

Valic —  August 18, 2011 — 2 Comments

Sample DNS zone file for BIND9 with a domain with two nameservers  ns1.example.com and ns2.example.com.

You can use this example to define your own name servers.Just make changes to the domain name and IP addresses.

Be sure to include first the following statement in named.conf:

zone "debian-tutorials.com" {
type master;
file "

The zone file looks like this:

$ORIGIN debian-tutorials.com.
@    IN    SOA    debian-tutorials.com.   contact@debian-tutorials.com. (
86400 )
Continue Reading…

After I needed a DNS server DNS server, I decided the best idea would probably be to write this howto myself…. So, here it is:

Step 1. Install bind9:

apt-get install bind9

Step 2: Configure the main Bind files. Usually, if you install Bind from the source code, you will have to edit the file
named.conf. However, Debian provides you with a pre-configured Bind, so we will edit another file:

vim /etc/bind/named.conf.local

Continue Reading…

Page 1 of 11