Showing posts with label dns. Show all posts
Showing posts with label dns. Show all posts

Sunday, 23 November 2014

Customize SharePoint URL using AAM and DNS


1. Configure DNS
  • Open DNS Manager
  • Navigate to respective forward lookup zone.
  • Create a CNAME record by right clicking  in the zone and selecting “New Alias (CNAME)
Select relative host record of the CNAME.

http://min2dmax.files.wordpress.com/2012/06/cname_browse1.png

Once you add the CNAME you can see an entry as below.

http://min2dmax.files.wordpress.com/2012/06/cname_entry.png

  • Update Group Policy
Make sure you run a Group Policy update after adding the record.

http://min2dmax.files.wordpress.com/2012/06/gpupdate.png

  • Check connectivity from CNAME record
And then you can check whether the CNAME is being resolved.  You can monitor that CNAME is being resolved.

http://min2dmax.files.wordpress.com/2012/06/pingtocname.png

2. Configure IIS
If the web application is hosted in port 80 you don’t have to edit the IIS host header as you will be redirected to port 80 when enter the CNAME.
If you are using a different port other that 80 you might have to IIS website.
  • To add an entry right click the web site in IIS manager, then select edit bindings.
IIS_EditBindings
  • Add Host name and Port. Note that you should CNAME record and the Host Name should be identical.

http://min2dmax.files.wordpress.com/2012/06/iis_addbinding.png

3. Add Alternate Access Mapping in SharePoint Central Administration
Central Administration -> Application Management -> Configure Alternate Access Mapping -> Edit Public URLs
Select the web Application, then add the URL to Preferred zone.








http://min2dmax.files.wordpress.com/2012/06/addalternateaccessmapping.png


Now you can access SharePoint site by entering the Customized URL (CNAME).


Reference:

http://min2dmax.wordpress.com/2012/06/15/customize-sharepoint-url-using-aam-and-dns/

How to Setup DNS For SharePoint Site


Follow the steps below if you need to know how to set up DNS for a SharePoint site.
  1. Go to Central Administration
  2. Go to Operations tab. Under Global Configuration section, select Alternate access mappings
  3. On Alternate Access Mappings page, click on Edit Public URLs
  4. Select Alternate Access Mapping Collection, i.e. your  newly created website
  5. Under Intranet type in the internal web address that you would like for your site
  6. Under Internet type in the external (public) web address that you would like for your site
  7. Click “OK” when finish”
  8. Remote desktop to the MOSS server farm where your SharePoint site was deployed
  9. Go to IIS Manager
  10. Expand the Web Sites folder, right click on your website
  11. On the Web Site tab, click on the Advanced button. Click “Add” button
  12. On the Add/Edit Web Site Identification screen modify to suit your site according to the following:
  13. IP address: (All Unassigned)
    TCP port: 80 (has to be 80)
    Host Header value: (This is the external/public address of your website that was entered in step 6)
  14. Click OK to save all changes
  15. On the Web Site tab, click on the Advanced button. Click Add.
  16. On the Add/Edit Web Site Identification screen modify to suit your site according to the following:
  17. IP address: (All Unassigned)
    TCP port: 80 (has to be 80)
    Host Header value: (This is the internal address of your intranet website that was entered in step 5)
  18. Click OK to save all changes. (OK for couple of screens so that you are looking at main IIS Web Sites folder)

Testing that the DNS works
  1. On your local machine, open Windows Explorer
  2. Go to C:\WINDOWS\system32\drivers\etc folder and open up the hosts file.
  3. Add the IP address entry corresponding to your website i.e.         xxx.xxx.xxx.xxx      <extranet/intranet URL>
  4. Save the file
  5. Open IE browser and type in the extranet/intranet URL to check that you can access the site.  If you can view the site, then you have setup DNS.

Reference:

http://sharepointdotnetwiki.iblogger.org/2009/12/dns-setup-in-sharepoint/