LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-21-2004, 10:37 AM   #1
Huntdawg
LQ Newbie
 
Registered: Aug 2003
Distribution: Redhat 8.0
Posts: 5

Rep: Reputation: 0
DNS Question


Hi, I have a DNS question, I think. I've come into an environment that uses a split dns setup and I'm trying to add a couple of domains to the setup. The problem is that the boss doesn't want to add them to the existing server. So I've set up a Linux server that I can add the extra domains to.

Ok here's the problem. We have three servers set up now. One that serves the external DNS. One that is a Windows 2000 server that serves mail and www for domain1.com and the internal DNS. One that I've added that runs subdomain.domain1.com and domain2.com. Now I've been adding the internal DNS records and zone files to the third server and everything works internally. Internally, when you type in domain1.com, you get the correct website. Externally, when you type in domain1.com, you get the subdomain.domain1.com website that's hosted on the third server and not the second server.

The question, am I missing something here? Everything works beautifully when you're on the internal network, but when you look at it outside the network, port 80 pulls up the wrong website. Do I have to add anything to my apache configuration? I just want it to forward to the correct server.

Ok here are the specifics:

----------------------------------
servers
----------------------------------

1. Server 1 - Linux RH 8, serving as the external DNS.
2. Server 2 - Windows 2000 Server serving mail and www for domain1.com
3. Server 3 - Linux RH 8, serving mail and www for domain2.com and subdomain.domain1.com

Thanks for the help!
HD
 
Old 03-22-2004, 07:15 AM   #2
Huntdawg
LQ Newbie
 
Registered: Aug 2003
Distribution: Redhat 8.0
Posts: 5

Original Poster
Rep: Reputation: 0
Ok maybe I should rephrase my question. Is there any way to route based on ip address, port, and domain name? I guess this is basically what I need!

Thanks!
HD
 
Old 03-23-2004, 09:55 PM   #3
Huntdawg
LQ Newbie
 
Registered: Aug 2003
Distribution: Redhat 8.0
Posts: 5

Original Poster
Rep: Reputation: 0
Anyone?
 
Old 09-16-2004, 05:27 PM   #4
miguel
LQ Newbie
 
Registered: Sep 2001
Location: Portugal
Distribution: rh7.2
Posts: 12

Rep: Reputation: 0
DNS, Apache configuration

yes there is a way that you can route based on ip address, port, or domain name.
you need to use <VirtualHost> and do the configuration there on the apache server.
I believe the file is on /etc/httpd/confg (check the confg I'm not sure that's the correct spelling) open this file and look for the <VirtualHost> part. you can get more info on this topic going to the apache web site. apache.org and look at the VirtualHost Derective you'll find the info you want

hope this can help you!!

if anything you can write me. matos30@yahoo.com
see ya
 
Old 09-16-2004, 08:28 PM   #5
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Re: DNS Question

Quote:
Internally, when you type in domain1.com, you get the correct website. Externally, when you type in domain1.com, you get the subdomain.domain1.com website that's hosted on the third server and not the second server.
Based on the above, this sounds like either your external DNS server is returning the wrong "external" IP address for the new server or your firewall is not redirecting (DNAT) external requests for the new servers external IP address to the proper internal IP address of the new server internally. Long pause... Hope that made sense.

Example:

www.domain1.com = 1.2.3.4 External, 10.10.10.4 Internally
www.domain2.com = 1.2.3.5 External, 10.10.10.5 Internally
and so on

Your firewall would then need to:
DNAT external 1.2.3.4:80 requests to 10.10.10.4:80 internally
DNAT external 1.2.3.5:80 requests to 10.10.10.5:80 internally
and so on

hopefully that makes sense.
 
  


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
dns question jelgavchik Linux - Networking 1 01-29-2005 02:51 AM
Dns Question ..... har5ha Linux - Networking 7 07-24-2004 03:34 PM
DNS question J_Szucs Linux - Software 4 10-31-2003 03:02 AM
dns question -- new to dns gadhiraju Linux - Networking 7 05-09-2001 05:59 PM
dns question -- new to dns gadhiraju Linux - General 2 05-09-2001 07:44 AM

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

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

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