[Samba] Samba + BIND9 DLZ. DNS dosen't resolve FQDN, only short hostname

Rowland Penny rpenny at samba.org
Tue Jan 22 14:02:10 UTC 2019


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



More information about the samba mailing list