[Dnsmasq-discuss] newbie: How to make dnsmasq be authoritative
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).
> I have set dhcp-authoritative but when I dig an IP assigned by dnsmasq I get
> ; <<>> 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:
> Bernard Higonnet
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
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.
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
More information about the Dnsmasq-discuss