If you are working on Microsoft Web based Solutions such as SharePoint, Dynamics CRM, etc. you would know that on installation these products take up the server FQDN + Service Port as their primary access URL. Wouldn’t it be good if we could have meaningful access URL(s) for each service (CRM, SharePoint) even if they are running on the same physical or virtual server.
For that we need to create a alias for the server running the service in the DNS. You need to have the access to the DNS Server as an Administrator to be able to do that.
Lets take a look at how can that be done.
- Fire up the DNS manager, and expand the node of the DNS Server you want to add the entry to.
- Next Expand the “Forward Lookup Zone” node .
- Right click on the node with the name of your Domain.
- Select “New Host (A or AAAA)” option.
- Enter the detais as illustrated below
- Name : Enter the new name of the URL, for Eg, if you want your service to be accessed via “MyService.mydomain.com”, then enter “MyService” as the Name.
- IP address : Enter the IP Address of the Server running the service.
- Click on Add Host.
- Next You need to add a SPN of this new URL as a HOST. For that run the following Dos Command.
setspn -s HOST/newurl.mydomain.com
That’s all there is to it, we have set up a new URL for our application, now all we need to do is configure our application to listen to requests with the address in the HOST-HEADER and respond.