SunQuest
           DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old December 28th, 2003, 11:07 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 7
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.

Reply With Quote
  #2  
Old December 28th, 2003, 01:42 PM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
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

Reply With Quote
  #3  
Old December 28th, 2003, 04:59 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Your 0.0.127.in-addr.arpa zone is useless.

Reply With Quote
  #4  
Old December 28th, 2003, 09:03 PM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 7
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.

Reply With Quote
  #5  
Old December 29th, 2003, 05:42 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 7
It is working now.
Problem was due to improper arrangement of file "networkshastrihall.com".

Thanks for support.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Error "Host xxxxxx not found: 2(SERVFAIL)"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway