Wednesday, March 30, 2011

DNS setup in Redhat 5.5 64bit

when i try to resolve ip it working fine

[root@tc1dns1 internal]# nslookup 10.65.136.137
Server: 10.65.136.143
Address: 10.65.136.143#53

137.136.65.10.in-addr.arpa name = tc1oltpdb2.mydomian.


But when i try to resolve named it showing me below error.


[root@tc1dns1 internal]# nslookup tc1oltpdb2.mydomainf
Server: 10.65.136.143
Address: 10.65.136.143#53

** server can't find tc1oltpdb2.mydomain: NXDOMAIN



Resolution:-

Problem in my named.conf

zone "new.mydomain." IN {
type master;
file "data/internal/mydomain.zone";
allow-update { none; };
};



in zone line i used new.mydomain but in file using just mydomain...so match the same setting save the file ..restart the servcie.


[root@tc1dns1 internal]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named: [ OK ]
[root@tc1dns1 internal]# nslookup tc1oltpdb2.mydomain
Server: 10.65.136.143
Address: 10.65.136.143#53

Name: tc1oltpdb2.mydomain
Address: 10.65.136.137


working fine.

0 comments: