LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 05-29-2009, 02:56 PM   #1
redhat user
LQ Newbie
 
Registered: Apr 2009
Posts: 3

Rep: Reputation: 0
server can't find example.com: SERVFAIL


I am using red hat es 4 for configuring my dns server but i have a problem while i am nslookup's my domain i.e. example.com--- for better suggestion here i am gonna post 3 files (named.conf;forward.zone and reverse.zone).

vi /etc/named.conf
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};


zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "example.com" IN {
type master;
file "forward.zone";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "reverse.zone";
allow-update { none; };
};

include "/etc/rndc.key";


vi /var/named/chroot/var/named/forward.zone

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

@ IN NS ns1.example.com.

@ IN MX 05 smtp.example.com.


@ IN A 192.168.0.1
ns1 IN A 192.168.0.1


www IN CNAME ns1.example.com.




IN AAAA ::1


And last vi /var/named/chroot/var/named/reverse.zone

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

@ IN NS ns1.example.com.

@ IN MX 05 smtp.example.com.


1 IN PTR @
1 IN PTR ns1.example.com.








IN AAAA ::1


Please help me about this problem....
 
Old 05-29-2009, 03:42 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,608

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Hi,

You should either add a $ORIGIN
Code:
$ORIGIN example.com.
in your zone file, or replace the "@" in the A records with example.com.
Code:
example.com. IN A 192.168.0.1
Don't forget to increase serial after editing the zone file.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS SERVER WITH ERROR: "Server Can't Find : SERVFAIL" jcvalim Linux - Server 52 05-21-2009 02:18 AM
Bind9 Server clients getting random ServFail Error Russianspi Linux - Server 1 05-20-2008 04:47 PM
nslookup ** server can't find homelan.home: SERVFAIL heals1ic Linux - Networking 7 05-19-2005 07:20 PM
2(SERVFAIL) error? GraemeK Linux - Networking 7 08-21-2003 11:45 AM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration