Mgr. Peter Tuharsky
2019-Jan-22 13:51 UTC
[Samba] Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
Rowland, thank You, but this removes only the NS record, but the faulty domain A records remain. How to deal with them, I don't know. They behave unlike the ordinary A records. Name=, Records=8, Children=0 SOA: serial=27, refresh=900, retry=600, expire=86400, minttl=3600, ns=blacktux.interbronz.local., email=hostmaster.interbronz.local. (flags=600000f0, serial=27, ttl=3600) NS: blacktux.interbronz.local. (flags=600000f0, serial=1, ttl=900) A: 10.10.10.101 (flags=600000f0, serial=1, ttl=900) A: 10.20.1.1 (flags=600000f0, serial=3, ttl=900) A: 10.20.2.1 (flags=600000f0, serial=9, ttl=900) A: 10.20.3.1 (flags=600000f0, serial=10, ttl=900) A: 10.20.4.1 (flags=600000f0, serial=11, ttl=900) A: 10.30.1.1 (flags=600000f0, serial=23, ttl=900) Dňa 20. 1. 2019 o 12:46 Rowland Penny via samba napísal(a):> On Sun, 20 Jan 2019 11:51:21 +0100 > Peter Tuharsky via samba <samba at lists.samba.org> wrote: > >> Rowland, thank You for advice. >> >> I can manage standard A records, but not sure, what to do with the >> NS. I can't figure out, how to delete invalid A subrecord of NS >> record. >> >> I'm afraid to experiment much. Please, could You point me to some >> working example? >> >> Peter >> > This should work, when run a DC: > > samba-tool dns delete 127.0.0.1 samdom.example.com @ NS 'FQDN of DC to > remove' > > Where: > > 'samdom.example.com' is the domain to remove the record from. > '@' is the SOA. > 'NS' is the record type. > 'FQDN of DC to remove' is the record data to remove i.e. something like: > dc.samdom.example.com > > As always, it is best to test first, it shouldn't damage anything, but > better safe than sorry ;-) > > Rowland >
Rowland Penny
2019-Jan-22 14:02 UTC
[Samba] Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
On Tue, 22 Jan 2019 14:51:02 +0100 "Mgr. Peter Tuharsky via samba" <samba at lists.samba.org> wrote:> Rowland, thank You, but this removes only the NS record, but the > faulty domain A records remain. How to deal with them, I don't know. > They behave unlike the ordinary A records. > > Name=, Records=8, Children=0 > SOA: serial=27, refresh=900, retry=600, expire=86400, minttl=3600, > ns=blacktux.interbronz.local., email=hostmaster.interbronz.local. > (flags=600000f0, serial=27, ttl=3600) > NS: blacktux.interbronz.local. (flags=600000f0, serial=1, ttl=900) > A: 10.10.10.101 (flags=600000f0, serial=1, ttl=900) > A: 10.20.1.1 (flags=600000f0, serial=3, ttl=900) > A: 10.20.2.1 (flags=600000f0, serial=9, ttl=900) > A: 10.20.3.1 (flags=600000f0, serial=10, ttl=900) > A: 10.20.4.1 (flags=600000f0, serial=11, ttl=900) > A: 10.30.1.1 (flags=600000f0, serial=23, ttl=900) >You posted: I can manage standard A records, but not sure, what to do with the NS. I can't figure out, how to delete invalid A subrecord of NS record. So I took it you wanted to know how to remove an NS record. You remove an 'A' record in a similar way, try reading: 'samba-tool dns samba-tool dns delete --help' Which will produce this: Usage: samba-tool dns delete <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <data> Delete a DNS record For each type data contents are as follows: A ipv4_address_string AAAA ipv6_address_string PTR fqdn_string CNAME fqdn_string NS fqdn_string MX "fqdn_string preference" SRV "fqdn_string port priority weight" TXT "'string1' 'string2' ..." See if you can work out how to delete the unwanted 'A' records ? Rowland
Peter Tuharsky
2019-Jan-22 17:54 UTC
[Samba] Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
Well, I gone so far even before :-) I even deleted them with "Records deleted successfully", but listing the domain records, they were still there. That's why I thought I must have wrong syntax or so. But looking at the record again now, they are gone. That's good. However, that dosen't help resolve the FQDN issue. So, next thing I will probably do, according to Your advice, is to try installing newer version of Samba. I doubt it will help though, cause I doubt the 4.5 version was such flawed that the basic DNS function didn't work because of that. Dňa 22. 1. 2019 o 15:02 Rowland Penny via samba napísal(a):> On Tue, 22 Jan 2019 14:51:02 +0100 > "Mgr. Peter Tuharsky via samba" <samba at lists.samba.org> wrote: > >> Rowland, thank You, but this removes only the NS record, but the >> faulty domain A records remain. How to deal with them, I don't know. >> They behave unlike the ordinary A records. >> >> Name=, Records=8, Children=0 >> SOA: serial=27, refresh=900, retry=600, expire=86400, minttl=3600, >> ns=blacktux.interbronz.local., email=hostmaster.interbronz.local. >> (flags=600000f0, serial=27, ttl=3600) >> NS: blacktux.interbronz.local. (flags=600000f0, serial=1, ttl=900) >> A: 10.10.10.101 (flags=600000f0, serial=1, ttl=900) >> A: 10.20.1.1 (flags=600000f0, serial=3, ttl=900) >> A: 10.20.2.1 (flags=600000f0, serial=9, ttl=900) >> A: 10.20.3.1 (flags=600000f0, serial=10, ttl=900) >> A: 10.20.4.1 (flags=600000f0, serial=11, ttl=900) >> A: 10.30.1.1 (flags=600000f0, serial=23, ttl=900) >> > You posted: > > I can manage standard A records, but not sure, what to do with the NS. I > can't figure out, how to delete invalid A subrecord of NS record. > > So I took it you wanted to know how to remove an NS record. > > You remove an 'A' record in a similar way, try reading: > > 'samba-tool dns samba-tool dns delete --help' > > Which will produce this: > > Usage: samba-tool dns delete <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <data> > > Delete a DNS record > > For each type data contents are as follows: > A ipv4_address_string > AAAA ipv6_address_string > PTR fqdn_string > CNAME fqdn_string > NS fqdn_string > MX "fqdn_string preference" > SRV "fqdn_string port priority weight" > TXT "'string1' 'string2' ..." > > See if you can work out how to delete the unwanted 'A' records ? > > Rowland >
Peter Tuharsky
2019-Feb-07 20:05 UTC
[Samba] Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
Well, I have finally installed Samba 4.9 from Van Belle's repo, but still I cannot resolve FQDN's. Dňa 22. 1. 2019 o 15:02 Rowland Penny via samba napísal(a):> On Tue, 22 Jan 2019 14:51:02 +0100 > "Mgr. Peter Tuharsky via samba" <samba at lists.samba.org> wrote: > >> Rowland, thank You, but this removes only the NS record, but the >> faulty domain A records remain. How to deal with them, I don't know. >> They behave unlike the ordinary A records. >> >> Name=, Records=8, Children=0 >> SOA: serial=27, refresh=900, retry=600, expire=86400, minttl=3600, >> ns=blacktux.interbronz.local., email=hostmaster.interbronz.local. >> (flags=600000f0, serial=27, ttl=3600) >> NS: blacktux.interbronz.local. (flags=600000f0, serial=1, ttl=900) >> A: 10.10.10.101 (flags=600000f0, serial=1, ttl=900) >> A: 10.20.1.1 (flags=600000f0, serial=3, ttl=900) >> A: 10.20.2.1 (flags=600000f0, serial=9, ttl=900) >> A: 10.20.3.1 (flags=600000f0, serial=10, ttl=900) >> A: 10.20.4.1 (flags=600000f0, serial=11, ttl=900) >> A: 10.30.1.1 (flags=600000f0, serial=23, ttl=900) >> > You posted: > > I can manage standard A records, but not sure, what to do with the NS. I > can't figure out, how to delete invalid A subrecord of NS record. > > So I took it you wanted to know how to remove an NS record. > > You remove an 'A' record in a similar way, try reading: > > 'samba-tool dns samba-tool dns delete --help' > > Which will produce this: > > Usage: samba-tool dns delete <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <data> > > Delete a DNS record > > For each type data contents are as follows: > A ipv4_address_string > AAAA ipv6_address_string > PTR fqdn_string > CNAME fqdn_string > NS fqdn_string > MX "fqdn_string preference" > SRV "fqdn_string port priority weight" > TXT "'string1' 'string2' ..." > > See if you can work out how to delete the unwanted 'A' records ? > > Rowland >
Seemingly Similar Threads
- Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
- Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
- Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
- Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname
- Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname