Information Technology Reference
In-Depth Information
To create the CNAME record with Windows PowerShell, use the
Add-DnsServerResourceRecordCName cmdlet. For example:
Add-DnsServerResourceRecordCNAME -ZoneName "TreyResearch.net" `
-Name dc1 `
-HostNameAlias trey-dc-02.treyresearch.net
You can also use the more general Add-DnsServerResourceRecord cmdlet to create the
record. For example:
Add-DnsServerResourceRecord -ZoneName "TreyResearch.net" `
-CName `
-Name dc1 `
-HostNameAlias trey-dc-02.treyresearch.net
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
-------- ---------- --------- ---------- ----------
dc1 CNAME 0 01:00:00 trey-dc-02.treyresearch.net.
Creating MX resource records
The MX resource record is a Mail Exchanger record that tells Simple Mail Transfer Protocol
(SMTP) servers which host or hosts handle email for the domain. The MX record points to
a host name record and includes a Mail Server Priority box that allows you to have backup
mail servers with the email always being delivered to the mail server with the lowest value
available. DNS clients query the DNS server for the MX record. If there is one or more, the
DNS server returns the host names that the MX records point to, along with the priority for
each server. You can create an MX record with the DNS Manager console or by using the
Add-DnsServerResourceRecordMX or Add-DnsServerResourceRecord cmdlet.
To create an MX record with the DNS Manager console, follow these steps:
Open the DNS Manager console.
1.
Expand the server on which you want to create the record and then expand Forward
Lookup Zones.
2.
Right-click the DNS domain name in which you want to create the record and select
New Mail Exchanger (MX).
3.
4. Enter a Host Or Child Domain if appropriate. (In most environments, you can leave this
box blank.)
5. Enter the FQDN of the mail server in the Fully Qualified Domain Name (FQDN) Of Mail
Server box.
 
Search WWH ::




Custom Search