I am connected to a reliance wifi connection obtained a 192.168.0.101 ip. 192.168.0.1 as primary dns. I configured dns bind to give name to my server process. To test that locally i changed the dhclient.conf "prepend domain-name-servers 127.0.0.1;" so that my resolv.conf changed to namserver 127.0.0.1. and my primary dns changed to 127.0.0.1
ashokkrishna@krishna:~$ nslookup group.hom
Server: 127.0.0.1
Address: 127.0.0.1#53
** server can't find group.hom: SERVFAIL
and the config file
ashokkrishna@krishna:/etc/bind$ cat named.conf.local
# Our domain zone
zone "group.hom" {
type master;
file "/etc/bind/zones/group.hom.db";
};
# For reverse DNS
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
};
the forward zone file.
ashokkrishna@krishna:/etc/bind/zones$ cat group.hom.db
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA i.group.hom. root.group.hom. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS group.hom.
@ IN A 192.168.0.101
www IN A 192.168.0.101
reverse zone
ashokkrishna@krishna:/etc/bind/zones$ cat rev.0.168.192.in-addr.arpa
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA i.group.hom. root.group.hom. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS group.hom.
101.0.168 IN PTR group.hom.
/etc/hosts
ashokkrishna@krishna:/etc/bind/zones$ cat /etc/hosts
127.0.0.1 localhost
127.0.0.1 krishna
192.168.0.101 i.group.hom i
named.conf.options
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
why i am getting this error? bind successfully running but it is not giving the name to my system. its not connecting why.?
new zone database:
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ib.group.hom. root.group.hom. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS group.hom.
group.hom. IN A 192.168.0.101
@ IN A 192.168.0.101
www IN A 192.168.0.101
Best Answer
Try to add to your zone (group.hom.db) this:
Because you only have an entry for www.group.hom