[Dnsmasq-discuss] short names not being returned?

richardvoigt at gmail.com richardvoigt at gmail.com
Sun Dec 16 14:51:20 GMT 2007


On Dec 16, 2007 12:01 PM, digitek <digitek at charter.net> wrote:
> Hello.
> I'm running dnsmasq v2.38.  Short names for machines on my

Any reason you're using an old version?

> lan are not being returned unless I put them in /etc/hosts.  Isn't
> there a way to have dnsmasq return the short names from the "dhcp-host"
> lines in my config file below?

Is it not answering queries for "bst.localnet"?

You probably need a "domain=" option.

>
> Thanks
> --resolov.conf--------------------
> nameserver 127.0.0.1
> nameserver 74.136.24.63
> nameserver 88.175.21.33

That isn't right.  To use dnsmasq from the local machine, it needs to
be listed in resolv.conf, but then you must use a separate
resolv.upstream file for dnsmasq itself, to prevent dnsmasq from
querying itself infinitely.  Then use

resolv-file=/etc/resolv.upstream

Of course, you can have your upstream servers at the end of the main
/etc/resolv/conf in case dnsmasq isn't running, but that's less
important.

Also, your local= line looks bad.  According to the man page there
needs to be a trailing / after each domain name to differentiate from
a nameserver address.  I'm not really sure that you need local= at
all.

>
> --dnsmasq.conf----------------------------------------------------
> domain-needed
> bogus-priv
> strict-order
> local=/localnet/localdomain
> user=daemon
> group=daemon
> interface=eth0
> dhcp-range=192.168.1.240,192.168.1.250,255.255.255.0,360h
> dhcp-host=00:0c:39:c9:1a:a2,192.168.1.231,bst
> dhcp-host=00:10:b4:17:f6:c3,192.168.1.230,insp
> dhcp-host=00:0c:c9:54:1f:35,192.168.1.130,c32
> dhcp-host=00:0c:2e:5f:1f:c9,192.168.1.129,ldc
> dhcp-option=3,192.168.1.2
> dhcp-option=42,66.187.224.4
> log-queries
> conf-dir=/etc/dnsmasq.d
>
> --
>
> digitek at charter.net
> key id: 0xF6FA6D1E
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list