[Samba] Custom dns_update_list file
abartlet at samba.org
Fri Feb 11 23:47:11 UTC 2022
On Wed, 2022-02-09 at 17:50 +0100, Victor Rodriguez via samba wrote:
> I have the need to set specific IPs in DNS to allow clients to
> communicate with Samba. I archieve this editing
> samba/private/dns_update_list and replacing the A record for the
> This works until some package update replaces it with the default
> Is there any way to properly set a custom dns_update_list that does
> get overwritten?
> I can't use the interfaces directive in smb.conf as the same
> has more than one IP.
Do you just want to set a single IP?
If so, the 'dns update command' can be changed from the default to
specify an option: --current-ip
IP address to update DNS to match (helpful if
NAT, valid multiple times, defaults to values
I added that for exactly this purpose, after learning how cloud and container "public IP" networking works.
Andrew Bartlett (he/him) https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT https://catalyst.net.nz/services/samba
Samba Development and Support, Catalyst IT - Expert Open Source
More information about the samba