{"id":11321,"date":"2025-01-04T00:52:04","date_gmt":"2025-01-04T05:52:04","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=11321"},"modified":"2025-01-04T00:53:27","modified_gmt":"2025-01-04T05:53:27","slug":"exchange-2013-dns-oddity","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=11321","title":{"rendered":"Exchange 2013 DNS Oddity"},"content":{"rendered":"<p>Not that anyone hosts their own Exchange server anymore &#8230; but we had a pretty strange issue pop up. Exchange has been, for a dozen years, configured to use the system DNS servers. The system can still use DNS just fine &#8230; but the Exchange transport failed to query DNS and just queued messages.<\/p>\n<pre>PS C:\\scripts&gt; Get-Queue -Identity \"EXCHANGE01\\3\" | Format-List *\r\n\r\nDeliveryType : SmtpDeliveryToMailbox\r\nNextHopDomain : mailbox database 1440585757\r\nTlsDomain :\r\nNextHopConnector : 1cdb1e55-a129-46bc-84ef-2ddae27b808c\r\nStatus : Retry\r\nMessageCount : 7\r\nLastError : 451 4.4.0 DNS query failed. The error was: DNS query failed with error ErrorRetry\r\nRetryCount : 2\r\nLastRetryTime : 1\/4\/2025 12:20:04 AM\r\nNextRetryTime : 1\/4\/2025 12:25:04 AM\r\nDeferredMessageCount : 0\r\nLockedMessageCount : 0\r\nMessageCountsPerPriority : {0, 0, 0, 0}\r\nDeferredMessageCountsPerPriority : {0, 7, 0, 0}\r\nRiskLevel : Normal\r\nOutboundIPPool : 0\r\nNextHopCategory : Internal\r\nIncomingRate : 0\r\nOutgoingRate : 0\r\nVelocity : 0\r\nQueueIdentity : EXCHANGE01\\3\r\nPriorityDescriptions : {High, Normal, Low, None}\r\nIdentity : EXCHANGE01\\3\r\nIsValid : True\r\nObjectState : New<\/pre>\n<p>Yup, still configured to use the SYSTEM&#8217;s DNS:<\/p>\n<pre>PS C:\\scripts&gt; Get-TransportService | Select-Object Name, *DNS*\r\n\r\nName : EXCHANGE01\r\nExternalDNSAdapterEnabled : True\r\nExternalDNSAdapterGuid : 2fdebb30-c710-49c9-89fb-61455aa09f62\r\nExternalDNSProtocolOption : Any\r\nExternalDNSServers : {}\r\nInternalDNSAdapterEnabled : True\r\nInternalDNSAdapterGuid : 2fdebb30-c710-49c9-89fb-61455aa09f62\r\nInternalDNSProtocolOption : Any\r\nInternalDNSServers : {}\r\nDnsLogMaxAge : 7.00:00:00\r\nDnsLogMaxDirectorySize : 200 MB (209,715,200 bytes)\r\nDnsLogMaxFileSize : 10 MB (10,485,760 bytes)\r\nDnsLogPath :\r\nDnsLogEnabled : True<\/pre>\n<p>&nbsp;<\/p>\n<p>I had to hard-code the DNS servers to the transport and restart the service:<\/p>\n<pre>PS C:\\scripts&gt; Set-TransportService EXCHANGE01 -InternalDNSServers 10.5.5.85,10.5.5.55,10.5.5.1\r\nPS C:\\scripts&gt; Set-TransportService EXCHANGE01 -ExternalDNSServers 10.5.5.85,10.5.5.55,10.5.5.1\r\n\r\nPS C:\\scripts&gt; Restart-Service MSExchangeTransport\r\nWARNING: Waiting for service 'Microsoft Exchange Transport (MSExchangeTransport)' to stop...\r\nWARNING: Waiting for service 'Microsoft Exchange Transport (MSExchangeTransport)' to start...\r\n\r\nPS C:\\scripts&gt; Get-TransportService | Select-Object Name, InternalDNSServers, ExternalDNSServers\r\n\r\nName InternalDNSServers ExternalDNSServers\r\n---- ------------------ ------------------\r\nEXCHANGE01 {10.5.5.1, 10.5.5.55, 10.5.5.85} {10.5.5.85, 10.5.5.55, 10.5.5.1}<\/pre>\n<p>&nbsp;<\/p>\n<p>Viola, messages started popping into my mailbox.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not that anyone hosts their own Exchange server anymore &#8230; but we had a pretty strange issue pop up. Exchange has been, for a dozen years, configured to use the system DNS servers. The system can still use DNS just fine &#8230; but the Exchange transport failed to query DNS and just queued messages. PS &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[100,65],"class_list":["post-11321","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-dns","tag-exchange-2013"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11321"}],"version-history":[{"count":3,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11321\/revisions"}],"predecessor-version":[{"id":11324,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/11321\/revisions\/11324"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}