Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
01-09-2011, 03:52 AM
|
#1
|
Member
Registered: Nov 2010
Posts: 93
Rep:
|
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 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?
|
|
|
01-09-2011, 04:17 AM
|
#2
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
|
Hi,
You miss the trailing dot in the NS record:
Code:
IN NS server.example.com.
Regards
|
|
|
01-09-2011, 04:22 AM
|
#3
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
i have checked with trailing dot and without trailing dot.its not affection at all.service restarts successfuly.
|
|
|
01-09-2011, 04:29 AM
|
#4
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
|
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.
|
|
|
01-09-2011, 04:35 AM
|
#5
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
i have increased serial number already.trailing dot is also there.but still got the same error.how to reload bind?
|
|
|
01-09-2011, 04:41 AM
|
#6
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
|
You can either restart the service, or use
|
|
|
01-09-2011, 04:44 AM
|
#7
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
yea i have done that.still got same error.
|
|
|
01-09-2011, 04:45 AM
|
#8
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
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";
};
|
|
|
|
01-09-2011, 04:49 AM
|
#9
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
|
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. (
|
|
|
01-09-2011, 04:54 AM
|
#10
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
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
|
|
|
|
01-09-2011, 05:02 AM
|
#11
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
|
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
|
|
|
01-09-2011, 05:07 AM
|
#12
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
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 instead of in reverse zone file?
|
|
|
01-09-2011, 05:12 AM
|
#13
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
|
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
|
|
|
01-09-2011, 05:18 AM
|
#14
|
Member
Registered: Nov 2010
Posts: 93
Original Poster
Rep:
|
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?
|
|
|
01-09-2011, 08:33 AM
|
#15
|
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
|
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:
Cheers
|
|
|
All times are GMT -5. The time now is 12:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|