Subdomains

phillc

Member
Oct 19, 2004
106
0
0
My company has a domain that we use to host a website and a Windows domain. I have an Exchange Server that I am going to get a public IP address for that will be accessed from the outside world for webmail. Internally, the server is known as mail.mydomain.com. What do I need to do so that users on the other side of the Internet can resolve an IP address for mail.mydomain.com? Can I just port forward DNS to my internal DNS server? I am not running my own nameservers, 1and1.com is running them for me.

Thanks,
Phillip Christensen
 

randal

Golden Member
Jun 3, 2001
1,890
0
76
Basically, you will use your existing DNS server (1and1?) to point "webmail.yourdomain.com" to an IP address. That IP address will be either a router, a firewall, or the box itself (bad idea). From there, it is up to you to make sure that anything coming into yo.ur.ip.ad.res:Some_port gets sent to the mailserver. The IP address you enter into the DNS information has to be a -Real- IP address, NOT an internal one (NOT 10.x.x.x/192.168.x.x/172.16.x.x)

For example, say your internet IP is 69.67.108.226. You would go to your DNS server, edit "yourdomain.com" and set the host "webmail" to be "69.67.108.226". Then, whenever people go to http://webmail.yourdomain.com they get sent to the IP listed above on the default port 80 (unless they type in http://webmail.yourdomain.com:SOME_PORT). From there, it is your responsibility to get that incoming connection to your server - through your firewall, through NAT or what have you.
 

phillc

Member
Oct 19, 2004
106
0
0
Thank you.

What if I have two public IP addresses. One for my main webserver and one for my webmail server. How do I go about setting up setting up DNS to resolve webmail.mydomain.com to the second public IP address. I have no problem forwarding traffic through my router, I just need to get my subdomains to resolve.


I did a Whois on mydomain and it says the name servers for my domain are ns27.1and1.com and ns28.1and1.com. That would be from when we used 1and1 to register our domain. Do I need to have the registered name servers transfered to something like ns.mydomain.com? Or can I just forward port 53 to my DNS server and leave the name servers as is?