Information Technology Reference
In-Depth Information
Enter the Mail Server Priority, as shown in Figure 3-18.
6.
FIGURE 3-18 The New Resource Record dialog box for an MX Record
7. Click OK to create the record.
To create the MX record with Windows PowerShell, use the Add-DnsServerResourceRecordMX
cmdlet. For example:
Add-DnsServerResourceRecordMX -ZoneName "TreyResearch.net" `
-Name "." `
-MailExchange trey-srv-12.treyresearch.net `
-Preference 10
You can also use the more general Add-DnsServerResourceRecord cmdlet to create the
record. For example:
Add-DnsServerResourceRecord -ZoneName "TreyResearch.net" `
-Name "." `
-MX
-MailExchange trey-srv-12.treyresearch.net `
-Preference 10
Both Windows PowerShell cmdlets create the exact same record and produce no output
unless you include the -PassThru parameter. If you do include that, you see this:
HostName RecordType Timestamp TimeToLive RecordData
-------- ---------- --------- ---------- ----------
@ MX 0 01:00:00 [10][trey-srv-12.treyresearch.net.]
 
Search WWH ::




Custom Search