hen I would is to setup a DNS server , so that server in the network can use it to resolve hostname .
I just would like to setup bind server on my centos ( only have primary DNS server ) , I follow the step to setup it as below , but fail
I add the following lines in /etc/named.conf
#vi /etc/named.conf
Code:
zone "testserver" IN {
type master;
file "/etc/fwd.testserver.db";
allow-update { none; };
};
#vi /etc/fwd.testserver.db
Code:
$TTL 86400
@ IN SOA primary.myserver.com. root.myserver.com. (
2014112511 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL
)
;Name Server Information
@ IN NS primary.myserver.com.
;IP address of Name Server
primary IN A 192.168.1.10
;A - Record HostName To Ip Address
www IN A 192.168.1.20
;CNAME record
where my DNS server is myserver.com (192.168.1.10 ) , the server I want to resolve is 192.168.1.20 ( hostname is testserver )
while I ping testserver , it is not work.
would advise what is wrong in my seting .