Solved

I need to rename my internal domain name

Posted on 2014-04-21
16
475 Views
Last Modified: 2014-05-05
Hello I have a system with internal domain name "domain.local" , I need to change the domain name to be as external name because the Exchange autodiscover is not working correctly.

Can I rename the Domain Name?

My system is 2 DC window 2012, and TMG Windows 2008R2, and Exchange 2013 Windows 2012.

Thanks
0
Comment
Question by:limmontreefree
  • 9
  • 7
16 Comments
 
LVL 28

Expert Comment

by:becraig
Comment Utility
Here is a step by step on what to do for this:


You can run the following commands to get the External Urls:
Get-ActiveSyncVirtualDirectory   | ft server,*lur* -AutoSize
Get-AutodiscoverVirtualDirectory | ft server,*lur* -AutoSize
Get-ClientAccessServer           | ft name,  *lur* -AutoSize
Get-EcpVirtualDirectory          | ft server,*lur* -AutoSize
Get-OabVirtualDirectory          | ft server,*lur* -AutoSize
Get-OwaVirtualDirectory          | ft server,*lur* -AutoSize
Get-WebServicesVirtualDirectory  | ft server,*lur* –AutoSize

Then change your internal urls to match the external urls:

Set-ClientAccessServer -Identity HostName -AutodiscoverServiceInternalUri https://mail.yourdomain.com/autodiscover/autodiscover.xml

Set-WebServicesVirtualDirectory -Identity "HostName\EWS (Default Web Site)" -InternalUrl https://mail.yourdomain.com/ews/exchange.asmx

Set-OABVirtualDirectory -Identity "HostName\oab (Default Web Site)" -InternalUrl https://mail.yourdomain.com/oab
0
 

Author Comment

by:limmontreefree
Comment Utility
These commands are for Exchange?
0
 
LVL 28

Expert Comment

by:becraig
Comment Utility
Yes they are.

This will simply let your internal domains now resolve to external domain names.
0
 

Author Comment

by:limmontreefree
Comment Utility
Ok tomorrow I'll try and tell you.

Thank you very much
0
 

Author Comment

by:limmontreefree
Comment Utility
Really I having troubles to make the commands,

I made the get commands so you can see the server name...

The external name is mail.enkar.net

Can you help me with the commands.

Thanks
urls.txt
0
 
LVL 28

Expert Comment

by:becraig
Comment Utility
Ok so it seems you do not have an external url value defined.

So your easiest solution would be:
Creating a new internal DNS value for
enkar-exchange.enkar.com (or whatever a valid domain extension would be for you)
You will need to be able to show  proof of a DNS name

Then create a dns entry to point that record to the ip address:
enkar-exchange.enkar.local currently resolves to.

Is this a new deployment ?
Or a working scenario that is now broken ?
0
 

Author Comment

by:limmontreefree
Comment Utility
Hello becraig,

It's a new scenario, I have a Domain controller with a DNS server the Domain name is ENKAR,local the internal DNS can solve the ENKAR-EXCHANGE.ENKAR.local name (the exchange server).

In other Hand I have configured the external urls. I send you a log.

I'm estranged with the Get-AutodiscoverVirtualDirectory because there aren't any url internal neither external.

Any help?

Thank you very much.
urls2.txt
0
 
LVL 28

Expert Comment

by:becraig
Comment Utility
There is no need to define any for auto-discover, that being said if you are just building this out I  would suggest you go ahead and map you Internal Urls to match your External URLS (as you will not be able to acquire a cert with the .local names.


More info on why you do not need to define urls for auto discover:
http://davidsampson10.wordpress.com/2012/11/20/the-autodiscover-internalexternal-url/
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:limmontreefree
Comment Utility
Ok but one question more I'll use the internal as "mail.enkar.net".

Have I to do something in my internal DNS to redirect mail.enkar,net to the Excahgne IP?

Thanks again.
0
 
LVL 28

Expert Comment

by:becraig
Comment Utility
Nope once you set the internal URL Exchange knows what to do beneath the hood.

After all these are all IIS virtual directories, so since your external URLs go to the same site there will be no added config needed.
0
 

Author Comment

by:limmontreefree
Comment Utility
But still having issue with autodiscover.

I'm trying

https://testconnectivity.microsoft.com
mail test@enkar.net
user ENKAR\test
mail.enkar.net
ENKAR-EXCHANGE.ENKAR.local

Can you try and give me your impression?

thanks
0
 
LVL 28

Accepted Solution

by:
becraig earned 500 total points
Comment Utility
Use the following to help troubleshoot:
Test-OutlookWebServices -identity:test@enkar.net | ft * -AutoSize -Wrap


Let me know the output.
0
 

Author Comment

by:limmontreefree
Comment Utility
Here you are.

thanks.
test.txt
0
 
LVL 28

Expert Comment

by:becraig
Comment Utility
Ok so I have reviewed your output and several of your services still show .local as the internal URL:
[PS] C:\>Get-OabVirtualDirectory          | ft server,*lur* -AutoSize

Server         InternalUrl                            ExternalUrl
------         -----------                            -----------
ENKAR-EXCHANGE https://enkar-exchange.enkar.local/OAB https://mail.enkar.net/OAB


[PS] C:\>Get-WebServicesVirtualDirectory  | ft server,*lur* -AutoSize

Server         InternalUrl                                          ExternalUrl
------         -----------                                          -----------
ENKAR-EXCHANGE https://enkar-exchange.enkar.local/EWS/Exchange.asmx https://mail.enkar.net/EWS/Exchange.asmx

Open in new window


I think you should be good to go once you correct those.
0
 

Author Comment

by:limmontreefree
Comment Utility
Here you are a new snapshot  with all  the commands

Get-ActiveSyncVirtualDirectory   | ft server,*lur* -AutoSize
Get-AutodiscoverVirtualDirectory | ft server,*lur* -AutoSize
Get-ClientAccessServer           | ft name,  *lur* -AutoSize
Get-EcpVirtualDirectory          | ft server,*lur* -AutoSize
Get-OabVirtualDirectory          | ft server,*lur* -AutoSize
Get-OwaVirtualDirectory          | ft server,*lur* -AutoSize
Get-WebServicesVirtualDirectory  | ft server,*lur* –AutoSize


Can you review it?

Thanks for your time.
url3.txt
0
 

Author Closing Comment

by:limmontreefree
Comment Utility
Thanks.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
how to add IIS SMTP to handle application/Scanner relays into office 365.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now