[Samba] samba-tool PTR with /16 network

L.P.H. van Belle belle at bazuin.nl
Wed Aug 7 08:27:24 UTC 2019


Hai, 

Ok, i did a few things on my DC and see the how/what here. 

First, the zone. 
samba-tool dns zonecreate rtd-dc1 19.172.in-addr.arpa
That worked fine, in windows DNS tool that shows correct. 

Now i added an PTR with this line.
samba-tool dns add dc1 19.172.in-addr.arpa 55.0 PTR testhost.internal.domain.tld 

This resulted in a subfolder "0" the 19.172.in-addr.arpa zone. 
Where the ip resulted in 172.19.0.0.55 Trying to delete this from this zone, that did not work, but wait. 
After a few minutes, i was wondery why/what the ... .. 
I was stunned by it, i refreshed the zone. And hee.. What happend.. Now it looks correct. 
The "extra" 0 folder in the arpa zone is gone
And the ip what i wanted is in. 172.19.0.55 with the corrected hosts assigned to it. 

So i added also in the other range..
samba-tool dns add dc1 19.172.in-addr.arpa 55.1 PTR testhost2.internal.domain.tld 

And that resulted nicely in the correct ip 172.19.1.55 

So per example 
samba-tool dns zonecreate rtd-dc1 0.19.172.in-addr.arpa	for a /24 zone
samba-tool dns zonecreate rtd-dc1 19.172.in-addr.arpa		for a /16 zone
samba-tool dns zonecreate rtd-dc1 172.in-addr.arpa		for a /8 zone

Adding the ptr records. 
                   (*1)     (*2) 	             (*3)     (*4)
samba-tool dns add dc1.fqdn 1.19.172.in-addr.arpa 55 PTR testhost2.internal.domain.tld  (/24 ) 
samba-tool dns add dc1.fqdn 19.172.in-addr.arpa 55.1 PTR testhost2.internal.domain.tld  (/16 ) 
samba-tool dns add dc1.fqdn 172.in-addr.arpa 55.1.19 PTR testhost2.internal.domain.tld  (/8 ) 
1) the hostname or fully qualified hostname.  Adviced is to use the FQDN hostname. 
2) the reverse zone. 
3) the reverse ip.  Here you write the ip from right to left. 172.19.1.55 in reverse zone is 55.1.19.172 
4) the hostname where the ip is pointing to. 

@Rowland, maybe we should add an example as shown here on the wiki. 

Greetz, 

Louis




> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Hénoch Hervé via samba
> Verzonden: woensdag 7 augustus 2019 9:38
> Aan: Rowland penny; samba at lists.samba.org
> Onderwerp: Re: [Samba] samba-tool PTR with /16 network
> 
> Hi,
> 
> The wiki is clear for class C network it is not clear for class B.
> 
> Suppose my network is 172.19.0.0/16, I suppose the following 
> command is
> good  :
> 
> > samba-tool dns zonecreate <Your-AD-DNS-Server-IP-or-hostname>
> 19.172.in-addr.arpa
> 
> But what is the syntax PTR record for this computer  :
> server1.domain.lan = 172.19.0.11 ?
> 
> I've tested :
> 
> > samba-tool dns add <Your-AD-DNS-Server-IP-or-hostname>
> 19.172.in-addr.arpa 0.11 PTR server1.domain.lan : not good !
> 
> > samba-tool dns add <Your-AD-DNS-Server-IP-or-hostname>
> 19.172.in-addr.arpa 11.0 PTR server1.domain.lan: not good !
> 
> > samba-tool dns add <Your-AD-DNS-Server-IP-or-hostname>
> 19.172.in-addr.arpa .0.11 PTR server1.domain.lan : not good !
> 
> > samba-tool dns add <Your-AD-DNS-Server-IP-or-hostname>
> 19.172.in-addr.arpa 11.0. PTR server1.domain.lan: not good !
> 
> Regard
> 
> Le 06/08/2019 à 18:16, Rowland penny via samba a écrit :
> > On 06/08/2019 16:21, L.P.H. van Belle via samba wrote:
> >> Its pretty clear how in the wiki.
> >>
> >> https://wiki.samba.org/index.php/DNS_Administration
> >>
> >> samba-tool dns zonecreate <Your-AD-DNS-Server-IP-or-hostname>
> >> 0.99.10.in-addr.arpa
> >>
> >> ;-)
> >
> > And that would get you a /24 network
> >
> > And I also thought wrong, yes the name is wrong, but it should have
> > been '11.0' instead of '0.11'
> >
> > Rowland
> >
> >
> >
> -- 
> 	   	*Hervé* *HÉNOCH*
> *Responsable projets informatique*
> Tél. : 04.90.27.57.44 h.henoch at isc84.org <mailto:h.henoch at isc84.org>
> 
> /250, chemin de Baigne-Pieds ? 84 000 Avignon/
> */www.institut-sainte-catherine.org/*
> <http://www.institut-sainte-catherine.org/>
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 




More information about the samba mailing list