[Samba] Remove Redundant DCs internal DNS

Rowland Penny rpenny at samba.org
Thu May 31 10:14:12 UTC 2018


On Thu, 31 May 2018 09:42:50 +0000
Paul Littlefield via samba <samba at lists.samba.org> wrote:

> On 29/05/18 12:55, Paul Littlefield via samba wrote:
> > Hello List,
> > 
> > I have successfully migrated my DCs to 4.7.6-Ubuntu
> > 
> > However, I still have some traces of the old DCs in the DNS...
> > 
> > $ samba-tool dns query dc3 mydomain.com @ ALL
> >    Name=, Records=8, Children=0
> >      SOA: serial=570, refresh=900, retry=600, expire=86400,
> > minttl=0, ns=dc3.mydomain.com. NS: samba.mydomain.com.
> > (flags=600000f0, serial=110, ttl=900) NS: dc3.mydomain.com.
> > (flags=600000f0, serial=110, ttl=900) NS: dc4.mydomain.com.
> > (flags=600000f0, serial=110, ttl=900) A: 192.168.0.208
> > (flags=600000f0, serial=110, ttl=900) A: 192.168.0.209
> > (flags=600000f0, serial=110, ttl=900) A: 192.168.0.218
> > (flags=600000f0, serial=110, ttl=900) A: 192.168.0.219
> > (flags=600000f0, serial=110, ttl=900) Name=_msdcs, Records=0,
> > Children=0 Name=_sites, Records=0, Children=1
> >    Name=_tcp, Records=0, Children=4
> >    Name=_udp, Records=0, Children=2
> > 
> > 
> > ...so 'samba', '192.168.0.208' and '192.168.0.209' are now gone.
> > 
> > How do I remove all entries in the DNS for these?
> > 
> > I can use 'samba-tool' or the RSAT gui.
> > 
> > Thanks in advance.
> > 
> > Regards,
> > 
> 
> 
> Hello List,
> 
> Sorry to repost this, but could do with an answer.
> 
> Many thanks,
> 
> :-)
> 

Well, you could have run this on a DC:

samba-tool dns --help

and from the output, you could have thought about running this:

samba-tool dns delete --help

Which would have got you this:

Usage: samba-tool dns delete <server> <zone> <name> <A|AAAA|PTR|CNAME|NS|MX|SRV|TXT> <data>

So using your data:

samba-tool dns delete 127.0.0.1 mydomain.com @ A 192.168.0.208

Rowland



More information about the samba mailing list