A
A
Arconis2015-06-05 12:34:22
Domain Name System
Arconis, 2015-06-05 12:34:22

OpenWRT: dnsmasq does not add hosts to /etc/hosts. How to overcome?

OpenWRT on a virtual machine. 14.07
Here is the image.
downloads.openwrt.org/barrier_breaker/14.07/x86/kv...
Domain is registered in DHCP settings: workgroup.local and static addresses with host names. In dd-wrt, this was enough for DNS to give their IP addresses. It doesn't work here in OpenWRT. Moreover, the /etc/hosts file is not automatically added to it when it is empty.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
klirichek, 2016-07-17
@klirichek

It seems that /etc/hosts is generally a file for manual editing; there no demon automatically writes anything.
And what prevents you from adding the path to the desired file in the config dnsmasq as the line list addnhosts '/path/to/file'? It will be loaded and used instead of /etc/hosts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question