|
From: Yan S. <ya...@se...> - 2006-08-23 16:43:18
|
GROG! (Jeff Howie) wrote: > On Wed, Aug 23, 2006 at 06:00:14AM -0700, Yan Seiner wrote: > >> GROG! (Jeff Howie) wrote: >> >> udhcpc = micro dhcp client :-) >> > > :^> > > >> you need to add your DNS server to /etc/resolv.conf. >> >> Be careful though - I haven't been through the config scripts for the >> zaurus; on many machines that are typically networked >> /etc/resolv.conf is dynamically generated at boot time or at lease >> renew time. >> >> I don't know if OZ does this. >> >> For the layout of the file, man resolv.conf or google for 'manpage >> resolv.conf' >> > > If I understand correctly then if I want to request a static ip I have > to then statically specify my dns servers too? Makes sense in a > unix-ish kinda way :?) (makes me wonder how I ever managed to get past > this before). > > Yup... I wish there was a 'partial dhcp' implementation - something where I could say, "hey, give me the current gateway and dns servers". I have a few computers that travel, their IPs don't change but the gateway and dns info do.... It's a pita.... I deal with it via icmp redirects, but it would be nice to request fresh info at boot time. > I've checked out the /etc/resolv.conf file, and it's a symlink to > /var/run/resolv.conf. Currently it contains: > > $ cat /var/run/resolv.conf > search mydomain.org > nameserver ip_of_my_router > > So that must be from the last time I ran udhcpc. On a clean reboot > before trying to start any net connections, the symlink in /etc > exists, but the /var/run file it points to doesn't. This is probably > set up by /etc/default/volatiles/01_resolv.conf, right? (hey, he's not > so dumb after all, ...). > > So after checking the resolv.conf man page, I first moved the > volatiles file out of the way, removed the /etc symlink & added > 'nameserver ip_of_my_router' into a real file under /etc. After I > rebooted, sure enough my resolv.conf was still in place. kewl. > > I'll have to wait 'til I get home to test, but you'll be sure to hear > back if there's any problems :?). I also understand that resolv.conf > will get overwritten if I connect to another network using dhcp. I'll > deal with it. If it becomes too much of a problem maybe I'll just > switch over to using dhcp @ home as well. That way it all of this > won't be an issue at all! A good learing experience if notbing else. > > Thanks muchly for the help. > > I think you about got it... --Yan |