Re: dns port parameter in smb.conf
Sami Hulkko via samba <[email protected]> Thu, 19 Mar 2026 15:18:49 +0200
| Newsgroups | gmane.network.samba.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, First thought: if you have DNS (bind9 or samba) on specific port on one server make certain that the replicating server listens that port for replication purposes. SH On 19/03/2026 13.05, Anton Shevtsov via samba wrote: > Dear colleagues, > > I would like to clarify the purpose and intended use of the |dns port| > parameter in |smb.conf|. > > In my setup, I changed this parameter on a domain controller to a > non-standard port (e.g., 5353). When querying this port explicitly, > DNS resolution works as expected. However, DNS replication between > domain controllers no longer functions. > > Below is a relevant excerpt from the configuration and socket status: > > [root@dc ~]# grep 'dns port' /etc/samba/smb.conf dns port = 5353 > [root@dc ~]# netstat -anp | grep 5353 tcp 0 0 192.168.150.10:5353 > 0.0.0.0:* LISTEN 2393/samba tcp 0 0 192.168.171.10:5353 0.0.0.0:* > LISTEN 2393/samba tcp 0 0 127.0.0.1:5353 0.0.0.0:* LISTEN 2393/samba > tcp 0 0 ::1:5353 :::* LISTEN 2393/samba udp 0 0 192.168.171.10:5353 > 0.0.0.0:* 2393/samba udp 0 0 192.168.150.10:5353 0.0.0.0:* 2393/samba > udp 0 0 127.0.0.1:5353 0.0.0.0:* 2393/samba udp 0 0 0.0.0.0:5353 > 0.0.0.0:* 771/avahi-daemon: r udp 0 0 ::1:5353 :::* 2393/samba udp 0 0 > :::5353 :::* 771/avahi-daemon: r > > From my understanding, this behavior is expected, as standard DNS > replication mechanisms assume the use of port 53. > > As a possible workaround, I am considering deploying a caching DNS > server (such as BIND) on the same host, listening on port 53, and > configuring it to forward DNS requests to Samba on port 5353. > > Could you please confirm whether such a configuration is supported and > would function correctly in terms of DNS replication? > > Thank you in advance for your assistance. > > -- Sami Hulkko +358 45 8569 319 [email protected] [email protected] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba