LinuxQuestions.org
Review your favorite Linux distribution.
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-07-2009, 10:41 PM   #1
chaiwei
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
domain name and LAN issues.


Hi,

Currently I am hosting server myself.
Let say I have a domain name www.sometestdomainname.com
The problem is I am sharing the Internet with the server.

If I am not mistaken,
I got a broadbrand that connect to a ubuntu gateway,
gateway connect to a switch, and it redirect the port 80 to the lan server let say call 192.168.2.4

So when I am outside my office, I type in the URL www.sometestdomainname.com.. it can access to the server.

But when I am in the office, I need to type 192.168.2.4 so only can I go to the server, otherwise It will show me

Code:
Failed to Connect 

Firefox can't establish a connection to the server at www.xxx.com
Though the site seems valid, the browser was unable to establish a connection.
    * Could the site be temporarily unavailable? Try again later.
    * Are you unable to browse other sites?  Check the computer's network connection.
    * Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.
What should I do If I wan to type my domain name in my office?

Thanks in advance.

Last edited by Tinkster; 10-08-2009 at 03:29 PM. Reason: got rid of triple x
 
Old 10-09-2009, 06:29 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
If you have many computers on your lan, you might want to set up
your own DNS server(s).

If you only have a few, you can create an entry in your /etc/hosts
file that looks like this:

Quote:
192.168.2.4 www.sometestdomainname.com
If you have any Windows computers, you would make the same update
in c:\windows\system32\drivers\etc\hosts.
 
Old 10-09-2009, 09:36 PM   #3
chaiwei
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thanks..

Hi thanks a lot..

It works.
 
Old 04-26-2010, 02:06 AM   #4
chaiwei
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
If you have many computers on your lan, you might want to set up
your own DNS server(s).
Hi, if I want to set up my own DNS server,
what do I need? Can I set up the dns server using my gateway?
Or I need to install a new ubuntu server?
 
  


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
domain in lan sudeep_mansh General 2 03-25-2009 11:42 PM
LAN email with no domain name franznietzsche Linux - Networking 2 09-16-2005 02:03 AM
How can I handle a domain name in a lan? eantoranz Linux - Networking 12 05-26-2005 09:01 AM
Bind - Why won't my LAN domain work? jimieee Linux - Networking 1 05-09-2005 12:07 PM
deny LAN machines a particular domain epeus Linux - Networking 3 11-22-2002 03:51 AM

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

All times are GMT -5. The time now is 09:42 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