Re: getting static dns

Yan Seiner <[email protected]>
Newsgroups gmane.comp.handhelds.openzaurus.devel
Message-ID <[email protected]>
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


-------------------------------------------------------------------------
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.