Re: resolve different domain host
- From: "Ace Fekay [Microsoft Certified Trainer]" <firstnamelastname@xxxxxxxxxxx>
- Date: Thu, 4 Dec 2008 23:43:00 -0500
In news:DD05EF1D-9849-423E-8A8D-ED09FBD65D1E@xxxxxxxxxxxxx,
Bobby Gontarski <BobbyGontarski@xxxxxxxxxxxxxxxxxxxxxxxxx> requesting assistance, typed the following:
ok, the simple way :-)
E.g. I want to resolve mail.domain.com to 192.168.1.10 when in my
local network.
The problem. Domain.com is handled by a public nameserver incl. the
address mail.domain.com which for everyone outside my net resolves to
e.g.
70.70.70.70 - the public IP of my gateway (actually in the current
configuration it resolves to 70.70.... even from the local net).
It makes no difference what mailserver I am using (in my case kerio
mailserver), as I might want to do it with a webserver, ftp server or
anything else.
One way I can think of is to edit hosts file on every workstation -
no way, too complicated.
The other way - play with DNS server.
The catch, I cannot add a primary zone domain.com to the DNS and add A
record to mail.domain.com as the server would start resolving
*.domain.com which is undesirable. I just want to resolve
mail.domain.com to 192.168.1.10 every else *.domain.com - ask the
public nameserver for the address.
Thanks.
You have a scenario with an AD domain name that is the same as your external name.
You are hosting your mail services internally, with the MX record is pointing to your outside WAN gateway address which is port remapped to the internal mail server.
Your internal machines cannot get to www.domain.com, or mail.domain.com.
The way around this:
Assuming that your internal AD domain name is domain.com, and the zone is already created, create the name "mail" and give it the internal IP address of the mail server.
Actaully it does make a difference what mail server is being used. This is because if it is Exchange, and you are using the Outlook mail client, then it is using a MAPI connection to the mail server, therefore they are not configured as POP or IMAP accounts. Now if you are using a server other than Exchange, such as Kerio, then I understand why your internal clients are setup as a POP or IMAP client, and will required an FQDN to access it.
I don't see why you cannot create the domain.com zone, if it is not already created. In your scenario, why wouldn't you want it to resolve domain.com for your internal clients? Your internal clients cannot use an external DNS server, otherwise it will resolver your WAN address, and no firewalls out there will do what we call a "U-Turn" to take a connection request from an internal machine to the outside WAN interface, and redirect it back in. Besides, what other services do you have internally that are running under domain.com? Is there a web server, FTP or other server? Simply create those records too. If the website is external, but mail is internal, simply create the mail record with the private IP, and the www record with the external IP.
Now if your DNS server is also hosting your public records, then you need to get a separate DNS only for internal use. Using hosts records is unconventional, legacy and not a real solution to this simple problem.
--
Ace
This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.
Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCT
Microsoft Certified Trainer
For urgent issues, you may want to contact Microsoft PSS directly.
Please check http://support.microsoft.com for regional support phone
numbers.
.
- References:
- resolve different domain host
- From: Bobby Gontarski
- Re: resolve different domain host
- From: nickm
- Re: resolve different domain host
- From: Bobby Gontarski
- resolve different domain host
- Prev by Date: Re: Frustrating
- Next by Date: Re: DNS query to NS-record fails if one of the DNS is down
- Previous by thread: Re: resolve different domain host
- Next by thread: Re: Can't resolve MX record of own domain
- Index(es):
Relevant Pages
|