LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-10-2008, 11:17 AM   #1
jdappert
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Rep: Reputation: 0
reverse dns for partial block of class C


Hi all,

Just finished moving a mailserver, webserver, etc into a new partial C block. My dns machines have been designated as the authority for the particular network. Confirmed this is all set up correctly. I've ran into a snag with reverse dns lookups. I am sure that it has something to do with the fact that is a partial block. i have set up a full class C and had funtional reverse dns previously.

here is my reverse zone entry for my partial block.

$ttl 38400
240/28.122.195.12.in-addr.arpa. IN SOA ns.bigview.net. jdappert.gmail.com. (
1228771527
10800
3600
604800
38400 )
247.240/28.122.195.12.in-addr.arpa. IN NS ns2.bigview.net.
246.240/28.122.195.12.in-addr.arpa. IN NS ns.bigview.net.
243.240/28.122.195.12.in-addr.arpa. IN PTR mail.netjax.com.

Any suggestions?
 
Old 12-10-2008, 11:29 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
The correct syntax is
Code:
IN NS ns.bigview.net.
IN NS ns2.bigview.net.

247.122.195.12.in-addr.arpa. IN PTR ns2.bigview.net.
246.122.195.12.in-addr.arpa. IN PTR ns.bigview.net.
243.122.195.12.in-addr.arpa. IN PTR mail.netjax.com.
You must also make sure that your ISP has delegated you the 12.195.122.240/28 subnet. You can read the rfc2317 for classless IN-ADDR.ARPA delegation here

Last edited by bathory; 12-10-2008 at 11:31 AM.
 
Old 12-12-2008, 10:24 AM   #3
jdappert
LQ Newbie
 
Registered: Dec 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
The correct syntax is
Code:
IN NS ns.bigview.net.
IN NS ns2.bigview.net.

247.122.195.12.in-addr.arpa. IN PTR ns2.bigview.net.
246.122.195.12.in-addr.arpa. IN PTR ns.bigview.net.
243.122.195.12.in-addr.arpa. IN PTR mail.netjax.com.
You must also make sure that your ISP has delegated you the 12.195.122.240/28 subnet. You can read the rfc2317 for classless IN-ADDR.ARPA delegation here
Right, That would be the correct syntax if I was hosting the whole class C block.

Here is a dig +trace:
Code:
 <<>> DiG 9.4.1-P1 <<>> +trace -x 12.195.122.243
;; global options:  printcmd
.			450125	IN	NS	i.root-servers.net.
.			450125	IN	NS	j.root-servers.net.
.			450125	IN	NS	k.root-servers.net.
.			450125	IN	NS	l.root-servers.net.
.			450125	IN	NS	m.root-servers.net.
.			450125	IN	NS	a.root-servers.net.
.			450125	IN	NS	b.root-servers.net.
.			450125	IN	NS	c.root-servers.net.
.			450125	IN	NS	d.root-servers.net.
.			450125	IN	NS	e.root-servers.net.
.			450125	IN	NS	f.root-servers.net.
.			450125	IN	NS	g.root-servers.net.
.			450125	IN	NS	h.root-servers.net.
;; Received 488 bytes from 12.195.122.247#53(12.195.122.247) in 263 ms

12.in-addr.arpa.	86400	IN	NS	cbru.br.ns.els-gms.att.net.
12.in-addr.arpa.	86400	IN	NS	cmtu.mt.ns.els-gms.att.net.
12.in-addr.arpa.	86400	IN	NS	dbru.br.ns.els-gms.att.net.
12.in-addr.arpa.	86400	IN	NS	dmtu.mt.ns.els-gms.att.net.
;; Received 145 bytes from 199.7.83.42#53(l.root-servers.net) in 147 ms

243.122.195.12.in-addr.arpa. 172800 IN	CNAME	243.240/28.122.195.12.in-addr.arpa.
240/28.122.195.12.in-addr.arpa.	172800 IN NS	ns2.bigview.net.
240/28.122.195.12.in-addr.arpa.	172800 IN NS	ns.bigview.net.
;; Received 116 bytes from 12.127.16.69#53(cmtu.mt.ns.els-gms.att.net) in 458 ms
After reading This I settled on the following configuration.:


Here is my named.conf entry for the zone:
Code:
zone "240/28.122.195.12.in-addr.arpa" {
	type master;
	file "/var/named/12.195.122.240_28.rev";
	};
This is what is contained in the file 12.195.122.240_28.rev:
Code:
$ttl 38400
240/28.122.195.12.in-addr.arpa.	IN	SOA	ns.bigview.net. jdappert.gmail.com. (
			1229105748
			10800
			3600
			604800
			38400 )
240/28.122.195.12.in-addr.arpa.	IN	NS	ns.bigview.net.
240/28.122.195.12.in-addr.arpa.	IN	NS	ns2.bigview.net.
243.240/28.122.195.12.in-addr.arpa.	IN	PTR	mail.netjax.com.
After applying these settings i visited AOL's reverse check and boom, success!

I think one of my problems must have been that I had overlapping entrie and was generating a SERVFAIL.

Cheers
 
  


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
How to block reverse DNS? Lord Estraven Linux - Security 2 10-04-2008 09:28 PM
DNS problems, reverse dns working localy but not on other servers. valls Linux - Newbie 1 06-16-2008 06:59 AM
Query DNS if I only know a partial hostname jantman Linux - General 3 02-27-2008 04:57 AM
Reverse DNS: Why is the record on the datacenter DNS server instead? Swakoo Linux - Networking 2 09-20-2007 04:42 AM
has anyone tried this??? Reverse dns lookups with Class A addresses.. khattaking Linux - Networking 2 12-15-2005 07:54 AM


All times are GMT -5. The time now is 04:01 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 Google+: linuxquestions
Open Source Consulting | Domain Registration