.
.
How to Setup a DNS server with BIND9.
# apt-get install bind9
Configure a master domain:
# vim /etc/bind/named.conf
zone “provaes.com” {
type master;
file “/etc/bind/db.provaes.com”;
};
Create the master zone file:
# vim /etc/bind/db.provaes.com
; register SOA
provaes.com. IN SOA dns.provaes.com. root.local. (
1
1D
2H
1W
3H
)
provaes.com. IN NS 172.7.101.161
provaes.com. IN A 172.7.96.1
dns IN A 172.7.96.6
Configure to use my DNS server:
# vim /etc/resolv.conf
nameserver 172.7.101.161