Help! server not found. only access to internet is IP address not web addres
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Help! server not found. only access to internet is IP address not web addres
Please help. I have been reading threads and troubleshooting for hours with no progress. Downloaded Ubuntu 12.04. this is the only OS on the laptop. when I select Firefox I receive error message "firefox cant find server at start.ubuntu.com." I can access any page with its IP address but not by using its web address (for example www.google.com would not work, but the IP address would bring me to google).I can get into the terminal, but so far have been unsuccessful.
It sounds like name resolution is not working. /etc/resolv.conf is the file which specifies the IP addresses for the servers which are going to provide name resolution for you. How this file gets populated with addresses that will work properly for you is system and "application" dependent, and you haven't given enough details in your post for me to know where to begin to troubleshoot this. For me, dhcp (or dhclient, or some app like that) is what sets this up, in the process of obtaining an ip address from my router. This is the avenue you should start looking at. I tend to use more manual methods, so if you're using networkmanager, or something like that, i don't know the specifics.
sorry. I wasn't sure what info to post. I am using DHCP.
when i go to terminal and type ping yahoo.com i get a ping response: ping:unknown host yahoo.com
Do you have any idea why my permission is denied? I am the only person on this computer and I used my password to open the computer without any problem.
Use sudo to get access. Also, have a look in this page. You'll find helpful resources, and you can change your DNs to Google OpenDNS if you want: http://j.mp/VcSKQr
Below are the necessary parts from the link above for convenience.
Quote:
Example: Configuring DHCP client sofware on a Debian server
Back up /etc/resolv.conf:
sudo cp /etc/resolv.conf /etc/resolv.conf.auto
Edit /etc/dhcp3/dhclient.conf:
sudo vi /etc/dhcp3/dhclient.conf
If there is a line containing domain-name-servers, write down the IP addresses for future reference.
Replace that line with, or add, the following line:
For IPv4:
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
For IPv6:
prepend domain-name-servers 2001:4860:4860::8888, 2001:4860:4860::8844;
Save and exit.
Restart any Internet clients you are using.
I entered cat /etc/resolv.conf and it says
#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
nameserver 127.0.0.1
search Belkin
Sorry, you are stuck with it forever. (No, not really.)
Try editing that /etc/resolv.conf file and add a line that reads
nameserver 8.8.8.8
and see what happens.
For some reason your DHCP client is not serving up that information properly. You can address that on your router or firewall that acts as your DHCP server, or force a value on yoru client. My line above is just temperary to verify that somethign like this would fix the problem. Give it a try and let us know how it works.
I tyoed /etc/resolv.conf and I got a message that permission denied
When you type the name of a file like that, the shell tries to execute it like a program. That file is not a program though, it doesn't have execute permissions, which is why it said "permission denied". You need to either dump the contents of the file to the terminal with "cat", or open the file with a text editor.
---------- Post added 10-02-12 at 05:16 PM ----------
Quote:
Originally Posted by Urskie
I entered cat /etc/resolv.conf and it says
#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
nameserver 127.0.0.1
search Belkin
The computer doesn't have a DNS server listed, likely because the router didn't tell it one. As wpeckham said, add a line to that file that says "nameserver 8.8.8.8" and it should fix the problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.