<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Exchange Server Pro &#187; DNS</title>
	<atom:link href="http://exchangeserverpro.com/tag/dns/feed" rel="self" type="application/rss+xml" />
	<link>http://exchangeserverpro.com</link>
	<description>Microsoft Exchange Server News - Tips - Tutorials</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:00:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Email Fundamentals: What is an MX Record?</title>
		<link>http://exchangeserverpro.com/mx-record</link>
		<comments>http://exchangeserverpro.com/mx-record#comments</comments>
		<pubDate>Sat, 06 Aug 2011 13:12:43 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Email Administration]]></category>
		<category><![CDATA[MX Records]]></category>

		<guid isPermaLink="false">http://exchangeserverpro.com/?p=3898</guid>
		<description><![CDATA[In this article I explain just what an MX record is and how they play a role in a working email system.]]></description>
			<content:encoded><![CDATA[<p>One of the less well understood components of a working email system is the MX record. I do find a lot of IT administrators looking after <a href="http://exchangeserverpro.com">Exchange servers</a> who don&#8217;t really understand what an MX record is and how they work.</p>
<h2>DNS Fundamentals</h2>
<p>MX stands for &#8220;mail exchanger&#8221;. An MX record is a type of DNS record, so any understanding of MX records has to begin with an understanding of the fundamentals of the Domain Name System (DNS).</p>
<p>The most important role of DNS for the majority of us is translating names into IP addresses so that network communications can occur.</p>
<p>For example, when you type <a href="http://www.microsoft.com">www.microsoft.com</a> into your web browser, DNS is used to look up that name to determine the IP address of the server to connect to. The domain name in this example is microsoft.com.</p>
<p>So if that is how a simple web browser connection is made, what about when somebody sends email to an @microsoft.com address?</p>
<p>Again DNS comes into play, but this time the look up is slightly different. The sending mail server will look up the MX record in DNS by following a sequence along these lines:</p>
<ol>
<li>Look up the authoritative name servers for microsoft.com</li>
<li>Query the microsoft.com name servers for the MX records</li>
<li>Look up the names of the MX records in DNS to get their IP addresses</li>
</ol>
<p>If you were to run your own manual DNS lookup of the MX records for microsoft.com it would look something like this:</p>
<pre>C:\&gt;nslookup
Default Server:  UnKnown
Address:  10.0.1.9

&gt; set type=mx
&gt; microsoft.com
Server:  UnKnown
Address:  10.0.1.9

Non-authoritative answer:
microsoft.com   MX preference = 10, mail exchanger = mail.messaging.microsoft.com

mail.messaging.microsoft.com    internet address = 94.245.120.86</pre>
<p>So the IP address of the &#8220;mail exchanger&#8221; for microsoft.com is 94.245.120.86.</p>
<h2>MX Preferences</h2>
<p>You may notice the &#8220;MX preference&#8221; in the output above and wonder what that is referring to. To better explain it here is another DNS lookup for the google.com domain.</p>
<pre>&gt; google.com
Server:  UnKnown
Address:  10.0.1.9

Non-authoritative answer:
google.com      MX preference = 30, mail exchanger = alt2.aspmx.l.google.com
google.com      MX preference = 50, mail exchanger = alt4.aspmx.l.google.com
google.com      MX preference = 40, mail exchanger = alt3.aspmx.l.google.com
google.com      MX preference = 20, mail exchanger = alt1.aspmx.l.google.com
google.com      MX preference = 10, mail exchanger = aspmx.l.google.com

alt2.aspmx.l.google.com internet address = 74.125.115.27
alt1.aspmx.l.google.com internet address = 74.125.91.27
aspmx.l.google.com      internet address = 74.125.157.27</pre>
<p>Notice that there are multiple MX records each with a different preference value. The preference is basically a way of setting the priority of each MX record. The lowest preference is the MX with the highest priority, ie the one that a sending mail server should try first.</p>
<p>The purpose of multiple MX records is to either:</p>
<ul>
<li>Provide some load balancing by using multiple MX records with the same preference set</li>
<li>Provide a backup MX that can be used if the primary one is unavailable</li>
</ul>
<p>The backup MX may be another mail server in your organization at a secondary site that has less bandwidth available to it. Or it could be a server hosted by a third party that provides backup MX services. Either way the purpose is to give sending email systems somewhere to send messages rather than have to store them and retry later.</p>
<h2>Where Should Your MX Records Point?</h2>
<p>Once you understand what an MX record does you then need to consider where your MX record should actually be pointing. Here are a few real world examples of where to point your MX records.</p>
<p>If your organization receives email directly then your MX record would point to a public IP address for your firewall or internet-facing email server (eg <a title="Exchange 2010 Edge Transport Server Introduction" href="http://exchangeserverpro.com/exchange-2010-edge-transport-server-introduction">Edge Transport server</a>).</p>
<p><img class="aligncenter size-large wp-image-3900" title="mx-records-direct" src="http://exchangeserverpro.com/wp-content/uploads/2011/08/mx-records-direct-600x149.jpg" alt="" width="600" height="149" /></p>
<p>If your organization uses a hosted cloud service for email filtering, then your MX record would point to their IP address (or an array of IP addresses depending on which service you are using).</p>
<p><img class="aligncenter size-large wp-image-3899" title="mx-records-cloud" src="http://exchangeserverpro.com/wp-content/uploads/2011/08/mx-records-cloud-600x149.jpg" alt="" width="600" height="149" /></p>
<p>Those are just two examples. There are numerous different scenarios that exist such as hybrid cloud/direct combinations, ge0-distributed networks, and so on. However in my experience with customers these are the two most common scenarios.</p>
<p>By now you should have a basic understanding of what an MX record is and how they work. If you have any questions please feel free to ask them in the comments below.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/ms08-037-causes-port-conflicts-with-dns-and-ias-services" title="MS08-037 causes port conflicts with DNS and IAS services">MS08-037 causes port conflicts with DNS and IAS services</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/mx-record">Email Fundamentals: What is an MX Record?</a> is © 2011 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/mx-record/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MS08-037 causes port conflicts with DNS and IAS services</title>
		<link>http://exchangeserverpro.com/ms08-037-causes-port-conflicts-with-dns-and-ias-services</link>
		<comments>http://exchangeserverpro.com/ms08-037-causes-port-conflicts-with-dns-and-ias-services#comments</comments>
		<pubDate>Wed, 28 Jan 2009 01:32:52 +0000</pubDate>
		<dc:creator>Paul Cunningham</dc:creator>
				<category><![CDATA[Features]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Event ID 7023]]></category>
		<category><![CDATA[IAS]]></category>
		<category><![CDATA[MS08-037]]></category>
		<category><![CDATA[Server 2003]]></category>

		<guid isPermaLink="false">http://www.capslockassassin.com/2009/01/28/ms08-037-causes-port-conflicts-with-dns-and-ias-services/</guid>
		<description><![CDATA[You may encounter an issue with servers running both the DNS and IAS services that have installed update MS08-037 (Vulnerabilities in DNS could allow spoofing – 953230).  The IAS services will fail to start and any authentication that relies on IAS (such as VPNs) will fail. When connecting to the IAS server with the IAS [...]]]></description>
			<content:encoded><![CDATA[<p>You may encounter an issue with servers running both the DNS and IAS services that have installed update <a href="http://www.microsoft.com/technet/security/bulletin/ms08-037.mspx" target="_blank">MS08-037 (Vulnerabilities in DNS could allow spoofing – 953230)</a>.  The IAS services will fail to start and any authentication that relies on IAS (such as VPNs) will fail.</p>
<p>When connecting to the IAS server with the IAS management console the following errors may appear:</p>
<p><img style="display: inline" title="An error occurred while trying to make a connection to the datastore" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/01/isaerror01.png" alt="An error occurred while trying to make a connection to the datastore" width="412" height="121" /></p>
<p><img style="display: inline" title="There was an error getting connection to the data store. The handle is invalid." src="http://www.exchangeserverpro.com/wp-content/uploads/2009/01/iaserror02.png" alt="There was an error getting connection to the data store. The handle is invalid." width="455" height="121" /></p>
<p>Event ID 7023 will appear in the System event log of the IAS server.</p>
<blockquote><p> </p>
<p>Event Type:    Error<br />
Event Source:    Service Control Manager<br />
Event Category:    None<br />
Event ID:    7023<br />
Date:        28/01/2009<br />
Time:        9:15:17 AM<br />
User:        N/A<br />
Computer:    SERVER<br />
Description:</p>
<p>The Internet Authentication Service service terminated with the following error:</p>
<p>Only one usage of each sock address (protocol/network address/port) is normally permitted.</p></blockquote>
<p>The cause of the issue is explained in <a href="http://support.microsoft.com/kb/956188/" target="_blank">KB956188</a>:</p>
<blockquote><p> </p>
<p><strong>You experience issues with UDP-dependent network services after you install DNS Server service security update 953230 (MS08-037)</strong></p>
<p>This issue occurs because the service cannot obtain the port that it requires to function correctly. This issue occurs because of changes to the port allocation in the DNS Service after security update 953230 is installed.</p>
<p><a href="http://support.microsoft.com/kb/956188/" target="_blank">Read full article</a></p></blockquote>
<p>The solution is to reserve the IAS ports from the ephemeral port range to ensure that the DNS Server service does not dynamically allocate those ports to itself.  To determine which ports are being used by IAS open the IAS management console, right-click the server name and select Properties.</p>
<p><img style="display: inline" title="iasconfig01" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/01/iasconfig01.png" alt="iasconfig01" width="347" height="204" /></p>
<p>Navigate to the Ports tab and note the port numbers in use.</p>
<p><img style="display: inline" title="iasconfig02" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/01/iasconfig02.png" alt="iasconfig02" width="403" height="155" /></p>
<p>Follow the instructions in <a href="http://support.microsoft.com/kb/812873/" target="_blank">KB812873 (How to reserve a range of ephemeral ports on a computer that is running Windows Server 2003)</a> and enter the correct ports in the registry key like this.</p>
<p><img style="display: inline" title="regconfig" src="http://www.exchangeserverpro.com/wp-content/uploads/2009/01/regconfig.png" alt="regconfig" width="352" height="179" /></p>
<p>The server must be restarted for the change to take effect.  After the restart the DNS Server will no longer allocate the IAS ports to itself, which will allow IAS to start properly.</p>
<h3  class="related_post_title">Related posts:</h3><ul class="related_post"><li><a href="http://exchangeserverpro.com/mx-record" title="Email Fundamentals: What is an MX Record?">Email Fundamentals: What is an MX Record?</a></li><li><a href="http://exchangeserverpro.com/microsoft-certification-the-mark-russinovich-exam" title="Microsoft Certification – The Mark Russinovich Exam">Microsoft Certification – The Mark Russinovich Exam</a></li><li><a href="http://exchangeserverpro.com/slipstreaming-service-pack-2-into-your-windows-server-2003-r2-media" title="Slipstreaming Service Pack 2 into your Windows Server 2003 R2 media">Slipstreaming Service Pack 2 into your Windows Server 2003 R2 media</a></li><li><a href="http://exchangeserverpro.com/recovering-a-single-domain-controller-from-a-usn-rollback" title="Recovering a single Domain Controller from a USN Rollback">Recovering a single Domain Controller from a USN Rollback</a></li><li><a href="http://exchangeserverpro.com/event-id-3006-and-exchange-server-2007-performance-counters" title="Event ID 3006 and Exchange Server 2007 performance counters">Event ID 3006 and Exchange Server 2007 performance counters</a></li></ul><hr />
<p>This article <a href="http://exchangeserverpro.com/ms08-037-causes-port-conflicts-with-dns-and-ias-services">MS08-037 causes port conflicts with DNS and IAS services</a> is © 2009 ExchangeServerPro.com</p>
<p>Get more <a href="http://exchangeserverpro.com">Exchange Server tips</a> at <a href="http://exchangeserverpro.com">ExchangeServerPro.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://exchangeserverpro.com/ms08-037-causes-port-conflicts-with-dns-and-ias-services/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

