[Dnsmasq-discuss] newbie: How to make dnsmasq be authoritative

Rance Hall ranceh at gmail.com
Wed Dec 10 20:59:26 GMT 2008


On Wed, Dec 10, 2008 at 1:30 PM, Bernard T. Higonnet
<bthcom at higonnet.net> wrote:
> I have just set up dnsmasq and generally everything seems to be OK (thanks
> to Simon Kelley).
>
> But,
>
> I have set dhcp-authoritative but when I dig an IP assigned by dnsmasq I get
> this:
>
>
> ; <<>> DiG 9.4.2 <<>> Zazalight
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6981
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;Zazalight.                     IN      A
>
> ;; ANSWER SECTION:
> Zazalight.              0       IN      A       192.168.3.50
>
> ;; Query time: 3 msec
> ;; SERVER: 192.168.3.108#53(192.168.3.108)
> ;; WHEN: Wed Dec 10 20:16:49 2008
> ;; MSG SIZE  rcvd: 43
>
>
> Apart from dhcp assigned IP's, I would have thought that dnsmasq would
> consider itself authoritative (especially if (as is the case) dnsmasq is
> indeed the only DNS server on the network)
>
>
> Here is my complete configuration file:
>
> log-queries
> log-facility=/var/log/dnsmasq
> dhcp-authoritative
> expand-hosts
> bogus-priv
> domain-needed
> cache-size=500
> dhcp-host=00:16:d3:3b:4f:15,Zazalight,192.168.3.50,infinite
> dhcp-range=192.168.3.51,192.168.3.99,12h
> dhcp-option=option:router,192.168.3.1
> mx-target=freebsd.paristolet.com
>
>
>
> TIA
> Bernard Higonnet
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>

Bernard:

for a new install this output is completely normal.

you only have one host associated with your domain.  so dig only
returns one host entry, and it is authoritative.

I firmly bet this is correct.


Now, your question should be how to I get my static hosts to show up.

answer /etc/hosts

you can use /etc/hosts or some other file name with the same syntax
but your static ips should go in /etc/hosts and when dnsmasq starts it
reads /etc/hosts (or the other file name if you choose) and then dig
will know about ALL your hosts, static, and dynamic ones


Rance



More information about the Dnsmasq-discuss mailing list