LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-09-2011, 02:52 AM   #1
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Rep: Reputation: 0
Question error "server can't find 254.0.168.192.in-addr.arpa: SERVFAIL" in dns server


hi everybody,
nslookup command is giving me an error.otherwise dns is working ok.when i try to look for server from client using
Code:
nslookup 192.168.0.254
i got the following error :-
Code:
** server can't find 254.0.168.192.in-addr.arpa: SERVFAIL
but
Quote:
ping server.example.com
is working fine.
i think there should be problem in reverse zone file so i am posting my reverse zone file

Code:
$TTL    86400
@       IN      SOA     example.com. root.server.example.com.  (
                                      1997022701 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
        IN      NS              server.example.com
254     IN      PTR             server.example.com.
1       IN      PTR             client1.example.com.
2       IN      PTR             client2.
3       IN      PTR             client3.example.com.
please tell me what is meaning of this error?
 
Old 01-09-2011, 03:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You miss the trailing dot in the NS record:
Code:
        IN      NS              server.example.com.
Regards
 
Old 01-09-2011, 03:22 AM   #3
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
i have checked with trailing dot and without trailing dot.its not affection at all.service restarts successfuly.
 
Old 01-09-2011, 03:29 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The trailing dot is needed. Otherwise the zone name is attached in the hostname, so what you catually have is: " IN NS server.example.com.0.168.192.in-addr.arpa".
The service starts succesfully, because this is not a syntax error in the configuration, but an error in the zone file.
Note that you need to increase the serial number and reload bind.
 
Old 01-09-2011, 03:35 AM   #5
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
i have increased serial number already.trailing dot is also there.but still got the same error.how to reload bind?
 
Old 01-09-2011, 03:41 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You can either restart the service, or use
Code:
rndc reload
 
Old 01-09-2011, 03:44 AM   #7
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
yea i have done that.still got same error.
 
Old 01-09-2011, 03:45 AM   #8
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
my named.conf file is

Quote:
options {
directory "/var/named/";
};

zone "example.com" IN
{ type master;
file "example.com.zone";
allow-transfer{192.168.0.0/24;};
};

zone "0.168.192.in-addr.arpa.zone" IN
{
type master;
file "0.168.192.in-addr.arpa.zone";
};
 
Old 01-09-2011, 03:49 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Oups, you have another error in the SOA record of zone file. It should be:
Code:
@       IN      SOA     server.example.com. root.server.example.com. (
 
Old 01-09-2011, 03:54 AM   #10
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
i have done this edit to.but still same error.
my /etc/hosts file of server is

Quote:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 server.example.com server localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.0.2 client2 client2
192.168.0.254 server.example.com server.example.com
192.168.0.3 client3.example.com client3.example.com
192.168.0.1 client1.example.com client1.example.com
my /etc/resolv.conf of server is

Quote:
search example.com
nameserver 192.168.0.254
my /etc/reslov.conf of client side is

Quote:
search example.com
nameserver 192.168.0.254
 
Old 01-09-2011, 04:02 AM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hmm, another error in named.conf.
Replace:
Quote:
zone "0.168.192.in-addr.arpa.zone" IN
with:
Code:
zone "0.168.192.in-addr.arpa" IN
 
Old 01-09-2011, 04:07 AM   #12
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
yes now nslookup is working fine.i have spent 3 days on this stupid silly mistake.thanx alot bathory.i want to ask one thing more.is it make difference if i use
Quote:
example.com.
instead of
Quote:
server.example.com
in reverse zone file?
 
Old 01-09-2011, 04:12 AM   #13
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If example.com. can be resolved (i.e. you have an A record in the forward zone for example.com), then you can use it. Of course you need to change both SOA and NS records accordingly.

Please use "Thread Tools" and mark the thread as "SOLVED"

Regards
 
Old 01-09-2011, 04:18 AM   #14
piyusharora420
Member
 
Registered: Nov 2010
Posts: 93

Original Poster
Rep: Reputation: 0
my forward zone file is

Quote:
$TTL 86400
@ IN SOA example.com. root (
43 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

@ NS server.example.com
server A 192.168.0.254
client1 A 192.168.0.1
client2 A 192.168.0.2
client3 A 192.168.0.3

i have used example.com as SOA record and server.example.com as ns record here.so it means i can use example.com instedad of server.example.com in reverse zone error?
 
Old 01-09-2011, 07:33 AM   #15
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
i have used example.com as SOA record and server.example.com as ns record here.so it means i can use example.com instedad of server.example.com in reverse zone error?
As I've already told if you want to do this you need to give example.com an A record. So the forward zone should look like this:
Code:
$TTL 86400
@ IN SOA server.example.com. root.server.example.com. (
44 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

@ NS server.example.com.
example.com. A 192.168.0.254
server A 192.168.0.254
client1 A 192.168.0.1
client2 A 192.168.0.2
client3 A 192.168.0.3
Then in reverse zone the following should work:
Code:
  IN      NS      example.com.
Cheers
 
  


Reply

Tags
dns, dns failure, nslookup, reverse, server



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: ** server can't find 79.20.168.192.in-addr.arpa: REFUSED mamtasahai1 Linux - General 18 04-29-2017 01:23 PM
unable to add reverse map from 10.1.168.192.in-addr.arpa. to tftpadmin-desktop.bbnl.i arunrao_erp Linux - Networking 1 11-10-2010 06:02 PM
DNS SERVER WITH ERROR: "Server Can't Find : SERVFAIL" jcvalim Linux - Server 52 05-21-2009 02:18 AM
Xlib: connection to "192.168.0.10:2.0" refused by server lumix Linux - Newbie 1 05-21-2008 06:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration