[Samba] Internal DNS CNAME not working

Wayne Andersen waynea at clima-tech.com
Thu Mar 28 16:42:50 MDT 2013

Samba 4.0.0

I am running all of these commands from the PDC DC1.

domain mydomain.com

smb.conf does have a
dns forwarder =

samba-001 the actual host name, and also a PDC, in the same domain.
I would like to have the alias my-server point to samba-001.

I added a CNAME record:
bin/samba-tool dns add mydomain.com my-server CNAME samba-001 

I can query it.

bin/samba-tool dns query mydomain.com my-server CNAME
Password for [administrator at MYDOMAIN.COM]:
   Name=, Records=1, Children=0
     CNAME: samba-001. (flags=f0, serial=6, ttl=900)

Host finds it.

host -t CNAME my-server.mydomain.com
my-server.mydomain.com is an alias for samba-001.

I cannot ping it, it is not resolving properly.

ping samba-001,  resolves to the proper IP
ping samba-001.mydomain.com,  resolves to the proper IP
ping my-server,  ping: unknown host
ping my-server.mydomain.com,  ping: unknown host

Wayne Andersen
System Administrator
Clima-Tech Corporation

More information about the samba mailing list