You are on page 1of 3

DSN server

setup
1. Install the packet

# yum install bind*

2. Go to edit the file named.conf

# vi /etc/named.conf

And then enter the following

listen-on port 53 { 127.0.0.1; 192.168.88.1; }; (ip address of server)


allow-query { localhost; 192.168.88.0/24;}; (network address of server)
.
.
.
dnssec-lookaside auto;

zone "example.com" IN { go to command prompt


type master; and type hostname to
file"fwd.example.com"; hostname/servername
allow-update { none;};
};
zone "88.168.192.in-addr.arpa" IN {
type master;
file"rev.example.com";
allow-update {none;};

3. Create forward zone

# vim /var/named/fwd.lovekhmer.com

$TTL 86400
@ IN SOA localhost.localdomain.example.com. root.example.com. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS localhost.localdomain.example.com.
localhost.localdomain IN A 192.168.88.1
www IN A 192.168.88.1
www.example.com IN A 192.168.88.1

4. Create reverse zone

# vi /var/named/rev.lovekhmer.com

$TTL 86400
@ IN SOA localhost.localdomain.example.com. root.example.com. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
@ IN NS localhost.localdomain.example.com.
localhost.localdomain IN A 192.168.88.1
1 IN PTR server1.lovekhmer.com.

5. Go to edit resolve file


# vim /etc/resolv.conf
And enter the following
# Generated by
NetworkManager
domain example.com
search example.com
nameserver 192.168.88.1

6. Start Bind service


7. Testing the DNS server

# nslookup localhost.localdomain.example.com

Testing DNS
with webserver
# yum install httpd

You might also like