[ALUG] I can't get dnsmasq to work at all, ideas please

Chris G cl at isbd.net
Fri Dec 12 18:01:57 GMT 2008


On Fri, Dec 12, 2008 at 05:50:15PM +0000, Brett Parker wrote:
> On 12 Dec 17:33, Chris G wrote:
> > I have installed dnsmasq on my xubuntu 8.10 system using the standard
> > ubuntu apt-get which gives me version 2.45 of dnsmasq.  It seems to
> > have installed a reasonable default configuration and dnsmasq has been
> > started up.
> > 
> > However I can't get it to provide answers to any DNS requests.
> > 
> > As I understand it dnsmasq should read the contents of /etc/hosts and
> > give out local network IP addresses in response to DNS requests, only
> > passing requests on the the external server(s) in /etc/resolv.conf if
> > the address requested isn't a local one.
> > 
> > I have dnsmasq running on 192.168.1.4 whose /etc/hosts has the
> > following in it (after the standard default stuff):-
> > 
> >     #
> >     #
> >     # Local additions
> >     #
> >     192.168.1.1 vigor 2820n
> >     192.168.1.4 home.isbd.net isbd 84-45-228-40.no-dns-yet.enta.net chris.isbd.net
> >     192.168.1.5 home
> >     192.168.1.6 maxine
> >     192.168.1.7 nas garage
> >     192.168.1.44 hp7310 HPEDDBB7 HP000D9D068F7D
> >     192.168.13.254 2wire BT2700HGV gateway.2wire.net
> > 
> > 
> > I am attempting to use it from 192.168.1.7 which has no non-default
> > additions to /etc/hosts and has the following in /etc/resolv.conf:-
> > 
> >     # Generated by NetworkManager
> >     192.168.1.4
> 
> That looks wrong, it should be:
>     nameserver 192.168.1.4
> 
So it should!  How stupid, that's fixed it, thank you.  :-)

-- 
Chris Green




More information about the main mailing list