Solved

I need to rename my internal domain name

Posted on 2014-04-21
16
476 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 29

Expert Comment

by:becraig
ID: 40013463
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
ID: 40013481
These commands are for Exchange?
0
 
LVL 29

Expert Comment

by:becraig
ID: 40013484
Yes they are.

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

Author Comment

by:limmontreefree
ID: 40013495
Ok tomorrow I'll try and tell you.

Thank you very much
0
 

Author Comment

by:limmontreefree
ID: 40016197
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 29

Expert Comment

by:becraig
ID: 40016274
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
ID: 40017215
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 29

Expert Comment

by:becraig
ID: 40017739
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
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:limmontreefree
ID: 40017865
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 29

Expert Comment

by:becraig
ID: 40017927
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
ID: 40018825
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 29

Accepted Solution

by:
becraig earned 500 total points
ID: 40018835
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
ID: 40018875
Here you are.

thanks.
test.txt
0
 
LVL 29

Expert Comment

by:becraig
ID: 40027668
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
ID: 40028363
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
ID: 40042203
Thanks.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.

914 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

14 Experts available now in Live!

Get 1:1 Help Now