Hello, I have the need to set specific IPs in DNS to allow clients to correctly communicate with Samba. I archieve this editing samba/private/dns_update_list and replacing the A record for the domain. This works until some package update replaces it with the default one. Is there any way to properly set a custom dns_update_list that does not get overwritten? I can't use the interfaces directive in smb.conf as the same interface has more than one IP. Thanks in advance
Le 09/02/2022 ? 17:50, Victor Rodriguez via samba a ?crit?:> Hello,Hi> > I have the need to set specific IPs in DNS to allow clients to > correctly communicate with Samba. I archieve this editing > samba/private/dns_update_list and replacing the A record for the > domain. This works until some package update replaces it with the > default one. > > Is there any way to properly set a custom dns_update_list that does > not get overwritten?on debian /ubuntu, you can try with diversion https://www.debian.org/doc/debian-policy/ap-pkg-diversions.html> > I can't use the interfaces directive in smb.conf as the same interface > has more than one IP. > > Thanks in advance > >-- Arnaud FLORENT IRIS Technologies
On Wed, 2022-02-09 at 17:50 +0100, Victor Rodriguez via samba wrote:> Hello, > > I have the need to set specific IPs in DNS to allow clients to > correctly > communicate with Samba.Why do you need to do this ? AD DC's must be master for the AD domain, so how have you setup your dns domain ? Rowland
On Wed, 2022-02-09 at 17:50 +0100, Victor Rodriguez via samba wrote:> Hello, > > I have the need to set specific IPs in DNS to allow clients to > correctly > communicate with Samba. I archieve this editing > samba/private/dns_update_list and replacing the A record for the > domain. > This works until some package update replaces it with the default > one. > > Is there any way to properly set a custom dns_update_list that does > not > get overwritten? > > I can't use the interfaces directive in smb.conf as the same > interface > 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 --current-ip=CURRENT_IP IP address to update DNS to match (helpful if behind NAT, valid multiple times, defaults to values from interfaces=) I added that for exactly this purpose, after learning how cloud and container "public IP" networking works. Andrew Bartlett -- 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 Solutions