[Dnsmasq-discuss] cname does not seem to be working

Brian J. Murrell (brian) brian at interlinx.bc.ca
Wed Oct 22 12:48:28 BST 2014


I am running dnsmasq 2.59 on Ubuntu 12.04.5.  I can't seem to get a
cname working.  I have added, for example to my dnsmasq.conf file:

cname=www.sun.com,www.oracle.com

However lookups still return the real CNAME:

# dig @localhost -t any www.sun.com.

; <<>> DiG 9.8.1-P1 <<>> @localhost -t any www.sun.com.
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58182
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.sun.com.			IN	ANY

;; ANSWER SECTION:
www.sun.com.		6622	IN	CNAME	legacy-sun.oraclegha.com.

;; Query time: 9 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Oct 22 07:42:00 2014
;; MSG SIZE  rcvd: 64

What am I doing wrong?  Or how do I further debug?

Cheers,
b.






More information about the Dnsmasq-discuss mailing list