[Dnsmasq-discuss] multiple host names?

Bill C. Riemers briemers at redhat.com
Wed Sep 17 14:46:00 BST 2008


The easiest way is to use the address directive in the dnsmasq.conf
file.   e.g.

address=/dd-wrt.local/dd-wrt/gateway.local/gateway/192.168.1.1

The disadvantages of address directives is that the dnsmasq.conf file is
not automatically re-read when you update it.   But the address feature
is particularly useful on DD-WRT devices, because the hosts file will be
overwritten each reboot.

Note:  A reverse dns lookup will not return multiple entries.  e.g.

[docbill at hartnell ~]$ nslookup 192.168.1.1
Server:        192.168.1.1
Address:    192.168.1.1#53

1.1.168.192.in-addr.arpa    name = dd-wrt.local.
[docbill at hartnell ~]$


Bill


AJ Weber wrote:
> Is there a way to resolve more than one hostname to a single host? 
> Like an alias-feature?  Analogous to putting a line in /etc/hosts with
> multiple names after the IP address?  Then have dnsmasq resolve any of
> the names to the correct address?
>  
> Thanks,
> AJ
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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