LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2009, 03:05 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
[Resolved]restored dns error at centos 5.3


I have backed up dns files with tar command from redhat 9, and restore them to centos 5.3 x86, but named has an error as follows;

Code:
[root@myserver _work]# service named start
Starting named: 
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone myserver.org/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
dns_rdata_fromtext: zone-57.250.203.in-addr.arpa:2: near '20050309012': out of range
zone 57.250.203.in-addr.arpa/IN: loading master file zone-57.250.203.in-addr.arpa: out of range
_default/57.250.203.in-addr.arpa/IN: out of range
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: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42
 [FAILED]
My dns files are here;

1. named.conf
Code:
 //
// named.conf for Red Hat caching-nameserver 
//myserver.org (named.conf)

options {
        directory "/var/named"; 
        dump-file "/var/tmp/named_dmp.db";
        statistics-file "/var/tmp/named.stats";
        pid-file "/var/run/named/named.pid";
        allow-transfer {203.250.57.28; };     
};

// 
// 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 "myserver.org" IN {
	type master;
	file "myserver.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 "57.250.203.in-addr.arpa" IN {
        type master;
        file "zone-57.250.203.in-addr.arpa";
};

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 "0.in-addr.arpa" IN {
	type master;
	file "named.zero";
	allow-update { none; };
};

include "/etc/rndc.key";
2. zone-57.250.203.in-addr.arpa

Code:
$TTL    3600
@       IN      SOA             ns.myserver.org. root.myserver.org. (
                                20050309012      ;Serial
                                21600           ;Refresh        ( 6 hours )
                                1800            ;Retry          ( 30 minutes )
                                1209600         ;Expire         ( 14 days )
                                86400 )         ;Minimum        ( 1 day )
        IN      NS              ns.myserver.org.

240     IN      PTR             ns.myserver.org.
Any comment would be appreciated.

Last edited by windstory; 03-09-2010 at 09:05 PM.
 
Old 10-21-2009, 04:59 PM   #2
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
At zone-57.250.203.in-addr.arpa,

20050309012 ;Serial

was wrong.

Changed 2005030901 from 20050309012, and fixed.
 
Old 10-21-2009, 05:30 PM   #3
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
FYI: You can use a tool called named-checkconf and named-checkzone to check BIND dns server (named daemon) configuration and zone file syntax under Linux / UNIX. It checks the syntax, but not the semantics, of a named configuration file i.e. it can check for syntax errors or typographical errors but cannot check for wrong MX / A address assigned by you. Nevertheless, this is an excellent tool for troubleshooting DNS server related problems.
 
1 members found this post helpful.
Old 10-21-2009, 08:45 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Glad you got it fixed. This is a really good Deployment guide for RHEL/Centos v5 http://www.linuxtopia.org/online_boo...ion/index.html
 
1 members found this post helpful.
Old 03-09-2010, 09:06 PM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by harry edwards View Post
FYI: You can use a tool called named-checkconf and named-checkzone to check BIND dns server (named daemon) configuration and zone file syntax under Linux / UNIX. It checks the syntax, but not the semantics, of a named configuration file i.e. it can check for syntax errors or typographical errors but cannot check for wrong MX / A address assigned by you. Nevertheless, this is an excellent tool for troubleshooting DNS server related problems.
Thanks for your kind advice.
 
Old 03-09-2010, 09:06 PM   #6
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by chrism01 View Post
Glad you got it fixed. This is a really good Deployment guide for RHEL/Centos v5 http://www.linuxtopia.org/online_boo...ion/index.html
Thanks for your kind advice.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Claws email DNS error 451 Could not identify sender- DNS error 10060 sunny51 Linux - Newbie 2 08-13-2009 09:40 PM
Help with secondary DNS (Centos 5.2) sxa Linux - Software 1 12-03-2008 05:22 PM
DNS Centos 5 rungsun Red Hat 1 03-21-2008 12:52 AM
CentOS 5 not querying DNS servers... custangro Red Hat 4 02-02-2008 04:31 PM
i have problem during the dns configuration in centos iyub Linux - Newbie 1 10-03-2007 08:41 AM


All times are GMT -5. The time now is 02:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration