[Samba] New PTR records not visible
L.P.H. van Belle
belle at bazuin.nl
Thu Feb 27 08:53:03 UTC 2020
Ok, new test.
Besides that i dont like the python errors shown, this still looks good.
So i dont know.. See below, i can not make it error.
for x in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ; do samba-tool dns add dc1.internal.dom.tld $x.249.10.in-addr.arpa 158 PTR host-test.extrazone.dom.tld ; done
Record added successfully
Record added successfully
Record added successfully
Record added successfully
Record added successfully
ERROR: Zone does not exist; record coud not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
for x in 0 1 2 3 4 5 6 7 ; do samba-tool dns add dc1.internal.dom.tld $x.249.10.in-addr.arpa 158 PTR host-test.extrazone.dom.tld ; done
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 945, in run
raise e
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 941, in run
0, server, zone, name, add_rec_buf, None)
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 945, in run
raise e
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 941, in run
0, server, zone, name, add_rec_buf, None)
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 945, in run
raise e
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 941, in run
0, server, zone, name, add_rec_buf, None)
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 945, in run
raise e
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 941, in run
0, server, zone, name, add_rec_buf, None)
ERROR(runtime): uncaught exception - (9711, 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 945, in run
raise e
File "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 941, in run
0, server, zone, name, add_rec_buf, None)
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
ERROR: Zone does not exist; record could not be added.
for x in 0 1 2 3 4 5 6 7 ; do nslookup 10.249.$x.158 ; done
158.0.249.10.in-addr.arpa name = host-test.extrazone.dom.tld.
158.1.249.10.in-addr.arpa name = host-test.extrazone.dom.tld.
158.2.249.10.in-addr.arpa name = host-test.extrazone.dom.tld.
158.3.249.10.in-addr.arpa name = host-test.extrazone.dom.tld.
158.4.249.10.in-addr.arpa name = host-test.extrazone.dom.tld.
** server can't find 158.5.249.10.in-addr.arpa: NXDOMAIN
** server can't find 158.6.249.10.in-addr.arpa: NXDOMAIN
** server can't find 158.7.249.10.in-addr.arpa: NXDOMAIN
Other range since you mentioned, this was in 192.168.x zones.
So here you go.
for x in 0 1 2 3 4 5 6 ; do samba-tool dns zonecreate dc1.internal.dom.tld $x.168.192.in-addr.arpa ; done
Zone 0.168.192.in-addr.arpa created successfully
Zone 1.168.192.in-addr.arpa created successfully
Zone 2.168.192.in-addr.arpa created successfully
Zone 3.168.192.in-addr.arpa created successfully
Zone 4.168.192.in-addr.arpa created successfully
Zone 5.168.192.in-addr.arpa created successfully
Zone 6.168.192.in-addr.arpa created successfully
for x in 0 1 2 3 4 5 6 ; do samba-tool dns add dc1.internal.dom.tld $x.168.192.in-addr.arpa 1 PTR host-test.extrazone.dom.tld ; done
Record added successfully
Record added successfully
Record added successfully
Record added successfully
Record added successfully
Record added successfully
Record added successfully
for x in 0 1 2 3 4 5 6 ; do nslookup 192.168.$x.1 ; done
1.0.168.192.in-addr.arpa name = host-test.extrazone.dom.tld.
1.1.168.192.in-addr.arpa name = host-test.extrazone.dom.tld.
1.2.168.192.in-addr.arpa name = host-test.extrazone.dom.tld.
1.3.168.192.in-addr.arpa name = host-test.extrazone.dom.tld.
1.4.168.192.in-addr.arpa name = host-test.extrazone.dom.tld.
1.5.168.192.in-addr.arpa name = host-test.extrazone.dom.tld.
1.6.168.192.in-addr.arpa name = host-test.extrazone.dom.tld.
Did you run my debugscript already, can you post it
https://github.com/thctlo/samba4/raw/master/samba-collect-debug-info.sh
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Christian Naumer via samba
> Verzonden: donderdag 27 februari 2020 9:24
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] New PTR records not visible
>
> Hi,
> have you tried adding an entry to another host on 157? For me it only
> produces the error with 0.168.192.in-addr.arpa and
> 2.168.192.in-addr.arpa. Not with 1 or 3.
>
> Regards
>
> Christian
>
>
> Am 27.02.20 um 08:42 schrieb L.P.H. van Belle via samba:
> > Hai,
> >
> > Today i thought lets re-test this again.
> > So this was done yesterday,
> >
> > samba-tool dns add dc1.internal.dom.tld
> 2.249.10.in-addr.arpa 157 PTR host.extrazone.dom.tld
> > samba-tool dns add dc1.internal.dom.tld
> 0.249.10.in-addr.arpa 157 PTR host.extrazone.dom.tld
> > samba-tool dns add dc1.internal.dom.tld
> 1.249.10.in-addr.arpa 157 PTR host.extrazone.dom.tld
> >
> > I did keep the entries in the dns yesterday.
> >
> > Today :
> >
> > samba-tool dns add dc1.internal.dom.tld
> 2.249.10.in-addr.arpa 157 PTR host.extrazone.dom.tld
> > Password for [Administrator at REALM]:
> > ERROR(runtime): uncaught exception - (9711,
> 'WERR_DNS_ERROR_RECORD_ALREADY_EXISTS')
> > File
> "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py",
> line 186, in _run
> > return self.run(*args, **kwargs)
> > File
> "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 945, in run
> > raise e
> > File
> "/usr/lib/python3/dist-packages/samba/netcmd/dns.py", line 941, in run
> > 0, server, zone, name, add_rec_buf, None)
> > # adding an extra on in "3"
> > samba-tool dns add dc1.internal.dom.tld
> 3.249.10.in-addr.arpa 157 PTR host.extrazone.dom.tld
> > Password for [Administrator at REALM]:
> > Record added successfully
> >
> > And i check all the reverse zones there dns records.
> > All checked out ok.
> >
> > Sorry i can not make if fail here.
> >
> >
> > Greetz,
> >
> > Louis
> >
> >
> >> -----Oorspronkelijk bericht-----
> >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> >> Christian Naumer via samba
> >> Verzonden: woensdag 26 februari 2020 15:54
> >> Aan: samba at lists.samba.org
> >> Onderwerp: Re: [Samba] New PTR records not visible
> >>
> >> Am 26.02.20 um 15:40 schrieb L.P.H. van Belle via samba:
> >>> So strange..
> >>>
> >>> I copied your commando's only change the arpa and
> >> servername / domainnames
> >>> All worked.
> >>
> >> Have you checked that you have this situation?
> >>
> >> If this entry "192.168.2.157" exists and if you try to add
> >> "192.168.0.157" another entry to point to "192.168.2.157" is added.
> >>
> >>
> >>>
> >>> So far nobody told how there ad-dc and DNS is setup..
> >>> Which i why i added :
> >>>>> Debian 10, my own packages.
> >>>>> Samba 4.11.6 + BIND9_DLZ is used .
> >>>
> >>> Now are you using samba DNS or BIND_DLZ dns ?
> >>
> >> I am using BIND_DLZ. On Centos 7 with the Sernet Packages.
> >>
> >> Regards
> >>
> >> Christian
> >>
> >> --
> >> Dr. Christian Naumer
> >> Unit Head Bioprocess Development
> >> B.R.A.I.N Aktiengesellschaft
> >> Darmstaedter Str. 34-36, D-64673 Zwingenberg
> >> e-mail cn at brain-biotech.com, homepage www.brain-biotech.com
> >> fon +49-6251-9331-30 / fax +49-6251-9331-11
> >>
> >> Sitz der Gesellschaft: Zwingenberg/Bergstrasse
> >> Registergericht AG Darmstadt, HRB 24758
> >> Vorstand: Adriaan Moelker (Vorstandsvorsitzender),
> >> Manfred Bender, Ludger Roedder
> >> Aufsichtsratsvorsitzender: Dr. Georg Kellinghusen
> >>
> >> --
> >> To unsubscribe from this list go to the following URL and read the
> >> instructions: https://lists.samba.org/mailman/options/samba
> >>
> >>
> >
> >
>
> --
> Dr. Christian Naumer
> Unit Head Bioprocess Development
> B.R.A.I.N Aktiengesellschaft
> Darmstaedter Str. 34-36, D-64673 Zwingenberg
> e-mail cn at brain-biotech.com, homepage www.brain-biotech.com
> fon +49-6251-9331-30 / fax +49-6251-9331-11
>
> Sitz der Gesellschaft: Zwingenberg/Bergstrasse
> Registergericht AG Darmstadt, HRB 24758
> Vorstand: Adriaan Moelker (Vorstandsvorsitzender),
> Manfred Bender, Ludger Roedder
> Aufsichtsratsvorsitzender: Dr. Georg Kellinghusen
>
> --
> 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