-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.
> I'm not 100% sure that the tools accessing /etc/hosts were doing so
> through DNS. Do any uclibc functions access /etc/hosts directly?
Hmm ... I'm no expert with this but shouldn't /etc/nsswitch.conf take
care of the order of used resolvers? Could you try if this works for the
affected tools:
echo "$(uci get network.wan.ipaddr) $(cat /proc/sys/kernel/hostname)" \
>> /tmp/hosts.local
uci set dhcp.dnsmasq.addnhosts=/tmp/hosts.local
uci commit dhcp
/etc/init.d/dnsmasq restart
> An alternative is for /etc/hosts to be generated in /tmp and symlinked
> to /etc ...
We done that for LuCI but it seems to confuse/annoy users...
~ JoW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkn3QDoACgkQdputYINPTPNoOACeLunrEStgg/ay7bxb954eM41u
9SsAmwVEmEnNlPpzasbQH1T7fhGsDSzz
=6cH7
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel