Friday, June 26, 2009

BIND DNS Implementation Notes

Bind 9.x
SUNWbind(client & server utilities) & SUNWbindr(SMF)

Steps to configure DNS:
1. Create /etc/named.conf - primary named/BIND/DNS configuration file

options {
directory "/var/named";
};

###Special zone indicating the root of the DNS hierarchy###
###Downloaded named.root from: ftp://ftp.rs.internic.net/domain/named.root##
zone "." {
type hint;
file "db.cache";
};

###Reverse Zones###
zone "0.0.127.in-addr.arpa" {
type master;
file "db.127.0.0";
};

zone "1.168.192.in-addr.arpa" {
type master;
file "db.192.168.1";
};
zone "20.16.172.in-addr.arpa" {
type master;
file "db.172.20.16";
};


###Forward Zones###
zone "unixcbt.internal" {
type master;
file "db.unixcbt.internal";
};

###Zone File Syntax###
Note: @ is a variable, which indicates the name of the zone as configured in /etc/named.conf

svcadm enable dns/server

Note: With or without master domains, BIND functions as a caching-only NS

Our server is configured to be:
1. Caching-Only Server
2. Authoritative Server


###Mail Exchanger(MX) Record Setup###
Note: Implement MX via 2 records
1. IN MX 10 mail.unixcbt.internal
2. mail IN A 192.168.1.197

###Slave DNS Server Configuration###
Note: There really isn't a Slave DNS Server with BIND, however, there is a SLAVE ZONE

Steps:
1. copy the following files to slave server:
a. db.127.0.0 - houses reverse, loopback zone info.
b. db.cache - houses root hints
c. named.conf - primary DNS BIND configuration file

Note: DNS BIND server can also be a slave server in addtion to caching-only and authoritative server.



Readers who read this page, also read:




Bookmark and Share My Zimbio http://www.wikio.com

0 comments: