<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
On Wed, 2014-10-22 at 07:48 -0400, Brian J. Murrell (brian) wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
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 <A HREF="http://www.sun.com">www.sun.com</A>.

; <<>> DiG 9.8.1-P1 <<>> @localhost -t any <A HREF="http://www.sun.com">www.sun.com</A>.
; (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:
<A HREF="http://www.sun.com">www.sun.com</A>.             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?
</PRE>
</BLOCKQUOTE>
<BR>
Check this option in the manual to see the conditions for the directive not to be ignored! :)<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>

Cheers,
b.




_______________________________________________
Dnsmasq-discuss mailing list
<A HREF="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</A>
<A HREF="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>