[Dnsmasq-discuss] Single-file config

Sergei Zhirikov sfzhi at yahoo.com
Sun Jul 4 10:29:43 BST 2010


On 2010-07-04 10:20, 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
> address.

Right. It wasn't clear from your original post what exactly you were trying to do.
I don't think it's possible without a hosts file (but I may be wrong about this).

For what it's worth, I prefer to have all the host-specific settings outside of dnsmasq.conf. That IMO makes maintenance easier, because then you have clear separation of concerns. System-wide settings are then in dnsmasq.conf and host-specific ones are somewhere else, because the latter actually have to do with things outside of the host where dnsmasq is running.

--
Sergei.




More information about the Dnsmasq-discuss mailing list