<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 04.10.2010 19:14, Simon Kelley wrote:
<blockquote cite="mid:4CAA0B93.7090602@thekelleys.org.uk"
type="cite">
<pre wrap="">Glandvador wrote:
</pre>
<br>
<blockquote type="cite">
<pre wrap="">The only thing I had to do was to also convert all the "cname="
statements (in addition to address ones) to entries in /etc/hosts. Is
this right?
</pre>
</blockquote>
<pre wrap="">
I'm not sure exactly what you mean, please could you give a bit more detail?
</pre>
</blockquote>
<br>
Initially, I had:<br>
<br>
/etc/dsnmasq.conf:<br>
<br>
no-hosts<br>
address = /mydomain.com/192.168.10.1<br>
address = /mail.mydomain.com/192.168.10.1<br>
cname = www, mydomain.com<br>
<br>
In this case pinging mydomain.com, mail.mydomain.com and
<a class="moz-txt-link-abbreviated" href="http://www.mydomain.com">www.mydomain.com</a> worked. But also test.mydomain.com.<br>
<br>
Then, on some <span id="hotword"><span style="cursor: default;
background-color: transparent;" id="hotword" name="hotword">recommendations
</span></span>:) I changed to:<br>
<br>
/etc/dnsmasq.conf:<br>
no-hosts<br>
addn-hosts = /etc/dnsmasq.zones<br>
cname = www, mydomain.com<br>
<br>
/etc/dnsmasq.zones<br>
192.168.10.1 mydomain.com<br>
192.168.10.1 mail.mydomain.com<br>
<br>
Now, pinging mydomain.com and mail.mydomain.com worked. Correctly,
test.mydomain.com don't. But also <a class="moz-txt-link-abbreviated" href="http://www.mydomain.com">www.mydomain.com</a> didn't respond.<br>
<br>
Finally, I have:<br>
<br>
/etc/dnsmasq.conf:<br>
no-hosts<br>
addn-hosts = /etc/dnsmasq.zones<br>
<br>
/etc/dnsmasq.zones<br>
192.168.10.1 mydomain.com<br>
192.168.10.1 mail.mydomain.com<br>
192.168.10.1 <a class="moz-txt-link-abbreviated" href="http://www.mydomain.com">www.mydomain.com</a><br>
<br>
And now, this works like intended.<br>
<br>
I had the assumption that addn-hosts file is equivalent to the
system /etc/hosts file. Maybe I am wrong and putting domains into
/etc/hosts instead /etc/dnsmasq.zones will make cname work... <br>
<br>
Best regards,<br>
Glandvador.<br>
<br>
</body>
</html>