Jo-Philipp Wich wrote:
> Hmm, on vanilla OpenWrt the /etc/hosts is stored on flash, that would
> mean a write on each dhcp renew.

I fully agree that would be bad and must be avoided.

> Wouldn't it be better to write the
> hostname to an extra file somewhere in /tmp and pass that to dnsmasq
> with addnhosts ?

I'm not 100% sure that the tools accessing /etc/hosts were doing so
through DNS.  Do any uclibc functions access /etc/hosts directly?

An alternative is for /etc/hosts to be generated in /tmp and symlinked
to /etc ...

-- Rod
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to