Setup Bind9 DNS Server on Debian Linux
- 1. Install bind9 DNS server
- aptitude install bind9
- 2. Edit the configuration file:
- vi /etc/bind/named.conf.local
zone "yourdomain.org" {
type master;
file "/etc/bind/db.yourdomain.org";
};
zone "168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.168.192";
};
- 3. Create the db.yourdomain.org file
- vi /etc/bind/db.yourdomain.org
$ttl 86400
@ IN SOA ldapserver.youdomain.org. root.ldapserver.youdomain.org. (
20070719
21600
3600
604800
3600 )
;
ldapserver IN A 192.168.20.10
@ IN NS ldapserver
hosta IN A 192.168.20.11
hostb IN A 192.168.20.12
hostc IN A 192.168.20.13
- 4. Create the db.168.192 file:
- vi /etc/bind/db.168.192
$TTL 86400
@ IN SOA ldapserver.youdomain.org. root.ldapserver.youdomain.org. (
20070719 ; Serial
21600 ; Refresh
3600 ; Retry
604800 ; Expire
3600 ) ; Negative Cache TTL
;
10.20 IN PTR ldapserver.youdomain.org.
11.20 IN PTR hosta.youdomain.org.
12.20 IN PTR hostb.youdomain.org.
13.20 IN PTR hostb.youdomain.org.
@ IN NS ldapserver.youdomain.org.
- 5. Restart the bind9 DNS server
- /etc/init.d/bind9 restart
page revision: 6, last edited: 11 Nov 2008 02:22





