Posts: 4 | Thanked: 0 times | Joined on Oct 2009
#1
When using my school network, i can use skype and my browser successfully.

But when connected to my home network, only skype manages to work, and my browser always comes up with a "Server not found"

I've tried restarts, killing browserd, resetting my network, but i can't seem to get it working.

Suggestions, advice?
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#2
Sounds like a DNS error.

The file you need to edit is

/etc/resolv.conf

Open it up in nano (or your text editor of course) as root
# nano /etc/resolv.conf

add your router's admin page IP address (called a gateway):
nameserver 192.1.168.1.1
obviously the 192.168.1.1 part needs to be appropriate for your router.

The easiest way is to right-click on desktop Linux's NetworkManager gnome-applet and selections Connection Information.

However, on the device you might try
$ /sbin/ifconfig
and if under wlan0, Bcast is 192.168.1.255 then try 192.168.1.1

This can be tricky for some routers.

The other thing you can try is directly adding in your ISP's DNS servers.
Or of course there is openDNS.

------------------------------
Simplest solution:

# nano /etc/resolv.conf
nameserver 4.2.2.2

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

The Following User Says Thank You to linuxeventually For This Useful Post:
Posts: 4 | Thanked: 0 times | Joined on Oct 2009
#3
Originally Posted by linuxeventually View Post
Sounds like a DNS error.

The file you need to edit is

/etc/resolv.conf

Open it up in nano (or your text editor of course) as root
# nano /etc/resolv.conf

add your router's admin page IP address (called a gateway):
nameserver 192.1.168.1.1
obviously the 192.168.1.1 part needs to be appropriate for your router.

The easiest way is to right-click on desktop Linux's NetworkManager gnome-applet and selections Connection Information.

However, on the device you might try
$ /sbin/ifconfig
and if under wlan0, Bcast is 192.168.1.255 then try 192.168.1.1

This can be tricky for some routers.

The other thing you can try is directly adding in your ISP's DNS servers.
Or of course there is openDNS.

------------------------------
Simplest solution:

# nano /etc/resolv.conf
nameserver 4.2.2.2

----------------------------------
Thanks, but when i do this "# nano /etc/resolv.conf" i get a "Error opening terminal: xterm"

and i know how to view ifconfig, but how would i change the value from 255?
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#4
I am so bad at explaining things!

Maybe someone can help...

okay so when you open xterm you'll see a "prompt" on the left side it says
~ $
right?

Okay so that is running with "user privileges" but you can't edit resolv.conf because it is owned by root (think admin).

Therefore you need to be root.

There are several packages that can give you this ability.

rootsh, easyroot and others.

type in root

the prompt should now change to
Nokia-N810-43-7:~#

Now it should be more clear what linux people mean by ~ and #. ~ means you only need user permission, while # means you need root permission.

Clear?

Okay now you'll need a text editor. Some people like vi, others emacs, I like nano. These are text-based editors. but also if you have say leafpad installed you can run it from a terminal too.

# leafpad /etc/resolv.conf
(remember you DO NOT type in the pound symbol that is just a reminder that you need to be root.)

now it should open leafpad and the file resolv.conf (located in /etc)
append a line
nameserver 4.2.2.2

File>Save. Then close leafpad. and try pinging google.com from terminal
# ping google.com
if that fails, try
# 4.2.2.2
and report back.
 
Posts: 4 | Thanked: 0 times | Joined on Oct 2009
#5
I've got root, and i know how to use an editor, but here is the result i get.

That's what i was trying to tell you.
Attached Images
 
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#6
In a word...your install is ****ed.

You should probably clone your install to an SD card and then flash the device with Diablo 2008.43-7.

Of course we may still be able to save that install (though honestly it would save you a lot of headaches to have a fresh install to troubleshoot with.)

I've never come across that error myself but it looks like a permission error.

What happens when you open /etc/resolv.conf as user? You should be able to view and edit (but not save).

What about other commands as root?
# ls
does that give the same error?
 
Posts: 4 | Thanked: 0 times | Joined on Oct 2009
#7
That just opens a new line, nothing at all happens.

Eff, a re flash it is...

Is there a good thread on that?
 
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#8
# leafpad /etc/resolv.conf
(remember you DO NOT type in the pound symbol that is just a reminder that you need to be root.)

now it should open leafpad and the file resolv.conf (located in /etc)
append a line
nameserver 4.2.2.2

File>Save. Then close leafpad. and try pinging google.com from terminal
# ping google.com
if that fails, try
# 4.2.2.2
and report back.
Won't work, resolvconf will overwrite this quickly, as you could have read by reading /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
One must use resolvconf(8)
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!
 
Posts: 540 | Thanked: 387 times | Joined on May 2009
#9
Ummmm no.

Must, don't think so.

Yes, it gets overwritten.

But I have successfully used it many times when on foreign access points.

It works, albeit in some cases only temporarily.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 16:57.