[Dnsmasq-discuss] Single-file config
simon at thekelleys.org.uk
Mon Jul 5 21:17:38 BST 2010
Johan Vromans wrote:
> Sergei Zhirikov <sfzhi at yahoo.com> writes:
>> It's not a requirement. There is "no-hosts" configuration option.
> Sure. But how to specify the hosts names then?
>> If you have all the hosts names and IP addresses specified using
>> "dhcp-host" then you don't need the hosts file. But you should use
>> simple host names in "dhcp-host" rather than FQDN, and use "domain"
>> option to specify the domain name.
> This seems to work only for hosts that actually are leased. A lookup
> for a host not (yet) leased will return an error instead of the ip
That's correct, and necessary since the same name can be associated with
more than one address, to allow for machines which move between networks.
It would be possible to add something like
which would be semantically exactly the same as a line in /etc/hosts.
The question is, is it worth the (small) overhead?
More information about the Dnsmasq-discuss