Re: Pump, dhchp, dns and dnsmasq
On Tue, 2011-02-08 at 04:44 +0000, T o n g wrote:
> On Mon, 07 Feb 2011 04:27:06 +0000, T o n g wrote:
>
> > $ dig maroon @maroon
> >
> > ; <<>> DiG 9.7.1-P2 <<>> maroon @maroon ;; global options: +cmd
> > ;; Got answer:
> > ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53975 ;; flags: qr
> > aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
> >
> > ;; QUESTION SECTION:
> > ;maroon. IN A
> >
> > ;; ANSWER SECTION:
> > maroon. 0 IN A 127.0.0.1
> >
> > ;; Query time: 0 msec
> > ;; SERVER: 192.168.0.100#53(192.168.0.100) ;; WHEN: Sun Feb 6 23:20:41
> > 2011
> > ;; MSG SIZE rcvd: 40
>
> This is the problem that I haven't been able to solve -- I was hoping
> that it will return 192.168.0.100 instead of 127.0.0.1.
>
> How can I fix it?
My /etc/hosts file on the server has an entry for the server. E.g.
192.168.2.2 servername.home servername
so that's probably the answer. (Let me know if it is so I can update my
own installation notes :-)
I also have a dhcp-host line in my dnsmasq.conf for the server itself,
though I can't see that coming into it. (Probably a remnant of those
chicken-and-egg problems.)
--
Tixy () The ASCII Ribbon Campaign (www.asciiribbon.org)
/\ Against HTML e-mail and proprietary attachments
Reply to: