Dns & slave or backup server

dns
samba-dnsupdate

#1

Hello, I have a domain with two controllers, if I turn off one the dns continues to return all the hosts instead of the active one. What can I check to verify the correct behaviour?


#2

maybe I was not very clear. normally the dns query for the realm returns the list of dc (backup, slave) server but if one of them is off should return only the list of active dc, it is correct?

host my.local.intranet
my.local.intranet has address 10.0.0.1
my.local.intranet has address 10.0.0.2
my.local.intranet has address 10.0.0.3

if 10.0.0.2 go down or is unreachable I’m expect that the dns return only:
my.local.intranet has address 10.0.0.1
my.local.intranet has address 10.0.0.3

is this the correct behaviour?


#3

I’m the only with this problem?


#4

Hi @bbassotti,

AFAIK is this the normal behaviour with DNS. If you want to remove a server from the list of available DNS servers, you would need to create a script which runs at shutdown, removing the server from DNS, and which runs during boot time to add itself to the list of available DNS servers.

Beware that this might not have a direct impact since DNS is only updated on a regular basis and not instantly.

Regards,
Timo Denissen