HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=21)
-   -   PTR Zone problem (http://www.howtoforge.com/forums/showthread.php?t=38577)

foscolino 28th August 2009 10:55

PTR Zone problem
 
Hello, I have a problem to configure PTR zone for my domain..
For example, I want to create PTR zone for IP: 188.92.100.34
We are an autonomous system, all IP classes (188.92.96.0/21) are managed by myself.

1) I have created a new zone 0-24.100.92.188.in-addr.arpa.

http://www.trentofood.it/dns/zone.png

2) I have add a CNAME record:
hostname: 34
target hostname: 34.100-24.

3) I have add a PTR record
name: webhosting01
Cname: 34.

http://www.trentofood.it/dns/record.png

if I try to do:
nslookup -type=ptr 188.92.100.34 ns1.itgreen.info
Server: ns1.itgreen.info
Address: 188.92.100.9#53

** server can't find 34.100.92.188.in-addr.arpa: REFUSED

which is the problem?
which is my error? I don't know why i receveid this error..
can we help me, please?

bluejay3 2nd September 2009 06:13

Create a zone 100.92.188.in-addr.arpa.
Add records in this zone:
NS [empty] ns1.itgreen.it
NS [empty] ns2.itgreen.it
NS 0-24 ns1.itgreen.it
NS 0-24 ns2.itgreen.it
CNAME 34 34.0-24

Create a zone 0-24.100.92.188.in-addr.arpa
Add records in this zone:
NS [empty] ns1.itgreen.it
NS [empty] ns2.itgreen.it
PTR 34 webhosting01 (i think data should be FQDN)

- OR -

You could probably get away with only having the main zone if you only get DNS requests for your subnet anyways.
i.e.
Create a zone 100.92.188.in-addr.arpa.
Add records in this zone:
NS [empty] ns1.itgreen.it
NS [empty] ns2.itgreen.it
PTR 34 webhosting01.example.com

Let me know if this works.

foscolino 3rd September 2009 12:24

reverse ok... but propagate zone..
 
Hi bluejay3,
thanks a lot for your support...i have configurated zone on your instructions and now the reverse ip work correctly..
If I try to do nslookup by dns server I receive the correct response:

andrea@ubuntu-malago:~$ nslookup 188.92.100.34 ns1.itgreen.info
Server: ns1.itgreen.info
Address: 188.92.100.9#53

34.100.92.188.in-addr.arpa canonical name = 34.0-24.

But if I try to resolv ptr zone by another dns i receive error message

catterin@jest-pub:~$ nslookup 188.92.100.34
Server: 192.168.1.54
Address: 192.168.1.54#53

** server can't find 34.100.92.188.in-addr.arpa.: NXDOMAIN

I dont' know why the zone not yet been propagated correctly..
Since the change was made three days have passed..

bluejay3 3rd September 2009 23:28

Quote:

34.100.92.188.in-addr.arpa canonical name = 34.0-24.
Change the CNAME target from (34.0-24.) to just (34.0-24) with no period. This nslookup result should be '34.0-24.100.92.188.in-addr.arpa' if you configured everything properly. And you would need a '0-24.100.92.188.in-addr.arpa' zone in this case too.


First off, I do not think you need to seperate your zones out like you have been. The only reason I feel you need a 0-24, or whatever, sub-zone is if you are trying to assign differnent subnets of the zone to different clients, so each client can only access and change their subnet. If you are just using the zone for yourself and don't have other users/clients trying to access differnet subnets then just create the main zone as follows:

Create a zone 100.92.188.in-addr.arpa.
Add records in this zone:
NS [empty] ns1.itgreen.it
NS [empty] ns2.itgreen.it
PTR 34 webhosting01.example.com

foscolino 4th September 2009 10:38

ok
 
ok bluejay3,
I'm using zones for myself, not for my client..

Now I have activated only this zone 100.92.188.in-addr.arpa. how this:

http://www.trentofood.it/dns/zone2.jpg

whit these records:

http://www.trentofood.it/dns/record2.jpg

If you look PTR record webhosting01.itgreen.info. has period (.) final..
If I set PTR record whitout period the reverse not work correctly.. :confused:

Now, if I try to resolv PTR record from nameserver the result is correct:

andrea@ub-malago:~$ nslookup 188.92.100.34 ns1.itgreen.info
Server: ns1.itgreen.info
Address: 188.92.100.9#53
34.100.92.188.in-addr.arpa name = webhosting01.itgreen.info.

But is correct for you for correct propagation?
thanks for your precious support!! :)


All times are GMT +2. The time now is 10:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.