[Dnsmasq-discuss] setting up dynamic DNS?
Adam Hardy
adam.ant at cyberspaceroad.com
Tue Sep 11 00:39:23 BST 2007
Jan 'RedBully' Seiffert on 10/09/07 23:48, wrote:
> Adam Hardy wrote:
>> But there is one more niggle: it looks as though dnsmasq on isengard is
>> asking the internet name-server where isengard is when another machine
>> asks it to resolve its hostname.
>>
>> isengard dnsmasq[2716]: query[AAAA] isengard.localdomain.net from
>> 192.168.0.234
>> isengard dnsmasq[2716]: forwarded isengard.localdomain.net to 194.74.65.69
>> isengard dnsmasq[2716]: forwarded isengard.localdomain.net to 194.74.65.69
>> isengard dnsmasq[2716]: query[AAAA] isengard.localdomain.net from
>> 192.168.0.234
>> isengard dnsmasq[2716]: forwarded isengard.localdomain.net to
>> 194.74.65.69
>
> The "problem" is, your client requests the AAAA record, or in other
> words the IPv6 address of isengard, which dnsmasq seems not to know (not
> in /etc/hosts or somewhere else)
> Because ...
>
>> isengard dnsmasq[2716]: query[A] isengard.localdomain.net from
>> 192.168.0.234
>> isengard dnsmasq[2716]: /etc/hosts isengard.localdomain.net is 192.168.0.2
>
> ... when your client asks for the A record, the IPv4 address, it is
> served directly from /etc/hosts
>
> But as said in the last mail, if you want to stop dnsmasq for calling
> upstream for things which are local, you may add
> local=/localdomain.net/
> to your dnsmasq.conf.
Yes you did say that previously but I was unsure about the requirement of the
slashes front and back, so I left it unchanged.
So I changed the dnsmasq.conf again in this way and now the logging gives me the
following:
isengard dnsmasq[8120]: reading /etc/resolv.conf
isengard dnsmasq[8120]: using nameserver 194.74.65.69#53
isengard dnsmasq[8120]: ignoring nameserver 127.0.0.1 - local interface
isengard dnsmasq[8120]: using local addresses only for domain localdomain.net
isengard dnsmasq[8120]: query[AAAA] pop.1und1.com from 192.168.0.234
isengard dnsmasq[8120]: forwarded pop.1und1.com to 194.74.65.69
isengard dnsmasq[8120]: reply pop.1und1.com is <NODATA>-IPv6
isengard dnsmasq[8120]: query[AAAA] pop.1und1.com.localdomain.net from 192.168.0.234
isengard dnsmasq[8120]: config pop.1und1.com.localdomain.net is <NXDOMAIN>-IPv6
isengard dnsmasq[8120]: query[A] pop.1und1.com from 192.168.0.234
isengard dnsmasq[8120]: forwarded pop.1und1.com to 194.74.65.69
isengard dnsmasq[8120]: reply pop.1und1.com is 212.227.15.177
isengard dnsmasq[8120]: reply pop.1und1.com is 212.227.15.161
On the eighth line: query[AAAA] pop.1und1.com.localdomain.net ....
Is this normal - or another misconfiguration? Why would dnsmasq think it might
have the localdomain.net suffix? I can imagine it may be dnsmasq trying out the
name with the local domain appended - just in case it may have been an actual
simple local hostname without the localdomain.net suffix.
Thank you very much for the help by the way - everyone included.
Regards
Adam
More information about the Dnsmasq-discuss
mailing list