|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Error "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 { 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.167.192 ; 1D IN MX 10 mail ; ns1 1D IN A 202.63.167.192 ; ns2 1D IN A 202.63.167.192 ; www 1D IN A 202.63.167.192 ; mail 1D IN A 202.63.167.192 ; ####### File 0.0.127.IN-ADDR.ARPA.zone is as follows ###### $ORIGIN 0.0.127.IN-ADDR.ARPA. $TTL 86400 @ IN SOA ns1.networkshastrihall.com. admin.basiczone.com. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS ns1.networkshastrihall.com. IN NS ns2.networkshastrihall.com. 1 IN PTR www.networkshastrihall.com. 2 IN PTR ns1.networkshastrihall.com. 3 IN PTR ns2.networkshastrihall.com. 4 IN PTR mail.networkshastrihall.com. ######### File named.ca is default ######## I retsarted /etc/init.d/named. Follwoing is starting log. ########### Dec 28 22:23:18 shastriweb named[8247]: loading configuration from '/etc/named.conf' Dec 28 22:23:18 shastriweb named[8247]: no IPv6 interfaces found Dec 28 22:23:18 shastriweb named[8247]: listening on IPv4 interface lo, 127.0.0.1#53 Dec 28 22:23:18 shastriweb named[8247]: listening on IPv4 interface eth0, 202.183.69.130#53 Dec 28 22:23:18 shastriweb named[8247]: listening on IPv4 interface eth1, 192.168.0.1#53 Dec 28 22:23:18 shastriweb named[8247]: listening on IPv4 interface eth2, 202.63.167.192#53 Dec 28 22:23:18 shastriweb named[8247]: listening on IPv4 interface tunnel0, 202.63.162.62#53 Dec 28 22:23:18 shastriweb named[8247]: command channel listening on 127.0.0.1#953 Dec 28 22:23:18 shastriweb named[8247]: zone 0.0.127.in-addr.arpa/IN: has no NS records Dec 28 22:23:18 shastriweb named[8247]: zone networkshastrihall.com/IN: has no NS records Dec 28 22:23:18 shastriweb named[8247]: zone localhost/IN: loaded serial 42 Dec 28 22:23:18 shastriweb named[8247]: running Dec 28 22:23:18 shastriweb named: named startup succeeded ########## Don't know whats going wrong. Help appreciated. |
|
#2
|
||||
|
||||
|
Try removing all those semicolons. You only need a semicolon if you have a comment on that line.
__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links: Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts |
|
#3
|
|||
|
|||
|
Your 0.0.127.in-addr.arpa zone is useless.
|
|
#4
|
|||
|
|||
|
Modified file named.conf as follows :
######### // generated by named-bootconf.pl options { directory "/var/named"; recursion yes; forward first; forwarders { 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; }; // // a caching only nameserver ######## local.host as follows : ######### $TTL 86400 $ORIGIN localhost. @ 1D IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum 1D IN NS @ 1D IN A 127.0.0.1 ######## modified file networkshastrihall.com. as follows : ######### $ORIGIN networkshastrihall.com. $TTL 86400 @ 1D IN SOA ns1 ( admin 42 3H 15M 1W 1D ) 1D IN NS ns1 1D IN NS ns2 1D IN A 202.63.167.192 1D IN MX 10 mail ns1 1D IN A 202.63.167.192 ns2 1D IN A 202.63.167.192 www 1D IN A 202.63.167.192 mail 1D IN A 202.63.167.192 ######## modified file 0.0.127.IN-ADDR.ARPA. as follows : ######## $ORIGIN 0.0.127.IN-ADDR.ARPA. $TTL 86400 @ IN SOA ns1.networkshastrihall.com. admin.basiczone.com. ( 1997022700 28800 14400 3600000 86400 ) IN NS ns1.networkshastrihall.com. IN NS ns2.networkshastrihall.com. 1 IN PTR www.networkshastrihall.com. 2 IN PTR ns1.networkshastrihall.com. 3 IN PTR ns2.networkshastrihall.com. 4 IN PTR mail.networkshastrihall.com. ######### Still problem persists. |
|
#5
|
|||
|
|||
|
It is working now.
Problem was due to improper arrangement of file "networkshastrihall.com". Thanks for support. |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Error "Host xxxxxx not found: 2(SERVFAIL)" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|