[Samba] samba DC and docker interfaces?

Robert Marcano robert at marcanoonline.com
Thu Dec 17 18:51:34 UTC 2020


On 12/17/20 2:01 PM, Andrew Bartlett wrote:
> On Thu, 2020-12-17 at 13:08 -0400, Robert Marcano via samba wrote:
>> On 12/17/20 1:04 PM, Robert Marcano wrote:
>>> On 12/17/20 12:50 PM, Joachim Lindenberg via samba wrote:
>>>> I configured docker on one of my DCs, and the DC now registers
>>>> the
>>>> docker bridge as one of its IP address in DNS. Is there a way to
>>>> suppress this?
>>>>
>>>> Thanks, Joachim
>>>>
>>>
>>> I have never managed to do this, the container private IP is
>>> always
>>> added because it is listening on it. I had to enable host
>>> networking in
>>> order to Samba only use public addresses.
>>>
>>> I even tried with a script to remove the offending IP DNS record,
>>> but
>>> noticed it was being added again while the DC was running.
>>
>> Now that I reread this, you are running Docker not Samba inside a
>> Docker
>> container, use the "interfaces" global option
> 
> Yeah, that's the right fix for that.
> 
> For the 'I'm running Samba in a container and I need the public IP
> listed in DNS' problem, see the '--current-ip' option to
> samba_dnsupdate.  You can then specify that in the 'dns update command'
> in the smb.conf, overriding the default.
> 
> Andrew Bartlett
> 

Thank you very much



More information about the samba mailing list