<?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>TLF Blog &#187; DNS</title>
	<atom:link href="http://thelinuxfix.com/blog/category/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxfix.com/blog</link>
	<description>Hosting, Unix, and everything in between.</description>
	<lastBuildDate>Wed, 06 Feb 2013 18:05:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Internet DNS &#8211; Troubleshooting Part 1</title>
		<link>http://thelinuxfix.com/blog/2011/09/23/internet-dns-troubleshooting-primer/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=internet-dns-troubleshooting-primer</link>
		<comments>http://thelinuxfix.com/blog/2011/09/23/internet-dns-troubleshooting-primer/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 15:25:58 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Hosting Industry]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://thelinuxfix.com/blog/?p=74</guid>
		<description><![CDATA[DNS is ubiquitous on the Internet, yet it is often misunderstood and remains a mystery to most people. As a hosting provider we administer and troubleshoot DNS issues several times per day, if not several times per hour; so we thought it would be fun and educational to write up a series of posts regarding [...]]]></description>
			<content:encoded><![CDATA[<p><em>DNS is ubiquitous on the Internet, yet it is often misunderstood and remains a mystery to most people. As a hosting provider we administer and troubleshoot DNS issues several times per day, if not several times per hour; so we thought it would be fun and educational to write up a series of posts regarding DNS. </em></p>
<p>&nbsp;</p>
<h2>DNS: Not just for network nerds any more!</h2>
<p>As recently as ten years ago, the inner workings of the Internet remained a mystery for all but the most foolhardy of people.    Fast forward today, and almost everyone has a mobile phone with Internet connectivity, a blog, a Facebook page, and maybe a dedicated website for themselves and family.</p>
<p>Along with any new technology comes the frustration when something doesn&#8217;t work right.  The Internet has become prevalent in nearly everything we do (who watches the Weather Channel now?  Anyone?) and is, in fact, a part of everyday life.   So then, a general understanding of &#8220;how things work&#8221; isn&#8217;t such a bad idea.   After all, you probably know how to check the oil on your car or truck&#8211;certainly fill it up with gas&#8211;even though you may not understand how the rest of the engine works.</p>
<p>&nbsp;</p>
<h2>Getting Started with DiG</h2>
<p>Being that DNS is involved in nearly every bit of communication on the Internet, it&#8217;s a great place to start troubleshooting.   If a web site doesn&#8217;t come up, is it because that server is down?  Or is your DNS acting up&#8230;maybe theirs?   Well read on!  We&#8217;ll show you how to find out.</p>
<p>The primary tool to use in troubleshooting DNS is called DiG, short for the &#8220;DNS Information Groper&#8221; (seriously).  It is part of the BIND DNS Server software package.   Other than the slightly wonky name, its use as an investigative DNS tool is invaluable.   If you are using an Apple Mac or some type of Linux/Unix variant, DiG is likely already installed (on a Mac, open the Terminal to use it).   If you&#8217;re on a Windows host, you can download <a title="DiG For Windows" href="http://members.shaw.ca/nicholas.fong/dig/">DiG for Windows</a>, which is roughly the same tool compiled for the Microsoft platform.</p>
<p>Lets fire up dig and perform a quick query to determine if it&#8217;s working.   Open up your terminal or command line box, and type the following:</p>
<p>dig google.com. NS</p>
<p>After a very short period of time, you should get results which look similar to the following:</p>
<p>[bdowney@tlfmgt1 ~]$ dig google.com NS</p>
<p>; &lt;&lt;&gt;&gt; DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 &lt;&lt;&gt;&gt; google.com NS<br />
;; global options:  printcmd<br />
;; Got answer:<br />
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 52302<br />
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0</p>
<p>;; QUESTION SECTION:<br />
;google.com.            IN    NS</p>
<p>;; ANSWER SECTION:<br />
google.com.        172781    IN    NS    ns2.google.com.<br />
google.com.        172781    IN    NS    ns1.google.com.<br />
google.com.        172781    IN    NS    ns3.google.com.<br />
google.com.        172781    IN    NS    ns4.google.com.</p>
<p>;; Query time: 0 msec<br />
;; SERVER: 172.16.65.90#53(172.16.65.90)<br />
;; WHEN: Tue Sep 13 12:48:38 2011<br />
;; MSG SIZE  rcvd: 100</p>
<p>So what exactly is this telling us?   First, the header shows the DiG version, as well as some basic information.   Above, the header  shows that we performed a Query, there was No Error, as well as your query&#8217;s ID.   Furthermore, it shows the flags passed to DiG when it was run (the ones printed are the default),  and finally the enumeration of queries and results returned.   In this case, we sent one query: NS, (&#8220;Give me the DNS servers for google.com&#8221;) and it returned four distinct answers  (ns1, 2, 3, and 4.google.com).  Finally the bottom portion shows how long the query took (pretty fast in our case!) as well as the DNS server that it obtained the information from.</p>
<p>&nbsp;</p>
<p><em>In our next post, we&#8217;ll show you how to use dig to look up different types of DNS &#8220;records&#8221;, some of which will let you even troubleshoot email problems.</em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxfix.com/blog/2011/09/23/internet-dns-troubleshooting-primer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Internet DNS &#8211; An Introduction</title>
		<link>http://thelinuxfix.com/blog/2008/12/19/internet-dns-an-introduction/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=internet-dns-an-introduction</link>
		<comments>http://thelinuxfix.com/blog/2008/12/19/internet-dns-an-introduction/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 16:03:09 +0000</pubDate>
		<dc:creator>Greg</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[domain names]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[internet]]></category>

		<guid isPermaLink="false">http://www.thelinuxfix.com/blog/?p=17</guid>
		<description><![CDATA[DNS is ubiquitous on the Internet, yet it is often misunderstood and remains a mystery to most people. As a hosting provider we administer and troubleshoot DNS issues several times per day, if not several times per hour; so we thought it would be fun and educational to write up a series of posts regarding [...]]]></description>
			<content:encoded><![CDATA[<p><em>DNS is ubiquitous on the Internet, yet it is often misunderstood and remains a mystery to most people. </em><em>As a hosting provider we administer and troubleshoot DNS issues several times per day, if not several times per hour; so </em><em>we  thought it would be fun and educational to write up a series of posts  regarding DNS.  We’ll toss in a few tidbits and techniques of  troubleshooting it, for kicks.  So without further ado!</em></p>
<h2>DNS In a Nutshell</h2>
<p>The Domain Name System (DNS) is simply a Internet-wide database for  associating friendly domain names (example.com) to an IP addresses  (1.2.3.4). Over time, other functions such as <a href="http://web.archive.org/web/20090330035349/http://en.wikipedia.org/wiki/DomainKeys">Domain Keys</a> and <a href="http://web.archive.org/web/20090330035349/http://en.wikipedia.org/wiki/Sender_Policy_Framework">SPF</a> for Spam prevention have burdened DNS with a few more  responsibilities–but none have fundamentally changed its primary purpose  or how the system works.</p>
<h2>The Players</h2>
<p>To understand the DNS process one must understand the parts involved,  and fortunately DNS only has a few.  On the Internet, the DNS system  can most generally be segmented into three major parts:</p>
<ol>
<li>Your computer.</li>
<li>The Root DNS Servers.</li>
<li>All other DNS Servers.</li>
</ol>
<p>A few important things regarding domain names you should know…</p>
<ol>
<li>The period, or “dot” in domain names is a symbolic character  representing a change of authority.  For instance, one server may be  responsible for the DNS database containing <em>tlfhosting.com.</em>, and yet another might be responsible for <em>linuxrocks.tlfhosting.com.</em> Each time a period is seen by your computer, it knows it has to ask a  server for more information.   It could be the same server, or a  different one–but it is required to ask nonetheless.</li>
<li>Your computer actually “reads” domain names from right-to-left  (backwards of how english is read).  Why?  It’s simply trade-off between  readability by people and a logical hierarchy that computers need.    Things wouldn’t make much sense to people if we typed <em>.com.tlfhosting.www</em> after all.  It just looks strange, because we read things from left to  right.   Yet because of how DNS is structured, your computer needs to  read it that way.</li>
<li>Every domain name actually has a trailing period.  Notice how we’ve  been typing “tlfhosting.com.”?  That’s actually the correct way to type  it.  In fact, open a new window in your browser and type <em>www.thelinuxfix.com.</em> (with the trailing period).  Next try <em>www.google.com.</em>,  or any other domain for that matter.  Normally it isn’t needed, but  only becase most software ‘types’ the trailing period for you  automatically.  But why the trailing period?  Think of it in context of  items #1 and #2 above, and it begins to make sense.</li>
</ol>
<p>Let’s take a quick look at one of our own second-level domains (we’ll help explain that term in a moment): <em>tlfhosting.com</em>.   Let’s say you’d like to connect to <em>www.tlfhosting.com.</em> to do something–could be a website, telnet, FTP, or anything.  The important point is that <em>to do</em> anything your computer first needs the IP address of <em>www.tlfhosting.com</em>., since it cannot do a single thing with english words!</p>
<h2>The Root Servers and TLDs</h2>
<p>To get things started, we’ll have to talk about that all-important trailing dot on “<em>www.tlfhosting.com.</em>”</p>
<p>Remember point #2 above.  The first thing your computer sees when  trying to translate the domain name is a period (.).  Because of that,  it knows a domain is coming next so it will need to ask a DNS server  about it.</p>
<p>But wait, which server?  How is it supposed to know where to look if it’s just getting started?</p>
<p>This is where the Root Servers come in.   The Root Servers are represented by the trailing period (.) in<em> google.com.</em> and <em>tlfhosting.com.</em>, or any domain for that matter.</p>
<p>As you’ve probably figured out, the Root Servers are then responsible  for all top-level-domains (or “TLDs”), such as “net.”, “org.”, “edu.”,  and so forth.  They’re called top-level simply because all other domains  (like tlfhosting) are under their authority.   So these things are not  only busy–they’re very, very important to the operation of the entire  Internet!</p>
<p>The Root Servers don’t change much at all.  In fact, most computers are already hard-wired in a programming sense to <em>know</em> who to ask about “com”, “net”, or any of the other TLDs.  In fact,  every computer that asks something about any domain name on the Internet  at some point or another asked the Root Servers a question. As you can  imagine, these are busy little servers.</p>
<p>Now hopefully the term “Second-Level-Domain” should begin to make  more sense as well.   If “.com” is a top-level domain, then logically <em>tlfhosting.com</em> is a second-level domain, and thus <em>subdomain.tlfhosting.com</em> would be a third-level domain.  It just goes right-to-left as we were talking about.  Easy as pie!</p>
<p><em>Keep an eye out for part 2, where we’ll discuss the exact process a computer follows to determine the IP address of any domain.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxfix.com/blog/2008/12/19/internet-dns-an-introduction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
