Discussion Locked

DNS

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We have a DNS server (on a Linux box)on our network that has a zone for our internal network (UNIX and NT 4.0) as well as resolves names for the Internet.

Our Internet email server has a IP Address on our internal network. Because we use NAT, ithas a different public IP address to the public world.

The problem is that our NT clients often resolve the public, external IP address of the mail server, rather than the Internal address. This happens even though I have our Internal DNS serverset as the preffered DNS server. As a secondary DNS server, we point to our ISP,s DNS server. This creates a problem because they cannot retrieve POP3 back through our firewall. Everything works fin if I use the internal IP address of the email server instead of the name in Outlook setup.

Is there any way to force the clients to resolve the internal IP address rather than the public address?

8 replies

by aaron v

One way you can do this is to use a hosts file (just like Unix/Linux). On your NT clients, it is in \winnt\system32\drivers\etc.
I believe you can just put a hosts file in \windows on Win95, 98.

by steve cody

You should set up different host names (A Records) for your server. You should have an internal host name and external host name. This is the best way to avoid conflicts.
I have a very similar setup and mine works well because I use different names.
Your mail clients won't have a problem going to internalmail.yourdomain.com because that just resolves to an IP address.
Also, another way, if you don't want to change your DNS records, is to configure the internal pop3 clients to use an IP address instead of a hostname when connecting to the server to send/receive email.
Email if you need more help.
- Steve Cody
scody@gulbrandsen.com

by ratherbfishing

Makes sense. SOmehow my predecessor had it working with the same name. But when I had to rebuild the DNS server, I could not get it to work. Your suggestion is good sense.

by bogus genius

By modifying the HOSTS file in \\%system directory%\SYSTEM32\DRIVERS\ETC to map the MACHINE NAME to the internal (NAT) IP address of the Email Server. The %system directory%\ is probably X:\WINNT, X being the system partition.

by nrodriguez

the best way for this is to add atatic mapping on your router. NOT a static route a static mapping!

tell you router that any port 25 traffic goes to your internal server. this is usually a prereq anyway to have a pop3 behind nat. what kind of router you have is pertinent.

example. your nat router has a private and a public. your public ip is 208.101.132.20
your internal ip is 192.268.1.1. tell your router and your isp's router that any
208.101.132.20:25 traffic is to got to your mail server 192.168.1.1 its easier said then done but you didn't reveal your router type.

hope this helps

by ratherbfishing

Actually, thats not the problem. What I wanted was for the internal clients to hit the internal address of the mail server, instead of going out and coming back in on the public (NAT) address.

This discussion is closed to new replies.