Re: getting static dns (was: Problem obtaining network lease automatically)

"Justin Patrin" <[email protected]>
Newsgroups gmane.comp.handhelds.openzaurus.devel
Message-ID <[email protected]>
On 8/23/06, GROG! (Jeff Howie) <[email protected]> wrote:
> On Tue, Aug 22, 2006 at 07:09:56PM -0700, Justin Patrin wrote:
> >On 8/22/06, Michael Rozdoba <[email protected]>wrote:
> >
> >Jeff: If what you want it for your DHCP server to always give you the
> >same IP then you need to tell your DHCP server to always give the MAC
> >of your Z's wifi card the same IP. You can't choose to use static and
> >force the DHCP server to give you a certain IP. It doesn't and
> >shouldn't work like that.
>
> Ah. Now a little light-bubl goes off in my little newbie brain :?). I
> didn't realize that udhcpc is the dhcp requester, correct? I was
> having a problem but trying to fix it the wrong way.
>
> Let's start over. Going back to my original post with my original
> interfaces entry:
>
>     iface eth0 inet static
>         wireless_mode xxxxxxx
>         wireless_essid xxxxxxx
>         wireless_key xxxxxxxxxxx
>         wireless_channel x
>         gateway 10.0.0.1
>         netmask 255.255.255.0
>         address 10.0.0.199
>
> I connect to my router just fine, obtaining the ip that I request. My
> actual _problem_ (which I tried solving using udhcpc %^o) is that I'm
> not getting proper dns. I can ping other boxes, both local & remote,
> by ip but not by name. Now when using dhcp (as I now know I was
> forcing it do do) I get assigned the dns servers properly from the
> router, so what do I have to do to get them recognized statically?
>
> Sorry for the newbie inspired confusion.
>

Edit /etc/resolv.conf.

-- 
Justin Patrin

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