arp address resolution

Harald Becker ralda at gmx.de
Mon Mar 28 20:41:21 UTC 2011


 Hallo Sergey!

> ..., but is there a way to disable address resolution globally? ..., but is it possible to allow resolver look only into /etc/hosts and make it return error if there is not an appropriate entry?

This depends on the C library you are using. Normal resolution should be
guided by entries from /etc/host.conf, but some libraries do not honor
this file. Have you tried to set the contents of this file to "order
hosts" and nothing else (especially no ", bind")? This should tell the
resolver to just look in /etc/hosts and do not contact the DNS system
(hence it's historical name "bind").

BTW: Setting /etc/host.conf to only "order hosts" is an old trick to
speed up address lookup in small and statical networks by a significant
amount of time (by eliminating unnecessary resolver lookup times).

--
Harald



More information about the busybox mailing list