Hi Simon,<br><br>I looked into this some more. I still feel like maybe something might be wrong with either my configuration or maybe dnsmasq itself. I just launched dnsmasq using the -d argument and executed "host
<a href="http://mail.isomorphism.org">mail.isomorphism.org</a>". The output was slightly different this time and pretty interesting. Here's the output of the host command:<br><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$ host <a href="http://mail.isomorphism.org">mail.isomorphism.org</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<a href="http://mail.isomorphism.org">mail.isomorphism.org</a> is an alias for <a href="http://ghs.GOOGLE.COM">ghs.GOOGLE.COM</a>.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<a href="http://ghs.GOOGLE.COM">ghs.GOOGLE.COM</a> is an alias for <a href="http://ghs.l.GOOGLE.COM">ghs.l.GOOGLE.COM</a>.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
Host <a href="http://ghs.l.GOOGLE.COM.austin.rr.com">ghs.l.GOOGLE.COM.austin.rr.com</a> not found: 5(REFUSED)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Host <a href="http://ghs.l.GOOGLE.COM.austin.rr.com">
ghs.l.GOOGLE.COM.austin.rr.com</a> not found: 5(REFUSED)</span><br><br>And the output from "dnsmasq -d":<br><br><span style="font-family: courier new,monospace;">$ sudo dnsmasq -d</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">dnsmasq: started, version 2.39 cachesize 150</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: compile time options: IPv6 GNU-getopt no-ISC-leasefile DBus I18N TFTP
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: DHCP, IP range <a href="http://192.168.1.100">192.168.1.100</a> -- <a href="http://192.168.1.200">192.168.1.200
</a>, lease time 12h</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: using local addresses only for domain <a href="http://isomorphism.org">isomorphism.org</a>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: using nameserver 69.60.109.125#53 for domain <a href="http://mail.isomorphism.org">mail.isomorphism.org</a>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: reading /etc/resolv.conf</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
dnsmasq: ignoring nameserver <a href="http://127.0.0.1">127.0.0.1</a> - local interface</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: using local addresses only for domain
<a href="http://isomorphism.org">isomorphism.org</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: using nameserver 69.60.109.125#53 for domain <a href="http://mail.isomorphism.org">
mail.isomorphism.org</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: read /etc/hosts - 8 addresses</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">dnsmasq: query[A] <a href="http://mail.isomorphism.org">mail.isomorphism.org</a> from <a href="http://127.0.0.1">127.0.0.1</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">dnsmasq: forwarded <a href="http://mail.isomorphism.org">mail.isomorphism.org</a> to <a href="http://69.60.109.125">69.60.109.125</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">dnsmasq: reply <a href="http://mail.isomorphism.org">mail.isomorphism.org</a> is <CNAME></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
dnsmasq: reply <a href="http://ghs.GOOGLE.COM">ghs.GOOGLE.COM</a> is <CNAME></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: reply <a href="http://ghs.l.GOOGLE.COM">
ghs.l.GOOGLE.COM</a> is <NODATA>-IPv4</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: query[AAAA] <a href="http://ghs.l.GOOGLE.COM">ghs.l.GOOGLE.COM</a>
from <a href="http://127.0.0.1">127.0.0.1</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: query[AAAA] <a href="http://ghs.l.GOOGLE.COM.austin.rr.com">ghs.l.GOOGLE.COM.austin.rr.com
</a> from <a href="http://127.0.0.1">127.0.0.1</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: query[MX] <a href="http://ghs.l.GOOGLE.COM">ghs.l.GOOGLE.COM
</a> from <a href="http://127.0.0.1">127.0.0.1</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dnsmasq: query[MX] <a href="http://ghs.l.GOOGLE.COM.austin.rr.com">
ghs.l.GOOGLE.COM.austin.rr.com</a> from <a href="http://127.0.0.1">127.0.0.1</a></span><br style="font-family: courier new,monospace;"><br>So it seems like dnsmasq is somehow appending my domain name (<a href="http://isomorphism.org">
isomorphism.org</a>) to full domain names.<br><br>Here is what is effectively in my dnsmasq.conf file (I stripped comments and blank lines):<br><br><span style="font-family: courier new,monospace;">$ cat dnsmasq.conf | grep -v "^#" | grep -v "^\s*$"
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">domain-needed</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
server=/mail.isomorphism.org/69.60.109.125</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">local=/isomorphism.org/</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">except-interface=eth1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">expand-hosts</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">domain=<a href="http://isomorphism.org">isomorphism.org</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">dhcp-range=
<a href="http://192.168.1.100">192.168.1.100</a>,<a href="http://192.168.1.200">192.168.1.200</a>,12h</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
... bunch of lines mapping MAC address to ip address and name removed ...</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
dhcp-authoritative</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">log-queries</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
log-dhcp</span><br style="font-family: courier new,monospace;"><br><br>Am I doing something wrong here? Maybe the domain-needed parameter is causing this?<br><br>Thanks,<br>Brandon<br><br><br><div class="gmail_quote">On Jan 11, 2008 6:03 AM, Simon Kelley <
<a href="mailto:simon@thekelleys.org.uk">simon@thekelleys.org.uk</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Brandon Beck wrote:<br>> Hi Simon,<br>><br>> I'm trying to implement your suggestion, but I'm having some troubles with<br>> it. Here's what I've done/what I know:<br>><br>> 1) I've added the line"server=/mail.isomorphism.org/69.60.109.125" to my
<br>> dnsmasq.conf. The ip address corresponds to my primary name server for my<br>> domain (<a href="http://ns.dominia.org" target="_blank">ns.dominia.org</a>).<br><br></div>> *bbeck@server:~$ dig <a href="http://mail.isomorphism.org" target="_blank">
mail.isomorphism.org</a><br><div class="Ih2E3d">> *<br>> ; <<>> DiG 9.4.1-P1 <<>> <a href="http://mail.isomorphism.org" target="_blank">mail.isomorphism.org</a><br>> ;; global options: printcmd
<br>> ;; Got answer:<br>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18191<br>> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0<br>><br>> ;; QUESTION SECTION:<br>> ;mail.isomorphism.org. IN A
<br>><br>> ;; ANSWER SECTION:<br>> <a href="http://mail.isomorphism.org" target="_blank">mail.isomorphism.org</a>. 41407 IN CNAME <a href="http://ghs.GOOGLE.COM" target="_blank">ghs.GOOGLE.COM</a>.<br>
> <a href="http://ghs.GOOGLE.COM" target="_blank">ghs.GOOGLE.COM</a>. 464425 IN CNAME <a href="http://ghs.l.GOOGLE.COM" target="_blank">ghs.l.GOOGLE.COM</a>.<br>><br>> ;; Query time: 0 msec<br>> ;; SERVER:
127.0.0.1#53(<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>)<br>> ;; WHEN: Thu Jan 10 22:46:21 2008<br>> ;; MSG SIZE rcvd: 96<br>><br><br></div>I think the problem is just that you're using the wrong server. I guess
<br>that the primary name server for your domain is configured as just that:<br>an authoritative nameserver. If instead, you just use the same<br>nameserver that's in /etc/resolv.conf, probably the recursive nameserver
<br>that's provided by your ISP, then it will just work.<br><br>I did the same query as you to <a href="http://69.60.109.125" target="_blank">69.60.109.125</a> and got the same answer. If<br>I send the query instead to my ISPs nameserver, via dnsmasq, I get the
<br>correct answer<br><br>srk@spike:~/dnsmasq-2.41/dnsmasq-2.41$ dig <a href="http://mail.isomorphism.org" target="_blank">mail.isomorphism.org</a><br><br>; <<>> DiG 9.3.2-P1 <<>> <a href="http://mail.isomorphism.org" target="_blank">
mail.isomorphism.org</a><br><div class="Ih2E3d">;; global options: printcmd<br>;; Got answer:<br></div>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64849<br><div class="Ih2E3d">;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
<br><br>;; QUESTION SECTION:<br>;mail.isomorphism.org. IN A<br><br>;; ANSWER SECTION:<br></div><a href="http://mail.isomorphism.org" target="_blank">mail.isomorphism.org</a>. 42503 IN CNAME <a href="http://ghs.google.com" target="_blank">
ghs.google.com</a>.<br><a href="http://ghs.google.com" target="_blank">ghs.google.com</a>. 593393 IN CNAME <a href="http://ghs.l.google.com" target="_blank">ghs.l.google.com</a>.<br><a href="http://ghs.l.google.com" target="_blank">
ghs.l.google.com</a>. 174 IN A <a href="http://72.14.207.121" target="_blank">72.14.207.121</a><br><br>;; Query time: 16 msec<br>;; SERVER: 192.168.0.4#53(<a href="http://192.168.0.4" target="_blank">
192.168.0.4</a>)<br>;; WHEN: Fri Jan 11 11:59:14 2008<br>;; MSG SIZE rcvd: 102<br><br><br>HTH<br><br><br>Simon.<br><br><br>I get exc<br></blockquote></div><br>