LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-13-2007, 06:32 AM   #1
librano
Member
 
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 www.google.com. 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.

lib.
 
Old 05-13-2007, 11:28 AM   #2
waelaltaqi
Member
 
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:
Code:
search mydomain.com
nameserver 192.168.0.250
as you see, my nameserver is setup to 192.168.0.250.
to determine if this is a dns issue, try to ping a public ip address like 4.2.2.2 ... 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.
http://www.debian-administration.org/articles/254
 
Old 05-13-2007, 01:17 PM   #3
librano
Member
 
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.
 
  


Reply


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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration