Test System DNS
At some point, you may need to have different email system talk to each other. So they have to know where each other are. At the simplest level, you can add an entry to each server's hosts file so they know each other exist.
Host File
You can edit the hosts files to add the new server:
- Windows: %SystemRoot%\system32\drivers\etc\hosts
- Linux: /etc/hosts
And add the IP address followed by the hostname: E.g. 192.168.1.100 exchange.example.com
DNS Forward Lookup Zone
As your system grows, and it will, wouldn't it be easier if there was only one place you had to change instead of all of them. That is where DNS comes in handy. Since Exchange requires a DNS to be available we might as well use that one. Then as each machine is set up you can set the DNS to go to this one and they are all updated.
On Windows Server 2012 R2, create a Forward Lookup Zone for the new server:
- Open DNS manager from Server Manager/Tools or from Start
- Open the server
- Right-click on Forward Lookup Zones to create a new zone, this will bring up the New Zone Wizard.
- Zone Type is Primary zone
- Active Directory Zone Replication Scope is To all DNS servers rung on domain controllers in this domain
- Zone Name: give it the name of the domain of the receiving email system. E.g. ex13-2.sf.support.gwava.net
- Dynamic Update: the default of All only secure dynamic updates is sufficient.
- And finish.
Create an A Record:
- Right-Click in the zone and select New Host (A or AAAA)...
- Name: hostname of the destination server e.g ex13-2srv.sf.support.gwava.net
- IP address: IP address of the destination server e.g 10.1.200.215
- Press Add Host, Ok that success dialog, and Done
Create an MX Record:
- Right-Click in the zone and select New Mail Exchanger (MX)...
- Leave Host or child domain blank
- Set Fully qualified domain name of mail server: to server hostname and domain e.g. ex13-2srv.sf.support.gwava.net
- Click OK
Flush DNS Cache
Flush the DNS cache on each machine after making changes on the DNS:
- Linux: On the command line, type:
/etc/init.d/nscd restart
,service nscd restart
, orservice nscd reload
- Window: On the command line, type:
ipconfig /flushdns
Return to Retain Training