Linux - ServerThis 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.
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.
Red the other posts neither of the close ones helped, and I am sure I am just overlooking something but we are moving and I have a temp server setup at the new location running CentOS5, bind.
Forward is working fine, reverse is not, so if someone see's something I missed, feel free to point, laugh, whatever! We have a /26, so the named.conf shows;
named.conf
zone "128-192.125.101.38.in-addr.arpa" {
type master;
file "/var/named/named.128-192.125.101.38.in-addr.arpa";
};
named.128-192.125.101.38.in-addr.arpa
$TTL 2D
@ IN SOA ns1.company.com. support.company.com. (
2007081310 ; serial
7200 ; refresh
3600 ; retry
3600000 ; expire
86400 ; default_ttl
)
@ IN NS ns1.company.com.
$ORIGIN 125.101.38.in-addr.arpa.
129 IN PTR gateway-cg.company.com.
130 IN PTR static-cg-130.company.com.
As you can see we have .128-192. I tried a few things nothing helped. I am testing by both a dig -x and an nslookup, so that's where I am at.
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216
Rep:
Your config and zone file look fine, but the problem is that almost all reverse DNS is handled by your ISP. Generally if you need public reverse DNS lookup for your servers, this must be handled by the ISP's DNS servers, since they are authoritative for their their slice of in-addr.arpa pie and root DNS servers have no clue about your reverse zone file.
Hey, look at that;
Jan 30 03:44:48 named[16615]: /var/named/named.128-192.125.101.38.in-addr.arpa:77: ignoring out-of-zone data (174.125.101.38.in-addr.arpa)
That could be a good start. I looked around and from the examples, it looks right! I tried to keep it short for testing, just not sure why it's saying it's out of zone. I redid the zone a bit and put one IP in one line so it looks like this;
174.125.101.38.in-addr.arpa. IN PTR cs0.testing.com.
Restarted and got;
Jan 30 04:29:08 named[16960]: /var/named/named.128-192.125.101.38.in-addr.arpa:13: ignoring out-of-zone data (174.125.101.38.in-addr.arpa)
Jan 30 04:29:08 named[16960]: zone 128-192.125.101.38.in-addr.arpa/IN: loaded serial 2007081312
and an nslookup test shows;
** server can't find 174.125.101.38.in-addr.arpa: NXDOMAIN
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216
Rep:
I just saw it. Missed it before :-( It's the zone record in named.conf:
zone "128-192.125.101.38.in-addr.arpa" {
type master;
file "/var/named/named.128-192.125.101.38.in-addr.arpa";
};
should be:
zone "125.101.38.in-addr.arpa" {
type master;
file "/var/named/named.128-192.125.101.38.in-addr.arpa";
};
The in-addr.arpa domain dates back to the early (and I'm talking EARLY) days of TCP/IP and does understand classless subnetting. It expects all domain boundaries to be on strict Class A, B, and C subnets, so you can't do a partial subnet in the in-addr.arpa zone file.
Thanks so much for keeping up with the thread. Once thread's get that 3/4 replies, people don't just jump to read, but I do appreciate you keeping up and solving.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.