<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Make a Website Great&#187; DNS &#8211; Make a Website Great</title>
	<atom:link href="http://makeawebsitegreat.com/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://makeawebsitegreat.com</link>
	<description></description>
	<lastBuildDate>Fri, 05 Mar 2010 18:44:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to Update Your Local Hosts File</title>
		<link>http://makeawebsitegreat.com/how-to-update-your-local-hosts-file/</link>
		<comments>http://makeawebsitegreat.com/how-to-update-your-local-hosts-file/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 06:15:52 +0000</pubDate>
		<dc:creator>Yaron</dc:creator>
				<category><![CDATA[How to Make a Website]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[domain name server]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[IP address]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://makeawebsitegreat.com/?p=933</guid>
		<description><![CDATA[A hosts file is a local domain name lookup service that matches IP (Internet Protocol) addresses with domain names. As I explained in my post about]]></description>
			<content:encoded><![CDATA[<p>A hosts file is a local domain name lookup service that matches IP (Internet Protocol) addresses with domain names.  As I explained in my post about <a href=/how-to-point-your-domain-name-to-your-hosting-account/" title="How to Point Your Domain Name to Your Hosting Account">pointing a domain name to a hosting account</a>, computers find each other on the Internet via numeric IP addresses.  And in order for a Web browser to find a website using a domain name, it needs to use the domain name to look up the proper Web server&#8217;s IP address.</p>
<p>Normally, domain name lookup is accomplished by communicating with computer servers on the Internet that are dedicated to the task.  Those servers are called domain name servers.  The hosts file enables each personal computer to act as its own local domain name server.</p>
<p>Given that domain name servers do the same thing, what is this good for?  For the purposes of launching a website, a host file is handy because domain name servers can take up to 48 hours to update across the internet.  So if you register a new domain name and set up a hosting account, you may not be able to see your site as you normally would, by typing its domain name in a browser, for 24-48 hours after you&#8217;ve configured the DNS entry with your domain name registrar.</p>
<p>However, if you add an entry for your site in your personal computer&#8217;s hosts file, you&#8217;d be able to access it with its domain name immediately, albeit, no one else would until the NDS servers actually update.  But this is useful if you want to start working on creating your site right away.</p>
<p>Updating a hosts file after you register a domain is entirely optional and is not necessary if you&#8217;re willing to wait the 24-48 hours before starting to work on your site.</p>
<p>And now, let&#8217;s see how it&#8217;s done.</p>
<h2 align=center>Updating Your Hosts File on the Mac (OS X)</h2>
<p>I&#8217;ll start with updating the hosts file on the Mac since I do most of my work on a Mac.</p>
<p>Open up the Terminal application.  Terminal is normally found in the Applications > Utility folder.  If your can&#8217;t find it, Just search for &#8220;terminal&#8221; in SpotLight:</p>
<p><a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/finding-terminal-in-spotlight.gif" rel="shadowbox[post-933];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/finding-terminal-in-spotlight.gif" alt="Finding Terminal in Spotlight" title="Finding Terminal in Spotlight" width="426" height="108" class="aligncenter size-full wp-image-939" /></a></p>
<p>The Terminal gives access to the underling Unix directory structure of OS X, and looks like this:</p>
<p><a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/terminal-window.gif" rel="shadowbox[post-933];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/terminal-window.gif" alt="Terminal Window" title="Terminal Window" width="433" height="212" class="aligncenter size-full wp-image-942" /></a></p>
<p>Once in Terminal, type the following command at the prompt and hit Enter:</p>
<p><i>sudo pico /private/etc/hosts</i></p>
<p>Here&#8217;s what this means:  &#8220;sudo&#8221; makes the command run with superuser privileges since the hosts file is a protected file, &#8220;pico&#8221; is a text editor, and the rest is the directory location and name of the hosts file.</p>
<p>After you&#8217;ve hit enter, due to the &#8220;sudo&#8221; command, you&#8217;ll be asked for a password.  That&#8217;s just the password to your user account on the Mac.  Type it and hit Enter.</p>
<p>Next, what you&#8217;ll see is the hosts file from within the text editor:</p>
<p><a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/editing-the-hosts-file-on-the-mac.gif" rel="shadowbox[post-933];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/editing-the-hosts-file-on-the-mac.gif" alt="Editing the Hosts File on the Mac" title="Editing the Hosts File on the Mac" width="475" height="296" class="aligncenter size-full wp-image-945" /></a></p>
<p><a name="hosts_edit"></a>Notice the following line:</p>
<blockquote><p>
174.132.115.253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;makeawebsitegreat.com
</p></blockquote>
<p>The numbers on the left are the IP address, and the domain name is on the right.  Just add a line like that to your hosts file.  You&#8217;ll have to use your cursor keys to get around that file and go to the last line.  Your specific file may have other entries.  Just add yours at the very end of whatever is there.  The number of spaces or tabs between the IP address and the domain name doesn&#8217;t matter.</p>
<p>To find the IP address of your hosting account, locate the email you&#8217;ve gotten when you signed up for hosting.  The email from <a href="/how-to-sign-up-for-web-hosting/" title="How to Sign Up for Web Hosting With Host Gator">Host Gator</a>, for example, says something like this:</p>
<blockquote><p>
Your sites IP address:<br />
174.132.115.251
</p></blockquote>
<p>If you can&#8217;t get a hold of your IP address, contact your hosting company&#8217;s technical support.</p>
<p>Once you&#8217;re finished editing, hit Ctrl-X to save and exit:</p>
<p><a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/hit-ctrl-x-to-save-and-exit-terminal.gif" rel="shadowbox[post-933];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/hit-ctrl-x-to-save-and-exit-terminal.gif" alt="Hit Ctrl X to Save and Exit Terminal" title="Hit Ctrl X to Save and Exit Terminal" width="439" height="296" class="aligncenter size-full wp-image-947" /></a></p>
<p>Enter <i>y</i> when asked &#8220;save modified buffer?&#8221; And after that just hit the Enter key to use the default file name.</p>
<p>Then, type in the command <i>exit</i>, and close the Terminal window.</p>
<h2 align=center>Updating Your Hosts File on Windows</h2>
<p>Editing the hosts file on Windows is a lot simpler than on the Mac.  The Mac&#8217;s OS X operating system goes to great lengths to hide advanced, low level features that come from its underlying Unix base.  And unfortunately, the hosts file is one of those advanced features, and therefore the Terminal app is needed to update it.  </p>
<p>However, in Windows it&#8217;s possible to access the hosts file as you normally would any other file on your computer.  The hardest part is to find the hosts file, which is not that difficult.  Once you find it, the hosts file has the same format on Windows as on the Mac.</p>
<p>On Windows NT, 2000, XP, 2003, Vista, and 7, the hosts file resides in the <i>%SystemRoot%\system32\drivers\etc\</i>directory, and the file name is <i>Hosts</i> with no extension. %SystemRoot% is the installation directory of your Windows files, which on my Vista machine is <i>C:\Windows\</i>.  So for example, the hosts file on my Windows computer is at <i>C:\Windows\system32\drivers\etc\Hosts</i>.</p>
<p>Once you&#8217;ve located your hosts file, just open it up with Notepad, add a line with your IP address and domain name as I explained in the <a  href="#hosts_edit">Mac OS X section above</a>, save it with Ctrl-S, and exit Notepad.</p>
<h2 align=center>Updating The Hosts File on Other Operating Systems</h2>
<p>Hosts files on all common operating systems are of the same format as on the Macintosh OS X and Windows.  It&#8217;s only a matter of finding the file and adding your entry.  You can refer to the following Wikipedia page for details on how to find the hosts file on other operating systems not mentioned here: <a  href="http://en.wikipedia.org/wiki/Hosts_file">http://en.wikipedia.org/wiki/Hosts_file</a></p>
<h2 align=center>One Last Thing&#8230;</h2>
<p>If you rely on editing the hosts file for accessing your site in the first 48 after updating the DNS, it&#8217;s always best to take out the entry after that time is up and check that all went well with the update.  Otherwise, you might end up with a site that no one else can see without realizing it.  Instead of deleting your entry in the hosts file, you may comment it out by inserting the # character in front of the line.</p>
<p>Once you&#8217;ve taken out the entry and saved the hosts file, visit your site.  If it shows up, it&#8217;s all good!</p>
]]></content:encoded>
			<wfw:commentRss>http://makeawebsitegreat.com/how-to-update-your-local-hosts-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Point Your Domain Name to Your Hosting Account</title>
		<link>http://makeawebsitegreat.com/how-to-point-your-domain-name-to-your-hosting-account/</link>
		<comments>http://makeawebsitegreat.com/how-to-point-your-domain-name-to-your-hosting-account/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 06:13:07 +0000</pubDate>
		<dc:creator>Yaron</dc:creator>
				<category><![CDATA[How to Make a Website]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[domain name server]]></category>
		<category><![CDATA[hosts file]]></category>
		<category><![CDATA[nameserver]]></category>

		<guid isPermaLink="false">http://makeawebsitegreat.com/?p=813</guid>
		<description><![CDATA[After you&#8217;ve registered a domain name and set up your hosting account, the next step is to make the domain name point to your hosting account, otherwise when a domain name is typed into a browser, what comes up, won&#8217;t be your site. When someone types your domain name into a Web browser&#8217;s address bar, [...]]]></description>
			<content:encoded><![CDATA[<p>After you&#8217;ve <a  href="/how-to-register-a-domain-name/" title="How to Register a Domain Name">registered a domain name</a> and <a  href="/how-to-sign-up-for-web-hosting/" title="How to Set Up a Web Hosting Account ">set up your hosting account</a>, the next step is to make the domain name point to your hosting account, otherwise when a domain name is typed into a browser, what comes up, won&#8217;t be your site.  </p>
<p>When someone types your domain name into a Web browser&#8217;s address bar, expecting some Web page to come up, what actually happens next is as follows:</p>
<ol>
<li>The browser looks up the Internet address  (also known as Internet Protocol address or, IP address) of the computer server that has your website, i.e. the computer you have your Web hosting account on.  This is called DNS (domain name server) lookup, but more on that later.</li>
<li>Using the IP address, which is numeric, the browser contacts your Web server, and requests the page that matches what was typed into the browser&#8217;s address bar.  The request is made using the famous hypertext transfer protocol (HTTP).</li>
<li>The Web server contacts browser and sends it the appropriate data that makes up the Web page.</li>
<li>The browser takes that data and renders the page.</li>
<ol>
<p>What we need to concern ourselves with here is the first step.  Once that&#8217;s set up, all the rest is taken care of by the browser and Web server automatically.</p>
<p>The question we should be asking now is the following:  Given a domain name, how does the browser know the IP address of the Web server?  And the answer is that it does so by looking it up using domain name servers.  A domain name server (DNS) is a computer that serves up a look-up table that matches domain names with IP addresses.</p>
<p>And to make everything work, all you need to do is tell your domain name registrar the name of the DNS of your hosting company.</p>
<p>After you&#8217;ve signed up with a Web hosting company, you should have received an email message detailing the DNS information.  And you should have been provided with the names of a minimum of two domain name servers, one primary and one backup.  Your domain name servers should typically be named something like ns1.SomeDomain.com and ns2.SomeDomain.com.  (Domain names are not case sensitive, by the way.)</p>
<p>Now that you have the names of your domain name servers handy, I&#8217;ll show you how to set up your GoDaddy domain name registration account to use those.  If you didn&#8217;t register your domain name with GoDaddy, the principles are similar but the specifics are obviously different for your registrar.  </p>
<p>Log into your GoDaddy account and go to the Domain Manager.  One way of doing this is by using the menu option on the left sidebar:</p>
<p><a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-go-to-domain-manager.gif" rel="shadowbox[post-813];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-go-to-domain-manager.gif" alt="GoDaddy - Go to the Domain Manager" title="GoDaddy - Go to the Domain Manager" width="192" height="95" class="aligncenter size-full wp-image-911" /></a></p>
<p>The domain manager will display a list of all your registered domains.  Now, using the check boxes,  select the domain(s) you&#8217;d like to set the name servers for:</p>
<p><a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-select-your-domain.gif" rel="shadowbox[post-813];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-select-your-domain.gif" alt="GoDaddy - Select Your Domain" title="GoDaddy - Select Your Domain" width="219" height="39" class="aligncenter size-full wp-image-912" /></a></p>
<p>After you&#8217;ve made your selection, click on the &#8220;<strong>Nameservers</strong>&#8221; icon, which is located on the toolbar just above the domain name list:<br />
<a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-name-servers-button.gif" rel="shadowbox[post-813];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-name-servers-button.gif" alt="GoDaddy - Click the Nameservers Button" title="GoDaddy - Click the Nameservers Button" width="81" height="69" class="aligncenter size-full wp-image-913" /></a></p>
<p>Next, a screen will come up letting you enter your DNS information (<u>click image to enlarge</u>):</p>
<p><a  href="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-enter-name-servers.gif" rel="shadowbox[post-813];player=img;"><img src="http://makeawebsitegreat.com/wp-content/uploads/2010/01/godaddy-enter-name-servers-300x141.gif" alt="GoDaddy - Enter the Name Servers" title="GoDaddy - Enter the Name Servers" width="300" height="141" class="aligncenter size-medium wp-image-914" /></a></p>
<p>Select the &#8220;<b>I host my domains with another provider</b>&#8221; option, enter your domain servers in the appropriate fields, click &#8220;<strong>OK</strong>&#8220;, and you&#8217;re done.</p>
<p>One last thing you should know is that DNS changes are not instantaneous.  They may take up to 48 hours to propagate throughout DNS machines scattered across the Internet so that every person in the World can access your site.</p>
<p>Once the DNS updates for your Internet point of access, you&#8217;ll notice your domain no longer shows an ugly parked domain page full of links and ads, but instead it either shows some default page in your Web hosting account or gives some &#8220;page not found&#8221; message.</p>
<p>It&#8217;s a bit of a downer that you have to wait up to 48 hours to see your site when you type your domain into a browser.  Luckily, there is a way to make that happen immediately, but for your computer alone.</p>
<p>Every computer has its own local domain name table called a hosts file.  In the next post I&#8217;ll show you how to edit that file so that you can access your website and start working on it immediately after registering a domain and setting up hosting.</p>
]]></content:encoded>
			<wfw:commentRss>http://makeawebsitegreat.com/how-to-point-your-domain-name-to-your-hosting-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
