[Samba] Samba public IP issue

Robert Marcano robert at marcanoonline.com
Thu Dec 19 16:01:23 UTC 2019

On 12/19/19 8:21 AM, cristiant--- via samba wrote:
> Hello,
> I am running two Samba Domain Controllers on as VMs installed on two 
> physical hosts. I've managed to bind them and to run the replication. My 
> issues is that the private IP address is advertised and the replication 
> fails. Even though I update the DNS entry  after a few minutes the 
> changes are overwritten and the replication fails again.
> Can someone help me with this issue? Is there any option to make this 
> changes permanent? Or ruining a DC on a VM is a good approach?
> Thank you in advance!
> Best regards!

I can say that I have seen this behavior when running inside a 
container, the internal container address is added to the DNS, and if 
you remote it from DNS, it is latter re added as you experience.

Our workaround has been to run the container using the host networking 
namespace, but Samba should be able to bind to a internal address with 
som,e way to tell it which one will be the real public address, be it 
forwarded by the container manager or from the host VM to the VM ip address.

In the case of VMs with current Samba behavior, you will need to bridge 
your VM instead of NATing them and forwarding ports.

More information about the samba mailing list