Web lists-archives.com

Re: [Samba] Samba and dnsmasq




On 12/18/18 3:28 PM, Nicolas via samba wrote:
Hello everyone !

Well, I'm setting up a 'new' box with samba 4.9.3 on Ubuntu 18.04

Idea is to use Host OS for Domain Controler (dc1.smb.domain.tld) and a LXC container (ubuntu 18.04 too) as Domain Member with File Server (fs.smb.domain.tld).

As someone who runs a similar setup (an OCI container as a DC and host as domain member), I recommend your host to have two IPs, one for the host services and one for services published by the container. services with ports that collide between both environments should be configured to bind to explicit IP addresses.

In my case the host runs an instance of Bind DNS for non AD related domains, so I have to modify the Bind configuration to only bind to the host public IP and not bind the the container dedicated public IP.


Administration through Windows OS will be done with a Qemu KVM.

Bad thing is that I get :

Failed to bind to 0.0.0.0:53 TCP - NT_STATUS_ADDRESS_ALREADY_ASSOCIATED

as dnsmasq is using port 53 :

netstat -tulpn | grep ":53"
tcp        0      0 192.168.122.1:53 0.0.0.0:* LISTEN      1283/dnsmasq
tcp        0      0 10.0.3.1:53 0.0.0.0:*               LISTEN 1062/dnsmasq tcp6       0      0 :::53 :::*                    LISTEN 1161/samba: task[dn udp        0      0 192.168.122.1:53 0.0.0.0:*                           1283/dnsmasq
udp        0      0 10.0.3.1:53 0.0.0.0:* 1062/dnsmasq
udp6       0      0 :::53 :::* 1161/samba: task[dn
Is there known solutions to resolve this, or should I use this kind of method :

https://medium.com/matematica-e-informatica/dnsmasq-and-samba4-ad-dc-74e69d46a1db

Thanks in advance for your time.

Nicolas




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba