<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.dirteam.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Ace Fekay Blogging : external name same as internal</title><link>http://blogs.dirteam.com/blogs/acefekay/archive/tags/external+name+same+as+internal/default.aspx</link><description>Tags: external name same as internal</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Split Zone or no Split Zone - Can't access internal website with external name</title><link>http://blogs.dirteam.com/blogs/acefekay/archive/2009/08/08/split-zone-or-no-split-zone-can-t-access-internal-website-with-external-name.aspx</link><pubDate>Fri, 07 Aug 2009 14:51:00 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:4104</guid><dc:creator>AceFekay</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.dirteam.com/blogs/acefekay/comments/4104.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/acefekay/commentrss.aspx?PostID=4104</wfw:commentRss><wfw:comment>http://blogs.dirteam.com/blogs/acefekay/rsscomments.aspx?PostID=4104</wfw:comment><description>&lt;HR&gt;

&lt;P&gt;How do I resolve my external website when my internal name is the same as my external name (split zone)?&lt;/P&gt;
&lt;P&gt;Or&lt;/P&gt;
&lt;P&gt;We are hosting our webserver internally, on our LAN, and internet users can access the website without problems, but when we are inside the office, we can't access our domain name. This also applies to Exchange OWA.&lt;/P&gt;
&lt;P&gt;By Ace Fekay, MCT&lt;BR&gt;Updated 7/30/2009&lt;/P&gt;
&lt;HR&gt;

&lt;P&gt;There can be multiple scenarios. Choose your scenario.&lt;/P&gt;
&lt;H2&gt;Scenario 1&lt;/H2&gt;
&lt;P&gt;Your internal domain name and external domain name the same, and the webserver is hosted externally.&lt;BR&gt;This type of same name scenario is called a split zone. &lt;/P&gt;
&lt;P&gt;To handle a split-zone, &lt;BR&gt;There are two ways to get to your website: &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;By &lt;A href="http://www.yourdomain.com/" mce_href="http://www.yourdomain.com/"&gt;http://www.yourdomain.com/&lt;/A&gt;, using 'www' in front of your domain name.&lt;/LI&gt;
&lt;LI&gt;By &lt;A href="http://yourdomain.com/" mce_href="http://yourdomain.com/"&gt;http://yourdomain.com/&lt;/A&gt;, without the 'www'in front of the name.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;1. The simplest way to allow your internal users to get to your external website is to simply create a "A" www record under your current internal AD zone name in DNS (DO NOT create an Alias or CNAME record), and provide the IP address of the external web server. &lt;/P&gt;
&lt;P&gt;To create the 'www' record:&lt;BR&gt;Open DNS console&lt;BR&gt;Right-click your zone name, such as yourdomain.com, choose New Host Record&lt;BR&gt;Type in www&lt;BR&gt;Type in the IP address of the external website&lt;/P&gt;
&lt;P&gt;2. However, if your web hosting provider uses more than one web servers, such as in a server farm, or they have multiple IP addresses for the website, and facing the possibility hey may change it without warning, you would have to do something different to account for this. Therefore, instead of creating an "A" 'www' record, I would suggest to create a delegation for 'www' to the public name servers that are authorative for your zone. What a delegation does, instead of providing a direct IP, DNS will query the SOA of your public domain name to get the current IP address of your website. To create a delegation, you will need to find the SOA name of your public zone. The SOA, or Start of Authority, are the public name servers on record that you want your delegation to query for your 'www' record. &lt;/P&gt;
&lt;P&gt;Therefore, you would need to query an outside DNS server for your SOA record (your external DNS hostname servers hosting your public domain name)&lt;/P&gt;
&lt;P&gt;How do you find the SOA for your public domain name? Use nslookup.&lt;/P&gt;
&lt;P&gt;In a command prompt, type in nslookup, hit enter.&lt;BR&gt;Then type in the following:&lt;BR&gt;&amp;gt; set q=soa&lt;BR&gt;&amp;gt; server 4.2.2.2&lt;BR&gt;&amp;gt; typeInYourDomainNameHereWithoutTheWWW&lt;/P&gt;
&lt;P&gt;Once you've found who the SOA names and IP are, you can create the delegation. To create the delegation, simply right-click your zone name, choose new delegation, type in www, and provide the SOA of your public domain.&lt;/P&gt;
&lt;P&gt;As for resolving the domain name with &lt;A href="http://domain.com/" mce_href="http://domain.com/"&gt;http://domain.com/&lt;/A&gt; (without the www in front of it), is a little more complex. Normally if you are not using Active Directory internally, you would simply create a new Host record (as in step#1), but without typing anything in for the hostname, and simply type in the IP address. This is called a blank domain name, which allows the name to resolve without the 'www' in front of it. However, if you are using Active Directory, this 'blank' domain name is actually used by the domain controllers in the domain. It's a unique record that each domain controller registers into DNS with an IP address, without a hostname, which appears under your internal zone name as:&lt;/P&gt;
&lt;P&gt;(same as parent)&amp;nbsp;&amp;nbsp; A&amp;nbsp;&amp;nbsp; x.x.x.x&lt;/P&gt;
&lt;P&gt;This record that the DCs register, is actually called the "LdapIpAddress." Each DC registers one for itself. AD uses these records for a number of things, such as DC to DC replication, Sysvol replication, GPOs and DFS. Don't mess with it please or expect problems. The DCs will re-register this record anyway if you delete it and thwart your attempt. If you create a blank record for your website, it will get cause problems with AD.&lt;/P&gt;
&lt;P&gt;To get around that, you can use a workaround. The workaround is, on EACH DC, install IIS. Then open Internet Information Services console. In the default website properties, Directory tab, select redirect, and redirect it to &lt;A href="http://www.domain.com/" mce_href="http://www.domain.com/"&gt;http://www.domain.com/&lt;/A&gt;. This way when any one of your users type in http//domain.com, it will resolve to the www record you've created in Step#1 or #2 above. But this procedure must be performed on each DC.&lt;/P&gt;
&lt;H2&gt;Scenario 2&lt;/H2&gt;
&lt;P&gt;Your public domain name is different, and you are hosting your webserver internally. &lt;/P&gt;
&lt;P&gt;In this scenario, internet users access your domain name by connecting to the WAN (outside) IP address of your router. &lt;/P&gt;
&lt;P&gt;To make this scenario work, with a different domain name than your internal domain name, you would need to create the external domain name as a zone on your DNS server. &lt;/P&gt;
&lt;P&gt;Create a new zone using your external domain name.&lt;BR&gt;Open DNS console.&lt;BR&gt;Click on Forward Lookup Zones.&lt;BR&gt;Right-click, choose new Zone, type in the name of the external domain name.&lt;BR&gt;Once created, right-click the zone you just created, choose New Host Record.&lt;BR&gt;Type in 'www' (without the quotes), and provide the internal Private IP address of your internal webserver.&lt;/P&gt;
&lt;P&gt;If you want to access the site with &lt;A href="http://domain.com/" mce_href="http://domain.com/"&gt;http://domain.com/&lt;/A&gt; (without the www), you would need to create a 'blank' host record. &lt;/P&gt;
&lt;P&gt;How?&lt;BR&gt;Right-click the zone name you just created, choose New Host Record.&lt;BR&gt;Leave the name field blank, and provide the internal Private IP address of your internal webserver.&lt;/P&gt;
&lt;H2&gt;Scenario 3&lt;/H2&gt;
&lt;P&gt;If you have a different internal domain name and external domain name, and the website is hosted externally:&lt;BR&gt;There's nothing to do. Internet resolution will handle everything. &lt;/P&gt;
&lt;P&gt;Don't forget, ALWAYS and ONLY use the internal DNS servers in your AD environment for all machins (DCs, member servers and workstations, including your VPN clients),or this won't work. Never use your ISP's DNS servers anyway, or your router's IP address as a DNS address in any internal machine's IP properties. Otherwise, expect AD problems as well.&lt;/P&gt;
&lt;P&gt;Don't forget to configure a forwarder for more efficient internet name resolution. I've always used this as a best practice. It offloads internet name resolution to your ISP's DNS addresses so your server doesn't have to use the Root Hints to resolve external names.&lt;/P&gt;
&lt;P&gt;Ace Fekay, MCT&lt;/P&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=4104" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/acefekay/archive/tags/DNS/default.aspx">DNS</category><category domain="http://blogs.dirteam.com/blogs/acefekay/archive/tags/Split+Zone/default.aspx">Split Zone</category><category domain="http://blogs.dirteam.com/blogs/acefekay/archive/tags/Can_2700_t+Access+website/default.aspx">Can't Access website</category><category domain="http://blogs.dirteam.com/blogs/acefekay/archive/tags/external+name+same+as+internal/default.aspx">external name same as internal</category><category domain="http://blogs.dirteam.com/blogs/acefekay/archive/tags/internal+website/default.aspx">internal website</category></item></channel></rss>