Exchange Server 2016Exchange Server 2019Microsoft

Exchange Server DNS Settings – Exchange Server DNS Record

Exchange Server Split-Brain DNS Configuration

Exchange Server DNS settings are very important to make the exchange server work properly.

Without the Exchange server DNS record in place, one cannot even think of the Exchange server to work properly.

As you may be aware, Microsoft Exchange is highly dependent on Active Directory and DNS.

So in this article, we are going to see how we can set up DNS for the Exchange server.

 

Let’s take a scenario of how to set up split DNS for Exchange 2016

As we installed an active directory on our server, and active directory integrated DNS is in place,

In this example, we have our local DNS by the name of  “techjack.local

But the domain name that will be used for internet email is “techijack.in”  i.e public domain

So, now the point comes on how to use this public domain to work with our emails.

As at the present stage, all the active directory user have their account set on .local DNS.

However, if you use domain techijack.local with exchange it will work, but only internally in the organization.

Still, you can configure it to send email outside but it won’t receive any email from the internet.

At this stage, we have to think about proper namespace.

It is recommended to use split DNS so that the same namespace can be used for internal and external DNS.

In order to resolve the external DNS query, we have to create a new zone by the name of techijack.in

Internal dns Settings

 

How to configure Namespace For Exchange Server

As you install an Exchange server you can access it by computer name, which is a default setting.

It is very important to configure the correct namespace.

We will use the same namespace for internal and external DNS.

Our internal queries will be resolved by the internal DNS server and external will be resolved by public DNS.

The namespace is as follows.

  • Ecp: External & Internal URL: https://mail.techijack.in/ecp
  • Ews: External & Internal URL https://mail.techijack.in/EWS/Exchange.asmx
  • Mapi: External & Internal URL: https://mail.techijack.in/mapi
  • Microsoft Active Sync: External & Internal URL: https://mail.techijack.in/Microsoft-Server-ActiveSync
  • OAB: External & Internal URL: https://mail.techijack.in/OAB
  • OWA: External & Internal URL: https://mail.techijack.in
  • Autodiscover: https://autodiscover.techijack.com/autodiscover/autodiscover.xml

Except for Autodiscover, all the above namespaces can be configured via virtual directories.

Exchange server dns record

Note: Create Autodiscover scope via exchange management shell

” Get-ClientAccessService | Set-ClientAccessService –AutoDiscoverServiceInternalUri
https://autodiscover.domain.com/Autodiscover/Autodiscover.xml ”

 

Exchange Server DNS Record Settings

However, we will have to create a few records on our local Internal server for the newly created zone i.e techijack.in

Host A by the name of Mail pointing to exchange server IP.

Host A by the name of autodiscover point to exchange server IP.

However, if you want to use IMAP, POP & SMTP as a separate namespace.

You will have to create these namespaces as well. Like

Create Host A for Imap pointing to the exchange server.

Another Host A for POP pointing to the exchange server.

Finally, Host A for SMTP points to the exchange server.

Note: If you are using IMAP, pop, and SMTP namespace, make sure to include it in the SSL certificate as well.

dns settings for exchange server

Furthermore, we have to create these records on our public DNS as well.

Make sure you do all the exchange server DNS settings in the correct way.

public dns record

If you see the above picture, you will find the same records on .public DNS as well as pointing to Exchange public IP.

Moreover, the Mx record for domain techijack.in is pointing to mail.techijack.in

SPF & Dmarc records are also present in our public-facing DNS.

You can generate SPF and dmarc TXT record from mxtoolbox.com

Note: As public IP is installed on a router or firewall, you need to forward the related port to exchange.

For Example, IMAP port 587 should be forwarded to exchange and the same goes with other protocols as well.

 

How Exchange Server DNS Works

Now if someone does a query for https://mail.techijack.in/owa from an internal organization.

we have an internal DNS record in place for mail.techijack.in, our internal DNS will resolve the query.

As a result, the client computer will be able to access Outlook on the web.

If the client does the same query from the internet.

It will go to the public DNS first and there we have mail.techijack.in pointing to our firewall or router IP.

Query lands to the router and will look for the record mail.techijack.in

As we have mail.techijack.in in internal DNS pointing exchange IP where our OWA directory resides

Also, port https 443 is forwarded to the exchange server IP.

The client will be able to access the webpage for the outlook on the web.

Furthermore, you can have a look at the video below for more clearance.

However, you can also ask for support as well as assistance on this by emailing on info@techijack.com

So, To set your exchange server DNS settings.

Watch Exchange server DNS Record for internal and external DNS, Spilt Brain.

YouTube video

For More Exchange Tutorial

Vikas Jakhmola

Vikas Jakhmola, the founder of Techijack, with over 15+ years of experience in the IT industry.

Related Articles

Back to top button