Re: getting static dns

"GROG! (Jeff Howie)" <[email protected]>
Newsgroups gmane.comp.handhelds.openzaurus.devel
Message-ID <[email protected]>
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).

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.

-- 
GROG! MMM          Wethern's Law:  Assumption is the mother of all
thks (o o)         screw-ups.
--ooO-(_)-Ooo--    

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.