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
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/>
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 > >
On 07/08/2019 09:27, L.P.H. van Belle via samba wrote:> 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. >Yes, but not with '172.19' ;-) I get the same results, but there is a problem, the OPs ipaddress is for an internet domain: host -t PTR 172.9.0.11 11.0.9.172.in-addr.arpa domain name pointer 172-9-0-11.lightspeed.snantx.sbcglobal.net. ?I do hope that the OPs 'domain.lan' is 'snantx.sbcglobal.net' or he is using someone else's IP range, but then again, I hope it isn't, because if it is, his DC is internet resolvable. Rowland
Yes, offcourse, the 172.19 is a "bad" example. I suggest we use the official RFC 1918 zones. 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 And for example 192.168.0.0/24 as extra, or people get confused. ;-) Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland penny via samba > Verzonden: woensdag 7 augustus 2019 10:52 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] samba-tool PTR with /16 network > > On 07/08/2019 09:27, L.P.H. van Belle via samba wrote: > > 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. > > > Yes, but not with '172.19' ;-) > > I get the same results, but there is a problem, the OPs > ipaddress is for > an internet domain: > > host -t PTR 172.9.0.11 > 11.0.9.172.in-addr.arpa domain name pointer > 172-9-0-11.lightspeed.snantx.sbcglobal.net. > ?I do hope that the OPs 'domain.lan' is > 'snantx.sbcglobal.net' or he is > using someone else's IP range, but then again, I hope it > isn't, because > if it is, his DC is internet resolvable. > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >