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
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 optionYeah, 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 -- 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
Thanks a lot, that worked! Best Regards, Joachim -----Urspr?ngliche Nachricht----- Von: samba <samba-bounces at lists.samba.org> Im Auftrag von Robert Marcano via samba Gesendet: Thursday, 17 December 2020 18:08 An: samba at lists.samba.org Betreff: Re: [Samba] samba DC and docker interfaces? 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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba