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 12-14-2009, 12:33 PM   #1
temecal
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Rep: Reputation: 0
RDNS configuration issues


Okay...I'm at my breaking point trying to figure this out. I can't seem to get named to start, anytime I attempt to configure reverse DNS. If I leave out the reverse DNS stuff...named starts just fine.

My setup:
Server: CentOS 5.4
1 NIC: 2 IPs
BIND version: BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5

named.conf:
cat /var/named/chroot/etc/named.conf
// default named.conf

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";

allow-recursion {
localnets;
209.139.209.33; 209.139.209.32; 216.18.22.58; 216.18.22.57;
};

listen-on { 127.0.0.1; 216.18.22.1; };
allow-query { 127.0.0.1; 216.18.22.0/24; };

forward first;
forwarders { 209.139.209.33; 209.139.209.32; };

};

include "/etc/rndc.key";

zone "zipsync1.net" IN {
type master;
file "data/zipsync1.net.domain";
};

zone "22.18.216.in-addr.arpa" {
type master;
file "data/reverse-22.18.216";
};


reverse-22.18.216 contents:
$TTL 14400
@ 86400 IN SOA 22.18.216.in-addr.arpa. shacall2.yahoo.com. (

2009121301 ; serial, todays date
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

zipsync1.net. 86400 IN NS ns1.zipsync1.net.
zipsync1.net. 86400 IN NS ns2.zipsync1.net.
58 IN PTR www.zipsync1.net


If I comment out the zone "22.18..." section within named.conf, named starts fine. When I remove the comments, I get the following in my logs:

Dec 14 10:14:18 zipsync1 named: zone zipsync1.net/IN: loaded serial 2009121400
Dec 14 10:14:18 zipsync1 named: data/reverse-22.18.216:10: ignoring out-of-zone data (zipsync1.net)
Dec 14 10:14:18 zipsync1 named: data/reverse-22.18.216:11: ignoring out-of-zone data (zipsync1.net)
Dec 14 10:14:18 zipsync1 named: zone 22.18.216.in-addr.arpa/IN: has no NS records
Dec 14 10:14:18 zipsync1 named: _default/22.18.216.in-addr.arpa/IN: bad zone

Any help or suggestions would be VERY much appreciated. Sorry for the formatting. It was all lost when I submitted the thread. Thanks!

Gary
 
Old 12-14-2009, 12:54 PM   #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 should change your zone file to:
Code:
$TTL 14400
@ IN SOA ns1.zipsync1.net. shacall2.yahoo.com. (

2009121301 ; serial, todays date
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

  IN NS ns1.zipsync1.net.
  IN NS ns2.zipsync1.net.
58 IN PTR www.zipsync1.net.
Mind the dot at the end of hostnames.
Increase serial and restart bind, to test.

Regards
 
Old 12-14-2009, 01:43 PM   #3
temecal
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Hi,

You should change your zone file to:
Code:
$TTL 14400
@ IN SOA ns1.zipsync1.net. shacall2.yahoo.com. (

2009121301 ; serial, todays date
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

  IN NS ns1.zipsync1.net.
  IN NS ns2.zipsync1.net.
58 IN PTR www.zipsync1.net.
Mind the dot at the end of hostnames.
Increase serial and restart bind, to test.

Regards
Dang - I thought I checked all the dots. I'll modify that, increase the serial and restart bind.

Thanks for the fast reply!
Gary
 
Old 12-14-2009, 01:46 PM   #4
temecal
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Shoot...I had high hopes that this was it. Unfortunately, that didn't work. I did as you mentioned: added a dot at the end, increased the serial and restarted named. Still getting the same error:

[root@zipsync1 named]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone zipsync1.net/IN: loaded serial 2009121400
data/reverse-22.18.216:10: ignoring out-of-zone data (zipsync1.net)
data/reverse-22.18.216:11: ignoring out-of-zone data (zipsync1.net)
zone 22.18.216.in-addr.arpa/IN: has no NS records
_default/22.18.216.in-addr.arpa/IN: bad zone
[FAILED]

Any other thoughts?

Thanks,
Gary
 
Old 12-14-2009, 01:48 PM   #5
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
*** EDIT ***
See what exactly you need to change in the zone file:
The real problem wasn't the dots (in fact you missed just the one in "58 IN PTR www.zipsync1.net."). The problem was the dns in the SOA record (it was 22.18.216.in-addr.arpa.) and the ORIGIN of the NS records (was zipsync1.net.).

Cheers

Last edited by bathory; 12-14-2009 at 01:51 PM.
 
Old 12-14-2009, 01:48 PM   #6
temecal
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Here's my latest/revised reverse dns file:

Code:
$TTL 14400
@ 86400 IN SOA 22.18.216.in-addr.arpa. shacall2.yahoo.com. (

                    2009121303 ; serial, todays date
                    86400 ; refresh, seconds
                    7200 ; retry, seconds
                    3600000 ; expire, seconds
                    86400 ) ; minimum, seconds

zipsync1.net. 86400 IN NS ns1.zipsync1.net.
zipsync1.net. 86400 IN NS ns2.zipsync1.net.

58 IN PTR www.zipsync1.net.
 
Old 12-14-2009, 01:51 PM   #7
temecal
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Good to see it worked.
The real problem wasn't the dots (in fact you missed just the one in "58 IN PTR www.zipsync1.net."). The problem was the dns in the SOA record (it was 22.18.216.in-addr.arpa.) and the ORIGIN of the NS records (was zipsync1.net.).

Cheers
Bathory,
I can't thank you enough for your help. It's still not starting though. I'm not 100% sure I understand what you mean (about the DNS in the SOA record being incorrect). Do I need to change something, so it properly matches?

Thanks again,
Gary
 
Old 12-14-2009, 01:58 PM   #8
temecal
LQ Newbie
 
Registered: Dec 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Got it!!!! You are awesome, bathory. Thank you soooo much. I copied your code exactly, replacing mine. It now starts fine.

Much appreciated,
Gary
 
  


Reply



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
Setup RDNS wackolacko Linux - Server 3 03-01-2009 02:21 AM
rDNS authoritative name servers digen Linux - Server 1 05-26-2008 01:44 AM
rdns help requested sir-lancealot Linux - Server 6 01-31-2008 08:23 AM
named.. rdns help zarnold Linux - Server 2 09-05-2006 04:03 AM
Configure rDNS andy18 Linux - Networking 0 11-20-2003 04:50 PM

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

All times are GMT -5. The time now is 04:12 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