PDA

View Full Version : Subdomain DNS question


wpwood3
3rd November 2007, 04:24
I have 2 dedicated servers at my webhost.

Server-A is the primary domain server that NS1 and NS2 point to.
It hosts mysite.com and www.mysite.com (http://www.mysite.com) on ISPConfig.

Server-B hosts store.mysite.com

My question is what do I need to do in ISPConfig on Server-A to allow Server-B to function? I think all I need to do is add an A record on Server-A that has hostname: store and the IP for Server-B.

Is that correct?

Oh and a bonus question... :D

What do I need to do in postfix on Server-A to allow Server-B to relay mail through Server-A? I assume I need to add Server-B's IP somewhere in the config.

till
3rd November 2007, 18:53
Just create a A-Record for store.mysite.com on the primary dns server for mysite.com pointing to the IP address of server B.

Postfix:

add the IP of server B to the mynetworks variable in postfix main.cf on server A

wpwood3
3rd November 2007, 19:22
Thanks Till

Do I just edit main.cf directly and then restart postfix?

I don't have to use "postconf -e" do I?

falko
4th November 2007, 12:22
You can either edit main.cf directly, or use the postconf -e command. Both are ways to achieve the same thing. :)