[Samba] Samba4 DNS - Adding CNAME

Mike Howard mike at dewberryfields.co.uk
Sat May 19 03:34:19 MDT 2012

Hi All,

I'm using samba 4.0.0alpha21-GIT-UNKNOWN provisioned to use the internal 
dns server. I'm having a bit of trouble adding a CNAME entry, or more 
correctly, getting it to resolve after adding.

Prior to adding the CNAME a query returns (the relevant record);

   Name=centos, Records=1, Children=0
     A: (flags=f0, serial=2, ttl=900)

It's more than likely me doing something wrong, I really am poking 
around in the dark a bit with samba-tool, so maybe somebody could help 
me out. I've added a CNAME entry using samba-tool as follows;

samba-tool dns add mydomain centos CNAME debian

where <mydomain> is the zone, <name> is the name of a current A record 
(see above) and <debian> is the CNAME I want added.

A query no returns (the relevant record);

   Name=centos, Records=2, Children=0
     A: (flags=f0, serial=2, ttl=900)
     CNAME: debian. (flags=f0, serial=19, ttl=900)

On the face of it, to a layman like myself, the entry is added 
successfully (as per samba-tools output - Record added successfully), 
am 'nslookup' returns;

# nslookup debian

Non-authoritative answer:
*** Can't find debian: No answer

So, the question is; What am I doing wrong?

Any question is easy if you know the answer!

More information about the samba mailing list