[NCLUG] setting up wireless to use dns

Stephen Warren swarren at wwwdotorg.org
Sat Jul 21 21:31:23 MDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bob Proulx wrote:
> Now that is interesting.  I would expect that busybox would read
> /etc/resolv.conf the same as any other program.  (However the libc
> resolver library code only reads it once when the program starts up.
> If the file is changed after the program gets going this is not
> detected.)  Could it be that busybox is not getting the nameserver
> from /etc/resolv.conf as we are expecting?  Not sure but the above
> info does not fit.

One thing to note about Busybox; depending on the exact version of
Busybox in question, and probably depending on which of the 2-4 shells
available in Busybox you actually are using, the shell may simply end up
calling a function to implement a particular shell command, rather than
the usual fork/exec. This would then mean uClibc would not get
re-initialized, which could in turn mean that any updates to
/etc/resolve.conf would not be processed.

Now, IIRC there is a way to force an applet to be run via fork/exec (I
*think* it's to e.g. run /bin/ping instead of just ping)...

Something work looking into anyway.

There may also be a Busybox config option to disable this behaviour.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGos+Lhk3bo0lNTrURAhvsAJ9ddbLPkvhMdFNzM3Hu0mAtNf8MuACgtZoy
b34h8IJM5pyubIbP+E4Bjy0=
=Vp8j
-----END PGP SIGNATURE-----



More information about the NCLUG mailing list