Bind Error Not Found 2servfail
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn bind servfail debug more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Bind Got Servfail Reply From
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you,
Bind Unexpected Rcode Servfail
helping each other. Join them; it only takes a minute: Sign up Own DNS server not working (SERVFAIL when trying to find out host's IP) up vote 1 down vote favorite I've set up a DNS server on
Host Not Found 2 Servfail
VM. When I'm using host with an IP addres, it works well (101.48.168.192.in-addr.arpa domain name pointer s1.home.lan.), but when I try to get domain's IP (eg. host s1.home.lan), I get Host s1.home.lan not found: 2(SERVFAIL) . What has been configured wrong? Config files: named.conf.local: zone "home.lan" { type master; file "/etc/bind/zones/home.lan.db"; }; zone "48.168.192.in-addr.arpa" { type master; file "/etc/bind/zones/rev.48.168.192.in-addr.arpa"; }; home.lan.db: $ORIGIN . $TTL 3600 home.lan. IN SOA ubuntu.home.lan. hostmaster.home.lan ( 2002010101 ; serial 8H ; host not found 2(servfail) ubuntu refresh 4H ; retry 4W ; expire 1D ; minimum ) home.lan. IN NS ubuntu.home.lan. home.lan. IN MX 10 ubuntu.home.lan. $ORIGIN home.lan. localhost IN A 127.0.0.1 s1 IN A 192.168.48.101 s2 IN A 192.168.48.102 s3 IN A 192.168.48.103 rev.48.168.192.in-addr.arpa: @ IN SOA ubuntu.home.lan. hostmaster.home.lan. ( 2002010101 ; serial 8H ; refresh 4H ; retry 4W ; expire 1D ; minimum ) IN NS ubuntu.home.lan. 101 IN PTR s1.home.lan. 102 IN PTR s2.home.lan. 103 IN PTR s3.home.lan. linux ubuntu dns bind share|improve this question edited Jun 3 '14 at 10:52 asked Jun 3 '14 at 10:44 Rafał Swacha 198315 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted You're defining zone home.lan, specify hosts ubuntu.home.lan as MX and NS, but have no A record for ubuntu.home.lan in your home.lan zone. share|improve this answer answered Jun 3 '14 at 10:57 Deleted User 2,4251417 You are right - that was it! Thank you! For people who will come here in the future: ubuntu IN A 192.168.48.50 –Rafał Swacha Jun 3 '14 at 11:06 3 running named-checkzone on your zonefile may have told you too. –Deleted User Jun 3 '14 at 11:07 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Pos
Search Username Password Remember Me? Register Lost Password? facebook google twitter rss Free Web Developer Tools Advanced Search Forum System Administration DNS Error "Host xxxxxx not found: 2(SERVFAIL)" Thread: server can't find .in-addr.arpa servfail Error "Host xxxxxx not found: 2(SERVFAIL)" Share This Thread Tweet This + server can't find hostname servfail 1 this Post To Linkedin Subscribe to this Thread Subscribe to This Thread December 28th, 2003,11:07 AM #1 host .in-addr.arpa not found 2(servfail) No Profile Picture ads View Profile View Forum Posts Contributing User Devshed Newbie (0 - 499 posts) Join Date Aug 2001 Location India Posts 192 Rep Power 16 Error http://stackoverflow.com/questions/24013130/own-dns-server-not-working-servfail-when-trying-to-find-out-hosts-ip "Host xxxxxx not found: 2(SERVFAIL)" Hi, When I try to check following : [root@shastriweb root]# /etc/init.d/named restart Stopping named: Starting named: [ OK ] [root@shastriweb root]# host www.networkshastrihall.com Host www.networkshastrihall.com not found: 2(SERVFAIL) Gets above error. I think I have created all file properly. /etc/named.conf as follows : ####### // generated by named-bootconf.pl options { directory "/var/named"; recursion yes; forward first; forwarders { http://forums.devshed.com/dns-36/error-host-xxxxxx-found-2-servfail-108643.html 202.63.164.17; 202.63.164.18; }; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ query-source address * port 53; notify no; /* logging { channel query_logging { # Enable query logging by uncommenting the below # }; // // a caching only nameserver config // controls { inet 127.0.0.1 allow { localhost; } keys { rndckey; }; }; zone "." IN { type hint; file "named.ca"; }; zone "networkshastrihall.com" IN { type master; file "networkshastrihall.com.zone"; }; zone "0.0.127.in-addr.arpa" { type master; file "0.0.127.IN-ADDR.ARPA.zone"; };zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; }; include "/etc/rndc.key"; ######## File /var/named/networkshastrihall.com.zone is as follows : ###### $ORIGIN networkshastrihall.com. $TTL 86400 @ 1D IN SOA ns1 ( ; admin ; 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum 1D IN NS ns1 ; 1D IN NS ns2 ; 1D IN A 202.63.
with BIND Date: Sun, 16 Oct 2005 13:15:37 +0100 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fabiano Petrone enlightened us with the following gems on 16/10/05 11:57: > Hello to Everybody > > I've configured an (only!!) internal experimental DNS https://www.redhat.com/archives/rhl-list/2005-October/msg02196.html (home.net) for my LAN. > the machine (FC3, bind 9.2.5 rel.3) is called fedora3.home.net > (192.168.0.50) I've added a W2000 (zenone.home.net, 192.168.0.20) as an > experimental client pointing to fedora3 as DNS. > > here's my /var/named/chroot/etc/named.conf file: > > > options { > directory "/var/named"; > dump-file "/var/named/data/cache_dump.db"; > statistics-file "/var/named/data/named_stats.txt"; > }; > acl "mylan" { > 127/8; 192.168.0.0/24; > }; > controls { > inet 127.0.0.1 allow { localhost; } keys not found { rndckey; }; > }; > view "inside" { > match-clients { "mylan"; }; > recursion yes; > zone "." IN { > type hint; > file "named.ca"; > }; > > zone "0.168.192.in-addr.arpa" IN { > type master; > file "homelan.db"; > }; > > zone "home.net" { > type master; > file "db.home.net.inside"; > }; > }; > include "/etc/rndc.key"; > > that's my homelan.db for the reverse lookups: > > $TTL 86400 not found 2 > @ IN SOA 0.0.168.192.in-addr.arpa. root.fedora3.home.net. ( > 2005101501 ; Serial > 28800 ; Refresh > 14400 ; Retry > 3600000 ; Expire > 86400 ) ; Minimum > > IN NS 0.0.168.192.in-addr.arpa. > 1 IN PTR fedora3.home.net. > 2 IN PTR zenone.home.net. > > ;EOF > > and that's is my db.home.net.inside > > $TTL 86400 > @ IN SOA home.net. root.fedora3.home.net. ( > 2005101501 ; Serial > 28800 ; Refresh > 14400 ; Retry > 3600000 ; Expire > 86400 ) ; Minimum > > ; Name Servers > IN NS fedora3.home.net. > > ; Mail Server for Domain > IN MX 10 fedora3.home.net. > > ; Public Servers > fedora3 IN A 192.168.0.50 > > ; Private Clients on the LAN > zenone IN A 192.168.0.20 > > ;EOF > > the problems are the following: > > (1) > the command > host fedora3 (or host zenone) > fails with the following message: > > Host fedora3 not found: 2(SERVFAIL) > > > host fedora3.home.net (or host zeone.home.net) > > works OK instead. > > (2) > > the command > > nslookup zenone.home.net > works OK > > the command > > nslookup 192.168.0.20 > > fails with the following error message: > > Server: 192.168.0.50 > Address: 192.168.0.50#53 > > ** server can't find 20.0.168.192.in-addr.arpa: NX