-
named issue
Hello,
I'm starting up with named and I've ran into trouble while getting it to work. I've setup the forwarders correctly on /etc/named.conf and can now use the server (IP is 192.168.2.200) to perform queries on sites on the . zone, as resolv.conf only contains my name server:
Code:
nslookup www.yahoo.com
Server: 192.168.2.200
Address: 192.168.2.200#53
Non-authoritative answer:
www.yahoo.com canonical name = www.yahoo.akadns.net.
Name: www.yahoo.akadns.net
Address: 216.109.118.73
Then I set up a local zone on named.conf, on which I wanted to register the machines on my network: Code:
zone "home.brr" IN {
type master;
file "home.brr";
allow-query{ any; };
};
The /var/named/home.brr file looks like this: Code:
@ IN SOA ns.home.brr. nsadmin.home.brr. (
20060122 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; minimum
)
IN NS ns.home.brr.
ns IN NS 192.168.2.200
ns IN HINFO Server (P3 800MHz, 384MB, 60GB)
serv IN CNAME ns
However, nslookup returns me an error each time I try to query any host on my network:
Code:
nslookup ns.home.brr
Server: 192.168.2.200
Address: 192.168.2.200#53
** server can't find ns.home.brr: SERVFAIL
The same thing happens for nslookup serv.home.brr; am I doing something wrong on the configuration?
Thanks in advance :)
-
You have no A records in your zone.
Try adding a line that looks like this:
Code:
ns IN A 192.168.2.200
-
True, that was one of the problems; the other two were related to the file's location (moved from /var/named to /var/named/chroot/var/named/. The other was that the HINFO record didn't obey to the RFC1010 format (http://www.rfc-archive.org/getrfc.php?rfc=1010). Solved, thanks for the help :)
-
try this command
tail -f /var/log/messages
u might figure out what the problem is.
dont forget to restart named service after making changes in ny of the files