LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-02-2004, 06:52 AM   #1
batmanu
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Rep: Reputation: 0
Unhappy DNS setup problem for webhosting behind a rooter


Please help me!

I'm a newbie in Linux, and I HAVE TO resolve this problem:

I have an Apache server on my network, behind a Linux rooter. My ISP is providing me w/ 1 static IP address let's say it is 199.111.222.333. The private IP's in my network are 192.168.0.1 for the rooter, and 192.168.0.22 for the Apache server.
I have installed and configured BIND 9.2.2 on the rooter, and after 3 days of work, the only thing that I've done was that when clients try to access my domain (mydomain.com) obtains, at most , a system configuration page of THEIR rooter (jhow the heck did I managed that I couldn't tell).

Now, no matter what tutorials or books I have tried, none of them has made me solve this problem.
I'm stuck, and I have no more ideas.
 
Old 06-02-2004, 07:41 AM   #2
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
OK. From what you are saying, I guess that you are running a masquerading firewall on the machine that is acting as the router.

Why are you running Bind on the router? You may be better off setting up your DNS record on an external service such as www.zoneedit.com or www.granitecanyon.com It is much easier to do this than run your own DNS...

If you have a domain www.foo.com, you set the DNS up to point to the IP address that your ISP has given you - this is the address of your router.

Since your Web server is on your private network on the other side of the router, what you need to do is to set up PORT FORWARDING on your router.

Let's assume that everything is set up normally and requests for web pages are coming in on port 80. What the port forward on the router does is to take all requests to port 80 and then forward them to the internal address of the machine you have running Apache.

If you had a POP3 server on your internal network that you wanted to access from the outside, you could do the same thing; you would set up a port forward of port 110 on the router to go to the internal address of the POP3 server on your network.

I don't know what books or tutorials you have tried, but I would recommend that you read the Linux IP Masquerade HOWTO:
<http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/> - this should help you on your way.

Hope this helps.

Cheers
 
Old 06-02-2004, 08:18 AM   #3
batmanu
LQ Newbie
 
Registered: Jun 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your quick answer.

The IP masquerading is allready configured. If the client request my public IP in a web browser, reaches the wepage that i am hosting. The problem is the DNS, i think.
 
Old 06-02-2004, 08:45 PM   #4
kbcnetau
Member
 
Registered: Dec 2003
Location: South Australia (ex-Devon, UK)
Distribution: SuSE, Slackware, Fedora, Debian, Knoppix
Posts: 141

Rep: Reputation: 15
OK - try external DNS and see how that works for 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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
how to setup DNS stanleytiew Linux - Newbie 2 05-09-2005 03:43 PM
Dns Setup doggy Linux - Newbie 1 04-30-2004 07:12 AM
I need help with DNS setup! Please! fhiggins Linux - Networking 1 10-13-2003 09:07 PM
DNS Setup bufordt Linux - Networking 1 03-01-2002 05:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration