LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-02-2012, 12:34 PM   #1
Urskie
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
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.
 
Old 10-02-2012, 12:46 PM   #2
criegod
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
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.
 
Old 10-02-2012, 01:12 PM   #3
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
Are you using DHCP or static IP?

Are you using wireless or a wired connection?

Bring up aterminal and type
Code:
ping yahoo.com
And what did you get?
 
Old 10-02-2012, 03:28 PM   #4
Urskie
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-02-2012, 03:29 PM   #5
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
check your dns settings

/etc/resolv.conf

Last edited by etech3; 10-02-2012 at 03:31 PM.
 
Old 10-02-2012, 03:34 PM   #6
Urskie
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I tyoed /etc/resolv.conf and I got a message that permission denied
 
Old 10-02-2012, 03:41 PM   #7
Urskie
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-02-2012, 03:43 PM   #8
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
type
Code:
cat /etc/resolv.conf
 
Old 10-02-2012, 03:45 PM   #9
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 2
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.
 
Old 10-02-2012, 03:52 PM   #10
Urskie
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 10-02-2012, 04:13 PM   #11
Urskie
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
ok. guess everyone got busy. plan B. Can anyone tell me how to uninstall Ubuntu? I give up with this OS.
 
Old 10-02-2012, 05:45 PM   #12
etech3
Senior Member
 
Registered: Jul 2009
Location: Virginia
Distribution: Debian Stable Testing Sid Slackware CentOS
Posts: 1,055
Blog Entries: 2

Rep: Reputation: 45
did you have the internet connected this computer when you installed the OS?

Was it a wired connection?
 
Old 10-02-2012, 05:46 PM   #13
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,617

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Nope

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.
 
Old 10-02-2012, 06:15 PM   #14
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Urskie View Post
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 View Post
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.
 
Old 10-07-2012, 04:02 PM   #15
leosubhadeep
Member
 
Registered: Jul 2012
Location: West Bengal,India
Distribution: Ubuntu 14.04,Fedora 20,Windows 7
Posts: 111
Blog Entries: 3

Rep: Reputation: 2
Sorry for not being there, couldn't catch up. Did the OP resolve the issue?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to trace an IP address to a MAC addres justmehere Linux - Networking 8 04-23-2011 05:23 AM
[SOLVED] PPPOE server access the internet clients fail to access the internet simbini Linux - Newbie 3 08-31-2010 12:37 AM
access lan web server thru dual homed host / webserver from internet with one pub IP. swilhelm Linux - Networking 2 08-02-2006 02:57 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration