Active Topics

 


Reply
Thread Tools
Posts: 16 | Thanked: 1 time | Joined on Oct 2007
#1
I have a new N800. It works fine in public places that have dhcp, but when I try it on my home network it doesn't resolve domain names. For example, http://64.225.102.66/ connects to the proper site. My home network is encrypted and uses static IP addresses. I even have a "pocket router" from D-Link that works as an access point. This has the same problems -- and in fact has the same problems when I take it work, which is also not DHCP. I have sent the DNS address correctly in the device -- under tools > connections. What gives? I note that others have seen this behavior: See http://www.internettablettalk.com/fo...hp/t-5967.html
 
Posts: 83 | Thanked: 3 times | Joined on Feb 2007
#2
Do you have Xterm installed? Can you try an 'nslookup' from an Xterm window? That should tell you if you can resolve DNS names or not.
 
Posts: 16 | Thanked: 1 time | Joined on Oct 2007
#3
Indeed I have an xterm installed: When I do

nslookup google.com

it returns:

Server: Nokia-N800-10
Address: 127.0.0.1

nslookup: google.com Host name lookup failure

-------------

This is clearly an error: When I do this on my linux box (for comparison) it says the address is the DNS server and does the nslookup just fine; the N800 is listing the loop back address (127.0.0.1) as the DNS - how odd. How do I solve this?

Last edited by bill-linux; 2007-10-02 at 03:45.
 
luca's Avatar
Posts: 1,137 | Thanked: 402 times | Joined on Sep 2007 @ Catalunya
#4
the n800 uses dnsmasq for name resolution, so /etc/resolv.conf points at 127.0.0.1, then it puts the configuration for dnsmasq in some file in /tmp (sorry, I don't remember the name of the files, I'm not on the tablet now, take a look at /etc/dnsmasq.conf or something similar).
If you use static ip, you should either manually modify /etc/resolv.conf to point at your nameserver or put a line "nameserver x.x.x.x" (where x.x.x.x is the address of your nameserver) in one of those files (the one that terminates in wlan0).
If you use the former you'll have to edit back /etc/resolv.conf to 127.0.0.1 when you switch to a dhcp access point, with the latter the file will be overwritten automatically.
I hadn't time yet to investigate if is there a better way to automate things.
 

The Following User Says Thank You to luca For This Useful Post:
Posts: 16 | Thanked: 1 time | Joined on Oct 2007
#5
Wonderful! This would not be too hard to fix. Do I need to be root to modfiy those files? If so, how do I become root on the N800 -- I noticed the "becomeroot" program at maemo, but it seems to be for the 770, the earlier verison. Perhaps I am wrong in thinking this.
 
luca's Avatar
Posts: 1,137 | Thanked: 402 times | Joined on Sep 2007 @ Catalunya
#6
it also works with the n800
 
Posts: 16 | Thanked: 1 time | Joined on Oct 2007
#7
At maemo.org: becomeroot doesn't not have an active install. Any advice on how to become root other than this program -- or other sources or methods to install it.
 
Posts: 16 | Thanked: 1 time | Joined on Oct 2007
#8
Has any one tried "godmode.deb" from http://blog.2blocksaway.com/2007/02/...your-purposes/
 
Posts: 16 | Thanked: 1 time | Joined on Oct 2007
#9
PROBLEM SOLVED: In short, I modified /etc/resolv.conf to include the nameservers I needed.

Long answer:

1) As noted above the N800 uses masquarade to do DNS on a DHCP connection, so /etc/resolv.conf must contain "nameserver 127.0.0.1", but the file can contain other nameservers in addition and thus work with both a dhcp connection and a static IP.

2) To modify /etc/resolv.conf the user must become root. You'll need an xterm installed and an editor. I used nano which is a version of emacs for the N800; you may prefer vi. Next install either dropbear or openssh. (Both are ssh clients and servers - you'll need both -- dropbear is a stripped down version for tablets, but works fine here.) Log in as root by typing "ssh root@localhost, with a password of "rootme." [Please read http://maemo.org/community/wiki/HowDoiBecomeRoot to understand fully the dangers of having ssh installed on your N800 with such a weak password.]

3) Edit /etc/resolv.conf to read

nameserver 127.0.0.1
nameserver xxx.xxx.xxx.xxx <--- insert the nameserver you need.

4) exit

5) If you don't plan to change your root password then remove the ssh server at least.

That's it. I find the N800 works fine on my home network and also works just like it did when I encounter an unlocked dhcp wireless network.

Makes me appreciate open source: I have no idea why Nokia configured the N800 like they did ... but bless them for making this open source.
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#10
http://eko.one.pl/maemo/dists/mistra....1-2_armel.deb

It's too late, I suppose, but the above should set up becomeroot.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:13.