Solved

I need to rename my internal domain name

Posted on 2014-04-21
16
482 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

 

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
 

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

734 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