Hi,
I have configured my machine as DNS server. If I type nslookup I am getting
the prompt :
Default Server : localhost
Address : 127.0.0.1
>
at the prompt if I type IP say 160.1.1.2 then it gives me the correct
hostname scosysv
However if at the prompt I type the hostname scosysv than it gives me error :
*** localhost can't find scosysv : Server failed.
=======================================================
My /etc/named.conf contains the following :
options {
directory "/var/named";
};
zone "." {
type hint;
file "root.hints";
};
zone "sco"{
type master;
file "pz/sco";
notify no;
};
zone "0.0.127.in-addr.arpa"{
type master;
file "pz/127.0.0";
};
zone "1.1.160.in-addr.arpa"{
type master;
file "pz/160.1.1";
};
=======================================================
=======================================================
/var/named/pz/127.0.0 contains the following :
@ IN SOA dempolinux rajesh (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS dempolinux.edp.
1 IN PTR localhost.
=======================================================
=======================================================
/var/named/pz/sco contains the following :
@ IN SOA dempolinux.edp rajesh.dempolinux.edp (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS dempolinux.edp.
localhost IN A 127.0.0.1
dempolinux IN A 160.1.1.3
scosysv IN A 160.1.1.2
rajeshpc IN A 160.1.1.12
=======================================================
=======================================================
/var/named/pz/160.1.1 contains the following :
@ IN SOA dempolinux rajesh (
2000090601 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; default_ttl
)
@ IN NS dempolinux.edp.
2 IN PTR scosysv.
3 IN PTR dempolinux.edp.
12 IN PTR rajeshpc.
=======================================================
Sorry for this long mail.
What am I doing wrong ? Can anybody help out on this ?
Thanks in advance.
Regards
Rajesh
Dempo House,
Campal,
Panaji, 403 001
GOA. INDIA.
-----------------------------------
Telephone: 91(832)226281 to 286
Fax: 91(832)225098 / 228588
E-mail: [EMAIL PROTECTED]
URL: http://www.dempos.com
-----------------------------------
----------------------------------------------
The mailing list archives are available at
http://lists.linux-india.org/cgi-bin/wilma/LIH