Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-13-2007, 06:32 AM   #1
Registered: Jul 2004
Location: Here, there and everywhere.
Distribution: Arch+KDE, Linux Mint Fluxbox CE
Posts: 163

Rep: Reputation: 31
Ubuntu server cannot access internet but LAN machines can.

Hi all!

I am facing a pretty weird problem. I am setting up a router/gateway for a LAN. I have decided to run Ubuntu server edition. However, I have encountered this problem both with Dapper and Feisty.

Here is the problem: the actual server cannot access the internet. Machines on the LAN have access to the internet using the server as a router but the server itself cannot resolve domain names. It can ping IP addresses on the internet but not domain names eg The DNS server specifies in the /etc/network/interface file is the same one specified on the machines that can access the internet on the LAN. During installation I selected to install a DNS and LAMP server.

This is pretty confusing for me... and I need this functionality pretty badly. Strange that Feisty doesn't come with ssh by default.

Thanks for your help in advance.

Old 05-13-2007, 11:28 AM   #2
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
check dns

even if the ip address if correct that will not nessecarly mean that the server can resolve host names. please check /etc/resolv.conf . in this file, you specify the dns server you want to use. on my machine it looks like this:
as you see, my nameserver is setup to
to determine if this is a dns issue, try to ping a public ip address like ... if you ping was successful then your issue is dns related.

as you know, Ubuntu is Debian based linux. see link below for more infromation.
Old 05-13-2007, 01:17 PM   #3
Registered: Jul 2004
Location: Here, there and everywhere.
Distribution: Arch+KDE, Linux Mint Fluxbox CE
Posts: 163

Original Poster
Rep: Reputation: 31
you are absolutely right, that is where the problem was. just fixed the resolv.conf file and i'm good to go. thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
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
Apache2: LAN machines cannot access website Akhran Linux - Newbie 1 10-13-2005 05:39 AM
Two machines and internet access cyclic Linux - Networking 5 02-25-2004 03:38 AM
LAN machines unable to connect to Internet through (firewall on )gateway nishi_k_79 Linux - Security 1 11-13-2003 01:30 PM
ssh to multiple lan machines from the internet - How? v00d00101 Linux - Newbie 4 06-20-2003 01:39 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:03 PM.

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