[Dnsmasq-discuss] read /etc/hosts if DNS disabled

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu May 21 14:35:24 BST 2020


>On Fri, May 15, 2020 at 07:53:50PM +0200, Matus UHLAR - fantomas wrote:
>> I have problems configuring static DHCP using /etc/hosts and /etc/ethers.
>> It seems that dnsmasq is ignoring /etc/hosts when dns server is disabled
>> via "-p 0" option.
>>
>> Can anyone confirm?
>> If I'm right, is this bug or a feature?

On 21.05.20 15:03, Geert Stappers wrote:
>Advice: Describe "the problem" better.

OK.

the problem is that DHCP clients listed in /etc/ethers will not be given IP
addreses specified in /etc/hosts when dnsmasq does not run DNS service
(-p 0), because /etc/hosts is not read in that case.

the workaround is to run DNS at different port (e.g.  -p 54), so dnsmasq
reads /etc/hosts and provides IPS configured there do clients from
/etc/ethers, but I believe /etc/hosts should be read even without DNS,
unless explicitly disabled.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Your mouse has moved. Windows NT will now restart for changes to take
to take effect. [OK]



More information about the Dnsmasq-discuss mailing list