<?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>anuragbhatia.com !!! &#187; DNS</title>
	<atom:link href="http://anuragbhatia.com/category/web-hosting/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://anuragbhatia.com</link>
	<description>&#34;Call it a problem, ONLY if you have a solution&#34;</description>
	<lastBuildDate>Wed, 16 May 2012 15:39:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Concern about core DNS infrastructure in India</title>
		<link>http://anuragbhatia.com/dns/concern-about-core-dns-infrastructure-in-india/</link>
		<comments>http://anuragbhatia.com/dns/concern-about-core-dns-infrastructure-in-india/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 09:50:34 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[gTLD servers]]></category>
		<category><![CDATA[India]]></category>
		<category><![CDATA[Root Servers]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=1672</guid>
		<description><![CDATA[In last few days, I have been pushing discussion on APNIC &#38; NANOG mailing lists about poor DNS infrastructure in India. Thought to put a quick blog post on the issue. &#160; &#160; &#160; So what&#8217;s exactly wrong?  To understand what&#8217;s wrong, let&#8217;s understand how DNS works at core level.  DNS relies on a hierarchy [...]]]></description>
			<content:encoded><![CDATA[<p>In last few days, I have been pushing discussion on APNIC &amp; NANOG mailing lists about poor DNS infrastructure in India.</p>
<p>Thought to put a quick blog post on the issue.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter" title="Roor Servers" src="http://upload.wikimedia.org/wikipedia/commons/f/ff/Ams-ix.k.root-servers.net.jpg" alt="" width="576" height="432" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4>So what&#8217;s exactly wrong? </h4>
<p>To understand what&#8217;s wrong, let&#8217;s understand how DNS works at core level. </p>
<p>DNS relies on a hierarchy model with . (dot) on top which is Root and TLD i.e Top Level Domains below Root, which further  follow 2nd level domains which are popularly domain names we use.</p>
<p>&nbsp;</p>
<p>So e.g mail.google.com is actually like</p>
<p>.<br /><span style="color: #3366ff;">com</span>.<br /><span style="color: #ff0000;">google</span><span style="color: #3366ff;">.com</span>. <br /><span style="color: #00ff00;">mail</span><span style="color: #ff0000;"><span style="color: #00ff00;">.</span>google</span><span style="color: #3366ff;">.com</span>.</p>
<p>&nbsp;</p>
<p>First 3 are real DNS zones with own delegation. Let&#8217;s see their DNS servers using dig:</p>
<p><span style="color: #ff0000;">anurag@laptop:~$ dig . ns +short</span><br /><span style="color: #3366ff;">j.root-servers.net.</span><br /><span style="color: #3366ff;">b.root-servers.net.</span><br /><span style="color: #3366ff;">c.root-servers.net.</span><br /><span style="color: #3366ff;">a.root-servers.net.</span><br /><span style="color: #3366ff;">l.root-servers.net.</span><br /><span style="color: #3366ff;">g.root-servers.net.</span><br /><span style="color: #3366ff;">e.root-servers.net.</span><br /><span style="color: #3366ff;">k.root-servers.net.</span><br /><span style="color: #3366ff;">f.root-servers.net.</span><br /><span style="color: #3366ff;">m.root-servers.net.</span><br /><span style="color: #3366ff;">d.root-servers.net.</span><br /><span style="color: #3366ff;">h.root-servers.net.</span><br /><span style="color: #3366ff;">i.root-servers.net.</span></p>
<p>&nbsp;</p>
<p>Next, com.</p>
<p><span style="color: #ff0000;">anurag@laptop:~$ dig com. ns +short</span><br /><span style="color: #3366ff;">l.gtld-servers.net.</span><br /><span style="color: #3366ff;">f.gtld-servers.net.</span><br /><span style="color: #3366ff;">g.gtld-servers.net.</span><br /><span style="color: #3366ff;">j.gtld-servers.net.</span><br /><span style="color: #3366ff;">i.gtld-servers.net.</span><br /><span style="color: #3366ff;">a.gtld-servers.net.</span><br /><span style="color: #3366ff;">h.gtld-servers.net.</span><br /><span style="color: #3366ff;">k.gtld-servers.net.</span><br /><span style="color: #3366ff;">m.gtld-servers.net.</span><br /><span style="color: #3366ff;">c.gtld-servers.net.</span><br /><span style="color: #3366ff;">e.gtld-servers.net.</span><br /><span style="color: #3366ff;">d.gtld-servers.net.</span><br /><span style="color: #3366ff;">b.gtld-servers.net.</span></p>
<p>&nbsp;</p>
<p>Next, google.com.</p>
<p><span style="color: #ff0000;">anurag@laptop:~$ dig google.com. ns +short</span><br /><span style="color: #3366ff;">ns2.google.com.</span><br /><span style="color: #3366ff;">ns3.google.com.</span><br /><span style="color: #3366ff;">ns4.google.com.</span><br /><span style="color: #3366ff;">ns1.google.com.</span></p>
<p>&nbsp;</p>
<p>So here dot was the &#8220;root zone&#8221; which is on top of hierarchy, next com is Top Level Domain, just like net, org, in, us etc. Next, google.com. is 2nd level domain. Nameservers which hold data for google.com domain name sit on gTLD servers of com while root holds ALL dns servers of all Top level domains. So root knows who knows about com/net/org/biz/asia/in/se/us etc. </p>
<p>There are 13 root servers in world theoritically but actual number is over 100 since they are using anycasting very much and have nodes across multiple places. You can read more on official site of Root Servers along with their location map <a href="http://www.root-servers.org/" target="_blank">here</a>.</p>
<p>&nbsp;</p>
<h4>That was the fundamental part. Coming back on main point, what&#8217;s missing in India?</h4>
<p>We have 4 root servers deployed at Delhi, Mumbai &amp; Chennai which seems like decent number but there are NO gTLD servers at all. Thus India relies on external world for resolving gTLD domains like com/net/ org. This is real problem. If you are from India, I would suggest you to take traceroutes to each of gTLD servers i.e</p>
<p><span style="color: #3366ff;">l.gtld-servers.net.</span><br /><span style="color: #3366ff;">f.gtld-servers.net.</span><br /><span style="color: #3366ff;">g.gtld-servers.net.</span><br /><span style="color: #3366ff;">j.gtld-servers.net.</span><br /><span style="color: #3366ff;">i.gtld-servers.net.</span><br /><span style="color: #3366ff;">a.gtld-servers.net.</span><br /><span style="color: #3366ff;">h.gtld-servers.net.</span><br /><span style="color: #3366ff;">k.gtld-servers.net.</span><br /><span style="color: #3366ff;">m.gtld-servers.net.</span><br /><span style="color: #3366ff;">c.gtld-servers.net.</span><br /><span style="color: #3366ff;">e.gtld-servers.net.</span><br /><span style="color: #3366ff;">d.gtld-servers.net.</span><br /><span style="color: #3366ff;">b.gtld-servers.net.</span></p>
<p>&nbsp;</p>
<p>and pass me on directly on email or via comments on the page.</p>
<p>&nbsp;</p>
<p><a href="http://mailman.nanog.org/pipermail/nanog/2012-March/046469.html" target="_blank">Here</a> is my original post at NANOG mailing list.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fconcern-about-core-dns-infrastructure-in-india%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/concern-about-core-dns-infrastructure-in-india/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/concern-about-core-dns-infrastructure-in-india/"  data-text="Concern about core DNS infrastructure in India" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/concern-about-core-dns-infrastructure-in-india/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/concern-about-core-dns-infrastructure-in-india/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/concern-about-core-dns-infrastructure-in-india/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>airtel.in &#8211; bad DNS setup</title>
		<link>http://anuragbhatia.com/dns/airtel-in-bad-dns-setup/</link>
		<comments>http://anuragbhatia.com/dns/airtel-in-bad-dns-setup/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 20:18:45 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=1627</guid>
		<description><![CDATA[&#160; Few days back I mentioned how reverse DNS setup of Airtel was incorrect. Sad to say it has not been fixed yet. In meanwhile I was looking at domain name &#8211; airtel.in the main domain which runs website for Bharti Airtel&#8217;s Indian operations. I am little surprised to find that DNS server of airtel.in [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter" title="Airtel Logo" src="http://i.eho.st/ppdbyua2.png" alt="" width="308" height="136" /></p>
<p>Few days back I mentioned <a href="http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/" target="_blank">how reverse DNS setup of Airtel was incorrect</a>. Sad to say it has not been fixed yet.</p>
<p>In meanwhile I was looking at domain name &#8211; <strong>airtel.in </strong>the main domain which runs website for <a href="http://en.wikipedia.org/wiki/Bharti" target="_blank">Bharti Airtel&#8217;s</a> Indian operations. I am little surprised to find that DNS server of airtel.in are failing randomly! </p>
<p>&nbsp;</p>
<h3>Problem:</h3>
<p>airtel.in uses 4 DNS servers from Mantra Online &#8211; a small ISP which Bharti took over years back. Here are the DNS servers used by domain name:</p>
<p><span style="font-size: x-small; background-color: #ffff00;">aaadel.mantraonline.com.</span><br /><span style="font-size: x-small; background-color: #ffff00;">dnsbom.mantraonline.com.</span><br /><span style="font-size: x-small; background-color: #ffff00;">dnsdel.mantraonline.com.</span><br /><span style="font-size: x-small; background-color: #00ff00;">dnsblr.mantraonline.com.</span></p>
<p>&nbsp;</p>
<p>Now interesting part here is that <strong>out of these 4, only 1 behaves normally</strong>. </p>
<p>DNS server &#8211; <strong>dnsblr.mantraonline.com.</strong> seems working fine but <strong>rest all are rejecting queries &#8220;randomly&#8221;</strong> <em>which is interesting</em>. I have mostly seen DNS servers being up or down. This is probably first case when I can see DNS servers failing in random fashion.</p>
<p style="text-align: center;"><img class="aligncenter" title="Server Down" src="http://www.weefmgrenada.com/newsimg/server_down.jpg" alt="" width="319" height="276" /></p>
<p><strong>Let&#8217;s query rest 3 DNS servers one by one:</strong></p>
<p><span style="font-size: x-small;">anurag@laptop:~$ dig @aaadel.mantraonline.com airtel.in ns</span></p>
<p><span style="font-size: x-small;">; &lt;&lt;&gt;&gt; DiG 9.7.1-P2 &lt;&lt;&gt;&gt; @aaadel.mantraonline.com airtel.in ns</span><br /><span style="font-size: x-small;">; (1 server found)</span><br /><span style="font-size: x-small;">;; global options: +cmd</span><br /><span style="font-size: x-small;">;; Got answer:</span><br /><span style="font-size: x-small;">;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: <strong><span style="background-color: #ffff00;">REFUSED</span></strong>, id: 63903</span><br /><span style="font-size: x-small;">;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</span><br /><span style="font-size: x-small;">;; WARNING: recursion requested but not available</span></p>
<p><span style="font-size: x-small;">;; QUESTION SECTION:</span><br /><span style="font-size: x-small;">;airtel.in. IN NS</span></p>
<p><span style="font-size: x-small;">;; Query time: 81 msec</span><br /><span style="font-size: x-small;">;; SERVER: 202.56.230.6#53(202.56.230.6)</span><br /><span style="font-size: x-small;">;; WHEN: Mon Feb 6 01:25:20 2012</span><br /><span style="font-size: x-small;">;; MSG SIZE rcvd: 27</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>In another 5 random tries, here&#8217;s what I get:</strong></p>
<p><span style="font-size: x-small;">anurag@laptop:~$ dig @aaadel.mantraonline.com airtel.in ns</span></p>
<p><span style="font-size: x-small;">; &lt;&lt;&gt;&gt; DiG 9.7.1-P2 &lt;&lt;&gt;&gt; @aaadel.mantraonline.com airtel.in ns</span><br /><span style="font-size: x-small;">; (1 server found)</span><br /><span style="font-size: x-small;">;; global options: +cmd</span><br /><span style="font-size: x-small;">;; Got answer:</span><br /><span style="font-size: x-small;">;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: <strong><span style="background-color: #00ff00;">NOERROR</span></strong>, id: 2044</span><br /><span style="font-size: x-small;">;; flags: qr aa rd; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 4</span><br /><span style="font-size: x-small;">;; WARNING: recursion requested but not available</span></p>
<p><span style="font-size: x-small;">;; QUESTION SECTION:</span><br /><span style="font-size: x-small;">;airtel.in. IN NS</span></p>
<p><span style="font-size: x-small;">;; ANSWER SECTION:</span><br /><span style="font-size: x-small;">airtel.in. 86400 IN NS dnsblr.mantraonline.com.</span><br /><span style="font-size: x-small;">airtel.in. 86400 IN NS dnsdel.mantraonline.com.</span><br /><span style="font-size: x-small;">airtel.in. 86400 IN NS aaadel.mantraonline.com.</span><br /><span style="font-size: x-small;">airtel.in. 86400 IN NS dnsbom.mantraonline.com.</span></p>
<p><span style="font-size: x-small;">;; ADDITIONAL SECTION:</span><br /><span style="font-size: x-small;">aaadel.mantraonline.com. 86400 IN A 202.56.230.6</span><br /><span style="font-size: x-small;">dnsblr.mantraonline.com. 86400 IN A 202.56.250.5</span><br /><span style="font-size: x-small;">dnsbom.mantraonline.com. 86400 IN A 202.56.240.5</span><br /><span style="font-size: x-small;">dnsdel.mantraonline.com. 86400 IN A 202.56.230.5</span></p>
<p><span style="font-size: x-small;">;; Query time: 87 msec</span><br /><span style="font-size: x-small;">;; SERVER: 202.56.230.6#53(202.56.230.6)</span><br /><span style="font-size: x-small;">;; WHEN: Mon Feb 6 01:26:05 2012</span><br /><span style="font-size: x-small;">;; MSG SIZE rcvd: 191</span></p>
<p>&nbsp;</p>
<p><span><strong>This time it worked. Pretty crazy. Same applies on other 2 DNS servers too:</strong></span></p>
<p><span style="font-size: x-small;">anurag@laptop:~$ dig @dnsbom.mantraonline.com airtel.in ns</span></p>
<p><span style="font-size: x-small;">; &lt;&lt;&gt;&gt; DiG 9.7.1-P2 &lt;&lt;&gt;&gt; @dnsbom.mantraonline.com airtel.in ns</span><br /><span style="font-size: x-small;">; (1 server found)</span><br /><span style="font-size: x-small;">;; global options: +cmd</span><br /><span style="font-size: x-small;">;; Got answer:</span><br /><span style="font-size: x-small;">;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: <strong><span style="background-color: #ffff00;">REFUSED</span></strong>, id: 29601</span><br /><span style="font-size: x-small;">;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</span><br /><span style="font-size: x-small;">;; WARNING: recursion requested but not available</span></p>
<p><span style="font-size: x-small;">;; QUESTION SECTION:</span><br /><span style="font-size: x-small;">;airtel.in. IN NS</span></p>
<p><span style="font-size: x-small;">;; Query time: 82 msec</span><br /><span style="font-size: x-small;">;; SERVER: 202.56.240.5#53(202.56.240.5)</span><br /><span style="font-size: x-small;">;; WHEN: Mon Feb 6 01:28:21 2012</span><br /><span style="font-size: x-small;">;; MSG SIZE rcvd: 27</span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small;">anurag@laptop:~$ dig @dnsdel.mantraonline.com airtel.in ns</span></p>
<p><span style="font-size: x-small;">; &lt;&lt;&gt;&gt; DiG 9.7.1-P2 &lt;&lt;&gt;&gt; @dnsdel.mantraonline.com airtel.in ns</span><br /><span style="font-size: x-small;">; (1 server found)</span><br /><span style="font-size: x-small;">;; global options: +cmd</span><br /><span style="font-size: x-small;">;; Got answer:</span><br /><span style="font-size: x-small;">;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: <strong><span style="background-color: #ffff00;">REFUSED</span></strong>, id: 34334</span><br /><span style="font-size: x-small;">;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</span><br /><span style="font-size: x-small;">;; WARNING: recursion requested but not available</span></p>
<p><span style="font-size: x-small;">;; QUESTION SECTION:</span><br /><span style="font-size: x-small;">;airtel.in. IN NS</span></p>
<p><span style="font-size: x-small;">;; Query time: 86 msec</span><br /><span style="font-size: x-small;">;; SERVER: 202.56.230.5#53(202.56.230.5)</span><br /><span style="font-size: x-small;">;; WHEN: Mon Feb 6 01:27:42 2012</span><br /><span style="font-size: x-small;">;; MSG SIZE rcvd: 27</span></p>
<p>&nbsp;</p>
<p>Pretty crazy case. Something is wrong at DNS servers itself &#8211; not sure what&#8217;s logic of rejecting queries randomly. But anyways &#8211; <a href="http://www.airtel.in" target="_blank">http://www.airtel.in</a> will always open since 1/4 DNS server seems working normal. If that&#8217;s the case then Airtel still won&#8217;t be loosing much of traffic but unfortunately case is further complex.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter" title="Mad man" src="http://www.nenaghpc.com/uploaded_images/mad-man-701253.jpg" alt="" width="281" height="209" /></p>
<h3> </h3>
<h3> </h3>
<h3>Another problem&#8230; </h3>
<p>Remember that 4 DNS servers mentioned here are the ones which are <strong>NS records at &#8220;airtel.in&#8221; zone at delegated servers</strong>. In other terms these are just servers which host and have NS entries for the zone <strong>but </strong>root nameservers of in-registry hold <strong>only 2 DNS servers</strong> in total which host zone. A <a href="http://who.is/whois/airtel.in" target="_blank">quick whois check</a> reveals that airtel.in is using:</p>
<p>Name Server:AAADEL.MANTRAONLINE.COM<br />Name Server:DNSDEL.MANTRAONLINE.COM</p>
<p>and thus missing the only server which gives consistent results. Incoming traffic never hits other 2 DNS servers which are just mentioned in NS.</p>
<p><strong>Poor &amp; bad DNS setup!</strong></p>
<p>With hope that you hit right server this month rather then dead servers before reaching the working one, time for me to say <strong>Good night!</strong> <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fairtel-in-bad-dns-setup%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/airtel-in-bad-dns-setup/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/airtel-in-bad-dns-setup/"  data-text="airtel.in &#8211; bad DNS setup" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/airtel-in-bad-dns-setup/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/airtel-in-bad-dns-setup/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/airtel-in-bad-dns-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding dot in the end of hostname</title>
		<link>http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/</link>
		<comments>http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 20:11:42 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Airtel]]></category>
		<category><![CDATA[Poor Setup]]></category>
		<category><![CDATA[PTR]]></category>
		<category><![CDATA[rDNS]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=1487</guid>
		<description><![CDATA[This is a very popular mistake admins make &#8211; it&#8217;s missing . i.e dot in the end of hostname. This causes serious problems (and lot of frustration!). E.g taking example of popular Google&#8217;s cname record ghs.google.com. As we know if one would like to use mail.domain.com., he has to point the CNAME record to &#8220;ghs.google.com&#8220;. [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very popular mistake admins make &#8211; it&#8217;s missing . <em>i.e dot</em> in the end of hostname. This causes serious problems (and lot of frustration!).</p>
<p>E.g taking example of popular Google&#8217;s cname record <span style="color: #ff0000;"><strong>ghs.google.com</strong></span>. As we know if one would like to use <strong><span style="color: #0000ff;">mail.domain.com.</span></strong>, he has to point the CNAME record to &#8220;<strong><span style="color: #ff0000;">ghs.google.com</span></strong>&#8220;. Now here if one misses dot in the end of ghs.google.com. &#8211; it will give a real value like:</p>
<p><span style="color: #0000ff;"><strong>mail.domain.com</strong></span> cname to <span style="color: #ff0000;"><strong>ghs.google.com</strong></span><strong><span style="color: #0000ff;">.domain.com</span></strong> &#8211; thus adding a domain name itself (many DNS control panels do take care of this issue, but quite a lot of them don&#8217;t).</p>
<p>&nbsp;</p>
<h4>So why does that happens?</h4>
<p>To understand that, one has to remember that DNS is on a hierarchy based model with . (dot) as top level domain with other TLD&#8217;s like com, net, org etc below it i.e</p>
<p>So esstentially it&#8217;s much like pealing off. So for www.google.com, it&#8217;s like:</p>
<p>www.google.com.<br />google.com.<br />com.<br />.</p>
<p>So dot is at root level. It does has nameservers too!</p>
<p><span style="font-size: x-small;">anurag@laptop:~$ dig . ns +short</span><br /><span style="font-size: x-small;">a.root-servers.net.</span><br /><span style="font-size: x-small;">b.root-servers.net.</span><br /><span style="font-size: x-small;">c.root-servers.net.</span><br /><span style="font-size: x-small;">d.root-servers.net.</span><br /><span style="font-size: x-small;">e.root-servers.net.</span><br /><span style="font-size: x-small;">f.root-servers.net.</span><br /><span style="font-size: x-small;">g.root-servers.net.</span><br /><span style="font-size: x-small;">h.root-servers.net.</span><br /><span style="font-size: x-small;">i.root-servers.net.</span><br /><span style="font-size: x-small;">j.root-servers.net.</span><br /><span style="font-size: x-small;">k.root-servers.net.</span><br /><span style="font-size: x-small;">l.root-servers.net.</span><br /><span style="font-size: x-small;">m.root-servers.net.</span></p>
<p>&nbsp;</p>
<p>And thus if there&#8217;s no dot in end, it is (many times) assumed that the specified record value (say ghs.google.com) is a sub value under main zone and therefore the domain name itself is added making actual string like ghs.google.com.domain.com. and eventually nothing works!</p>
<p>And we see admins making faces like:</p>
<p style="text-align: center;"><img class="aligncenter" title="Frustrated" src="http://simhilarity.com/wp-content/uploads/2011/07/frustratedman.jpg" alt="" width="366" height="245" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>This not only applies to forward DNS, but <strong>reverse DNS too</strong>. </p>
<p>Here&#8217;s an interesting case of awfully crappy reverse DNS setup of domain name of popular Indian ISP &#8211; bharti Airtel. Domain name &#8211; airtel.in</p>
<p>&nbsp;</p>
<h4>Example of poor rDNS setup:</h4>
<p><span style="font-size: x-small;">anurag@laptop:~$ dig airtel.in a +short</span><br /><span style="font-size: x-small;">125.19.17.20</span><br /><span style="font-size: x-small;">anurag@laptop:~$ dig -x 125.19.17.20 +short</span><br /><span style="font-size: x-small;">;; Truncated, retrying in TCP mode.</span><br /><span style="font-size: x-small;">www.airtelworld.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.myairtelmail.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.touchtelindia.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airtelbroadband.in.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airteltelephone.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.bharti-indiaone.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.bhartibroadband.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airtel-broadband.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airtelenterprise.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airtellongdistance.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.live.airtelworld.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airtel.co.in.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airtel.in.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.masala.airtelworld.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.funplex.airtelworld.com.17.19.125.in-addr.arpa.</span><br /><span style="font-size: x-small;">www.airtellive.com.17.19.125.in-addr.arpa.</span></p>
<p>&nbsp;</p>
<h4>So what&#8217;s really happening here?</h4>
<p>Firstly IP has more then 1 PTR record &#8211; a configuration which is not recommended at all. Secondly, all of these records are incorrect because of missing dots.</p>
<p>Taking www.airtelworld.com as example. If admin wanted to have PTR of 125.19.17.20 pointed to www.airtelworld.com then it should be like:</p>
<p>&nbsp;</p>
<p>20.17.19.125.in-addr.arpa.  PTR  www.airtelworld.com.</p>
<p>&nbsp;</p>
<p>(but unfortunately it is like this right now):</p>
<p>20.17.19.125.in-addr.arpa.  PTR  www.airtelworld.com.17.19.125.in-addr.arpa.</p>
<p>Now, very likely they have configured reverse zones in /24 blocks so it will be like a <em>17.19.125.in-addr.arpa.</em> zone and further on they can add IP addresses in sub levels like</p>
<p><strong>1</strong>.17.19.125.in-addr.arpa.<br /><strong>2</strong>.17.19.125.in-addr.arpa.<br /><strong>3</strong>.17.19.125.in-addr.arpa. </p>
<p>in that manner</p>
<p>20.17.19.125.in-addr.arpa.</p>
<p>now, since admin missed a dot in the end of www.airtelworld.com PTR value, it resulted in addition of main zone which was 17.19.125.in-addr.arpa. in the end which turns out to be www.airtelworld.com.17.19.125.in-addr.arpa.</p>
<p>Completly incorrect and bad setup. </p>
<p>&nbsp;</p>
<p>With hope that you won&#8217;t miss dot in the end of your hostnames, time for me to get back on cramming for next DDC exam! <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><img class="aligncenter" title="Cramming" src="http://4.bp.blogspot.com/_oSdugHEh2Pg/TKrBdTVaKGI/AAAAAAAAAAs/koP8OwT7bVk/s1600/sleep-helps-you-study.jpg" alt="" width="315" height="210" /></p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Funderstanding-dot-in-the-end-of-hostname%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/"  data-text="Understanding dot in the end of hostname" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/understanding-dot-in-the-end-of-hostname/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Poor performance of K-root server (Delhi node)</title>
		<link>http://anuragbhatia.com/dns/poor-performance-of-k-root-server-delhi-node/</link>
		<comments>http://anuragbhatia.com/dns/poor-performance-of-k-root-server-delhi-node/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 11:12:53 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=1467</guid>
		<description><![CDATA[Seems like k-root servers are having issue again. This is not the first time BSNL is having such issues. Last year I reported issue with K root server (which was actually because of downtime at Delhi node). &#160; &#160;     Here&#8217;s some data for today&#8217;s case: PING 193.0.14.129 (193.0.14.129) 56(84) bytes of data.64 bytes [...]]]></description>
			<content:encoded><![CDATA[<p>Seems like <a href="http://k.root-servers.org/" target="_blank">k-root servers</a> are having issue again. This is not the first time BSNL is having such issues. <a href="http://anuragbhatia.com/networking/messed-up-connectivity-of-root-servers-in-india/" target="_blank">Last year I reported</a> issue with K root server (<em>which was actually because of downtime at Delhi node</em>).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="http://anuragbhatia.com/uploads/2012/01/rrd.png" target="_blank"><img class="aligncenter  wp-image-1479" title="RIPE Probe Delhi K-root data" src="http://anuragbhatia.com/uploads/2012/01/rrd-300x1091.png" alt="" width="300" height="109" /></a></p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"> </p>
<h3>Here&#8217;s some data for today&#8217;s case:</h3>
<p><span style="font-size: x-small;">PING 193.0.14.129 (193.0.14.129) 56(84) bytes of data.</span><br /><span style="font-size: x-small;">64 bytes from 193.0.14.129: icmp_req=1 ttl=44 time=309 ms</span><br /><span style="font-size: x-small;">64 bytes from 193.0.14.129: icmp_req=2 ttl=44 time=312 ms</span><br /><span style="font-size: x-small;">64 bytes from 193.0.14.129: icmp_req=3 ttl=44 time=312 ms</span><br /><span style="font-size: x-small;">64 bytes from 193.0.14.129: icmp_req=4 ttl=44 time=312 ms</span><br /><span style="font-size: x-small;">64 bytes from 193.0.14.129: icmp_req=5 ttl=44 time=313 ms</span></p>
<p><span style="font-size: x-small;">&#8212; 193.0.14.129 ping statistics &#8212;</span><br /><span style="font-size: x-small;">5 packets transmitted, 5 received, 0% packet loss, time 4001ms</span><br /><span style="font-size: x-small;">rtt min/avg/max/mdev = 309.687/312.019/313.333/1.289 ms</span></p>
<p>&nbsp;</p>
<h3>Quick NS lookup for .com zone:</h3>
<p><span style="font-size: x-small;">; &lt;&lt;&gt;&gt; DiG 9.7.1-P2 &lt;&lt;&gt;&gt; @193.0.14.129 com. ns</span><br /><span style="font-size: x-small;">; (1 server found)</span><br /><span style="font-size: x-small;">;; global options: +cmd</span><br /><span style="font-size: x-small;">;; Got answer:</span><br /><span style="font-size: x-small;">;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 43721</span><br /><span style="font-size: x-small;">;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 15</span><br /><span style="font-size: x-small;">;; WARNING: recursion requested but not available</span></p>
<p><span style="font-size: x-small;">;; QUESTION SECTION:</span><br /><span style="font-size: x-small;">;com. IN NS</span></p>
<p><span style="font-size: x-small;">;; AUTHORITY SECTION:</span><br /><span style="font-size: x-small;">com. 172800 IN NS a.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS b.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS c.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS d.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS e.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS f.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS g.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS h.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS i.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS j.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS k.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS l.gtld-servers.net.</span><br /><span style="font-size: x-small;">com. 172800 IN NS m.gtld-servers.net.</span></p>
<p><span style="background-color: #ffff00; font-size: x-small;"><strong>;; Query time: 317 msec</strong></span><br /><span style="font-size: x-small;">;; SERVER: 193.0.14.129#53(193.0.14.129)</span><br /><span style="font-size: x-small;">;; WHEN: Tue Jan 10 16:20:11 2012</span><br /><span style="font-size: x-small;">;; MSG SIZE rcvd: 509</span></p>
<p>&nbsp;</p>
<h3>Looking at traceroute:</h3>
<p><span style="font-size: x-small;">traceroute to k.root-servers.net. (193.0.14.129), 30 hops max, 60 byte packets</span></p>
<p><span style="font-size: x-small;"> 1 router.local (192.168.1.1) [AS8151/AS28513] 4.206 ms 5.041 ms 5.892 ms</span><br /><span style="font-size: x-small;"> 2 117.212.40.1 (117.212.40.1) [AS9829] 32.243 ms 33.918 ms 36.122 ms</span><br /><span style="font-size: x-small;"> 3 218.248.173.42 (218.248.173.42) [<span style="background-color: #ffff00;">AS9829</span>] 38.320 ms 42.492 ms 45.021 ms</span><br /><span style="font-size: x-small;"> 4 203.190.136.17 (203.190.136.17) [<span style="background-color: #ffff00;">AS9430</span>] 337.645 ms 346.152 ms 346.837 ms</span><br /><span style="font-size: x-small;"> 5 k.root-servers.net (193.0.14.129) [<span style="background-color: #ffff00;">AS25152</span>] 348.053 ms 349.664 ms 351.468 ms</span></p>
<p>&nbsp;</p>
<p>Issue seems in connectivity between BSNL (AS9829) &amp; AS9439 which belongs to <a href="http://www.stpi.in/index.php?langid=1" target="_blank">Software Technology Parks Of India</a>. Issue seems purely with BSNL and not with other major ISP&#8217;s like <a href="http://www.airtel.in/" target="_blank">Bharti Airtel</a>.</p>
<p>&nbsp;</p>
<h3>Checking K-root from Airtel Delhi node:</h3>
<p><span style="font-size: x-small;">Tue Jan 10 16:34:48 GMT+05:30 2012</span><br /><span style="font-size: x-small;">ping 193.0.14.129</span></p>
<p><span style="font-size: x-small;">Type escape sequence to abort.</span><br /><span style="font-size: x-small;">Sending 5, 100-byte ICMP Echos to 193.0.14.129, timeout is 2 seconds:</span><br /><span style="font-size: x-small;">!!!!!</span><br /><span style="font-size: x-small;">Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms</span><br /><span style="font-size: x-small;">DEL-ISP-MPL-ACC-RTR-9#</span></p>
<p>&nbsp;</p>
<h3>Next, traceroute from Airtel Delhi PoP to K-root:</h3>
<p><span style="font-size: x-small;">Tue Jan 10 16:39:00 GMT+05:30 2012</span><br /><span style="font-size: x-small;">traceroute 193.0.14.129</span></p>
<p><span style="font-size: x-small;">Type escape sequence to abort.</span><br /><span style="font-size: x-small;">Tracing the route to k.root-servers.net (193.0.14.129)</span></p>
<p><span style="font-size: x-small;">1 218.100.48.6 0 msec 4 msec 0 msec</span><br /><span style="font-size: x-small;"> 2 k.root-servers.net (193.0.14.129) [AS 25152] 0 msec 0 msec 0 msec</span><br /><span style="font-size: x-small;">DEL-ISP-MPL-ACC-RTR-9#</span></p>
<p>&nbsp;</p>
<p>All seems pretty good for Airtel. <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<h3>Summary:</h3>
<p>BSNL (AS9829) was earlier routing traffic <strong>directly</strong> to K-root server&#8217;s via RIPE NCC - AS25152 but because of some changes it&#8217;s now using STPI and which seems to be having badly choked port in niXi. BSNL should be using route to 25152:4   (RS-KROOT-DELHI) directly to fix this but I wonder if BSNL Network admins read my blog posts. <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>Btw my Web Designing exam tomorrow at college. Time to get start cramming! <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h4><span style="color: #ff0000;">Update:</span></h4>
<p>17th Jan 2011</p>
<p>Issue seems fixed by now.  Routing now direct skilling STPI.</p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fpoor-performance-of-k-root-server-delhi-node%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/poor-performance-of-k-root-server-delhi-node/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/poor-performance-of-k-root-server-delhi-node/"  data-text="Poor performance of K-root server (Delhi node)" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/poor-performance-of-k-root-server-delhi-node/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/poor-performance-of-k-root-server-delhi-node/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/poor-performance-of-k-root-server-delhi-node/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding IPv6 from IPv4 address of a host</title>
		<link>http://anuragbhatia.com/dns/finding-ipv6-from-ipv4-address-of-a-host/</link>
		<comments>http://anuragbhatia.com/dns/finding-ipv6-from-ipv4-address-of-a-host/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 12:49:31 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=1443</guid>
		<description><![CDATA[One of my friend asked me an interesting question about relating IPv4 with IPv6. His question was: in dual stack setup, if we have IPv4 of a router/host, how can we find IPv6 associated with it? &#160; Well, as far as I know there&#8217;s no direct way to relate IPv4 with IPv6 but there&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<p>One of my friend asked me an interesting question about <strong>relating IPv4 with IPv6</strong>. His question was: <span style="color: #0000ff;"><em>in dual stack setup, if we have IPv4 of a router/host, how can we find IPv6 associated with it?</em></span></p>
<p>&nbsp;</p>
<p>Well, as far as I know there&#8217;s no direct way to relate IPv4 with IPv6 but there&#8217;s a <em>nice trick</em> out. Say e.g we have Google Public DNS operating at IPv4 &#8211; <strong>8.8.8.8</strong>. To find IPv6 address of same server (if it exists at all), we can lookup for reverse DNS to get hostname, </p>
<p>&nbsp;</p>
<p><code></p>
<p>anurag@laptop:~$ dig -x 8.8.8.8 +short<br />google-public-dns-a.google.com.</p>
<p></code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Next, we can lookup for AAAA record associated with that hostname.</p>
<p>&nbsp;</p>
<p><code></p>
<p>anurag@laptop:~$ dig google-public-dns-a.google.com. AAAA +short<br />2001:4860:4860::8888</p>
<p></code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Simple, isn&#8217;t it? <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>This actually works. Here&#8217;s a pure IPv6  DNS lookup:</p>
<p>&nbsp;</p>
<p><code></p>
<p>anurag@server7:~$ dig @2001:4860:4860::8888 he.net aaaa</p>
<p>; &lt;&lt;&gt;&gt; DiG 9.7.1-P2 &lt;&lt;&gt;&gt; @2001:4860:4860::8888 he.net aaaa<br />; (1 server found)<br />;; global options: +cmd<br />;; Got answer:<br />;; -&gt;&gt;HEADER&lt;;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0</p>
<p>;; QUESTION SECTION:<br />;he.net. IN AAAA</p>
<p>;; ANSWER SECTION:<br />he.net. 63215 IN AAAA 2001:470:0:76::2</p>
<p>;; Query time: 35 msec<br />;; SERVER: 2001:4860:4860::8888#53(2001:4860:4860::8888)<br />;; WHEN: Mon Jan 2 17:58:38 2012<br />;; MSG SIZE rcvd: 52</p>
<p></code></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Have a rocking IPv6 year ahead! <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Ffinding-ipv6-from-ipv4-address-of-a-host%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/finding-ipv6-from-ipv4-address-of-a-host/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/finding-ipv6-from-ipv4-address-of-a-host/"  data-text="Finding IPv6 from IPv4 address of a host" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/finding-ipv6-from-ipv4-address-of-a-host/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/finding-ipv6-from-ipv4-address-of-a-host/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/finding-ipv6-from-ipv4-address-of-a-host/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Messed up SPF record of mtsindia.in domain</title>
		<link>http://anuragbhatia.com/dns/messed-up-spf-record-of-mtsindia-in-domain/</link>
		<comments>http://anuragbhatia.com/dns/messed-up-spf-record-of-mtsindia-in-domain/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 07:27:30 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Email Security]]></category>
		<category><![CDATA[MTS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SPF]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=1268</guid>
		<description><![CDATA[Yesterday I called MTS Data Card support but their IVRS system was failing in giving me my balance details. Eventually I decided to email their support and glad to say support email was also easily available on their website. &#160; Today I saw acknowledgement mail in spam. No big deal but I usually dig around [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I called MTS Data Card support but their IVRS system was failing in giving me my balance details. Eventually I decided to email their support and glad to say support email was also easily available on their website.</p>
<p>&nbsp;</p>
<p>Today I saw acknowledgement mail in spam. No big deal but I usually dig around genuine mails which go in spam to find exact cause. In this case I found mail was sent to me from  customercare.del@mtsindia.in and the server which relayed this mail was:</p>
<pre>121.242.69.80 with rDNS pointer - mtsndmx1.mtsindia.in.</pre>
<p>From email headers only one can tell main failure in mail:Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning customercare.del@mtsindia.in does not designate 121.242.69.80 as permitted sender) smtp.mail=customercare.del@mtsindia.in  Thus clearly SPF failure. How?</p>
<p>&nbsp;</p>
<h4>Quick check on TXT record on root domain:</h4>
<p><span style="font-size: x-small;">&#8220;v=spf1 a mx include:elabs5.com ~all&#8221; &#8220;v=spf1 ip4:208.43.252.104 ip4:208.43.252.105 ip4:208.43.252.106 ip4:208.43.252.107 ip4:173.192.233.178/28 ip4:173.193.227.227/27 ~all&#8221;</span></p>
<p>&nbsp;</p>
<h4><span>Here&#8217;s what&#8217;s wrong:</span></h4>
<ol>
<li>Two v=spf1 in SPF isn&#8217;t really good. Very likely most of systems will hit for TXT record and will get any on random and eventually use it ignoring whitelisted IP&#8217;s in other completely.</li>
<li>MTS missed to include 121.242.69.80 the server which is placed on Tata Communications backbone in SPF record. Most of other IP&#8217;s mentioned in their SPF belong to Softlayer datacenter.</li>
</ol>
<div>Hope someone from MTS will find this post and eventually work on fix! <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fmessed-up-spf-record-of-mtsindia-in-domain%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/messed-up-spf-record-of-mtsindia-in-domain/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/messed-up-spf-record-of-mtsindia-in-domain/"  data-text="Messed up SPF record of mtsindia.in domain" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/messed-up-spf-record-of-mtsindia-in-domain/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/messed-up-spf-record-of-mtsindia-in-domain/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/messed-up-spf-record-of-mtsindia-in-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dots in a hostname</title>
		<link>http://anuragbhatia.com/dns/dots-in-a-hostname/</link>
		<comments>http://anuragbhatia.com/dns/dots-in-a-hostname/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 18:54:45 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=1095</guid>
		<description><![CDATA[Yesterday I had a very interesting discussion with our senior administrator. I was configuring reverse DNS records for our /24 block and I decided to use format &#8211; IP.static.domain.com thus if for IP 1.2.3.4, I pointed reverse DNS (PTR) to 1.2.3.4.static.domain.com &#160; When I got chance to show my work to my senior administrator, he [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I had a very interesting discussion with our senior administrator.</p>
<p>I was configuring reverse DNS records for our /24 block and I decided to use format &#8211; IP.static.domain.com</p>
<p>thus if for IP 1.2.3.4, I pointed reverse DNS (PTR) to 1.2.3.4.static.domain.com</p>
<p>&nbsp;</p>
<p>When I got chance to show my work to my senior administrator, he said &#8211; <em>It&#8217;s wrong to use 1.2.3.4.static.domain.com in a hostname. Too many dots will make DNS resolution very slow (forward &#8211; reverse &#8211; again forward). And I should have used 1-2-3-4.static.domain.com</em></p>
<p>&nbsp;</p>
<p><span style="font-size: medium;">A very interesting point (and indeed a confusion!)</span></p>
<p style="text-align: center;"> <img class="aligncenter" title="Confusion" src="http://1.bp.blogspot.com/-9hDauWBo5C0/TdAHGLU9hEI/AAAAAAAAACE/vTROWHdysJ0/s1600/confused.jpg" alt="" width="331" height="363" /></p>
<p>At first instance I was totally stunned myself and was thinking same as he said. He is senior admin and knows over a million more things then me and such feelings usually pushes you in case when you believe in someone without checking on facts.</p>
<p>(<strong><span style="color: #0000ff;">Disclaimer: No offence to my senior admin. He is a very smart person, and a good friend too</span></strong>).</p>
<p>&nbsp;</p>
<p>After a while, I gave it a DEEP thought and discussed with a couple of more friends. I got clear idea about it. </p>
<p>&nbsp;</p>
<p>Let&#8217;s understand how 1.2.3.4.static.domain.com will be resolved. </p>
<p>Here, first of all dns resolver will query com (root) servers for getting NS delegation of domain.com. Now as domain.com will reply with some NS (let&#8217;s call them ns1 &amp; ns2). Next, DNS resolver will query ns1 for 1.2.3.4.static.domain.com and done &#8211; it will get back reply with A record &#8211; 1.2.3.4 (game over!).  :)</p>
<p>Same thing happens even if we use 1-2-3-4.static.domain.com</p>
<p>&nbsp;</p>
<p>So what &#8220;could have&#8221; caused slowdown?</p>
<p>There can be a significant slowdown IF for say in 1.2.3.4.static.domain.com</p>
<p>4.static.domain.com acts as a separate DNS zone rather then acting as nothing (when we create A record for 1.2.3.4.static.domain.com). If 4.static.domain.com has separate NS, and assume 3.4.static.domain.com is a further sub zone defined by some other NS &#8230;the one which are different then parent nameservers.</p>
<p> But in our case 4.static.domain.com or 3.4.static.domain.com or 2.3.4.static.domain.com is just nothing. The only thing was 1.2.3.4.static.domain.com which was simply an A record on parent domain name.</p>
<p>Hence 1.2.3.4.static.domain.com is same as 1-2-3-4.static.domain.com and I assume it&#8217;s rather an issue of convention admins prefer rather then any technical reason behind it.</p>
<p>&nbsp;</p>
<p>Oh and btw I am back at blogging!</p>
<p>&nbsp;</p>
<p><img class="aligncenter" title="I am back" src="http://skullyflower.com/images/comic/20081111SkullyflowerIsBack.gif" alt="" width="254" height="400" /></p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fdots-in-a-hostname%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/dots-in-a-hostname/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/dots-in-a-hostname/"  data-text="Dots in a hostname" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/dots-in-a-hostname/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/dots-in-a-hostname/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/dots-in-a-hostname/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Which DNS resolver is good for you?</title>
		<link>http://anuragbhatia.com/dns/which-dns-resolver-is-good-for-you/</link>
		<comments>http://anuragbhatia.com/dns/which-dns-resolver-is-good-for-you/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 09:03:15 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=757</guid>
		<description><![CDATA[Which DNS resolver is better &#8211; ISP&#8217;s (default) DNS resolver, or Google Public DNS or the pioneer of DNS openDNS or even a local DNS server? Let&#8217;s try to find out! I am sitting on a BSNL data link, and I will try to perform few tests to find that out: Available DNS resolvers to [...]]]></description>
			<content:encoded><![CDATA[<h4>Which DNS resolver is better &#8211; ISP&#8217;s (default) DNS resolver, or Google Public DNS or the pioneer of DNS openDNS or even a local DNS server?</h4>
<p><img class="alignnone" title="Fight" src="http://1.bp.blogspot.com/_pu5A2P22j_Q/S9gJ8dGFMMI/AAAAAAAABJ0/4gyJwaF45Sw/s320/Cartoon+Fight.jpg" alt="" width="320" height="232" /></p>
<p>Let&#8217;s try to find out!</p>
<p>I am sitting on a BSNL data link, and I will try to perform few tests to find that out:</p>
<p>Available DNS resolvers to me:</p>
<ol>
<li>BSNL DNS resolvers &#8211; 218.248.255.194 &amp; 218.248.255.196</li>
<li><a href="http://code.google.com/speed/public-dns/" target="_blank">Google Public DNS</a> &#8211; 8.8.8.8 &amp; 8.8.4.4</li>
<li><a href="http://openDNS.com" target="_blank">OpenDNS</a> &#8211; 208.67.222.222 &amp; 208.67.220.220</li>
<li>Local DNS Server &#8211; <a href="http://en.wikipedia.org/wiki/BIND" target="_blank">BIND</a> running on localhost &#8211; 127.0.0.1</li>
</ol>
<h5>Observing ping time:</h5>
<p><img class="alignnone" title="Ping Time" src="http://www.scoutbase.org.uk/library/clipart/mascots/stopwatch.gif" alt="" width="655" height="440" /></p>
<h6>BSNL DNS resolver:</h6>
<div>&#8212; 218.248.255.194 ping statistics &#8212;</div>
<div id="_mcePaste">5 packets transmitted, 4 received, 20% packet loss, time 4001ms</div>
<div id="_mcePaste">rtt min/avg/max/mdev = 26.978/27.754/29.122/0.897 ms</div>
<p>&#8212; 218.248.255.194 ping statistics &#8212;5 packets transmitted, 4 received, 20% packet loss, time 4001msrtt min/avg/max/mdev = 26.978/<strong>27.754</strong>/29.122/0.897 ms</p>
<h6>Google Public DNS:</h6>
<p>&#8212; 8.8.8.8 ping statistics &#8212;</p>
<p>5 packets transmitted, 5 received, 0% packet loss, time 4001ms</p>
<p>rtt min/avg/max/mdev = 121.147/<strong>121.878</strong>/122.951/0.783 ms</p>
<h6>OpenDNS:</h6>
<div>
<div>&#8212; 208.67.222.222 ping statistics &#8212;</div>
<div>5 packets transmitted, 5 received, 0% packet loss, time 4005ms</div>
<div>rtt min/avg/max/mdev = 217.678/<strong>219.528</strong>/222.034/1.717 ms</div>
</div>
<div>Next, localhost? <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
<div>Pinging local DNS server makes no sense as reply will be in less then 1ms!</div>
<h6>Anyways, so here&#8217;s ping summary:</h6>
<ol>
<li>BSNL &#8211; 28ms</li>
<li>Google Public DNS &#8211; 122ms</li>
<li>OpenDNS &#8211; 220ms</li>
<li>Local DNS server &#8211; N/A</li>
</ol>
<p>Next, we will try asking IP address of popular site facebook.com to all of these.</p>
<p>Here&#8217;s a sample query:</p>
<pre>;; QUESTION SECTION:</pre>
<pre>;facebook.com.<span style="white-space: pre;"> </span>IN<span style="white-space: pre;"> </span>A</pre>
<pre>;; ANSWER SECTION:</pre>
<pre>facebook.com.<span style="white-space: pre;"> </span>1022<span style="white-space: pre;"> </span>IN<span style="white-space: pre;"> </span>A<span style="white-space: pre;"> </span>69.63.189.11</pre>
<pre>facebook.com.<span style="white-space: pre;"> </span>1022<span style="white-space: pre;"> </span>IN<span style="white-space: pre;"> </span>A<span style="white-space: pre;"> </span>69.63.189.16</pre>
<pre>facebook.com.<span style="white-space: pre;"> </span>1022<span style="white-space: pre;"> </span>IN<span style="white-space: pre;"> </span>A<span style="white-space: pre;"> </span>69.63.181.12</pre>
<pre>;; Query time: 28 msec</pre>
<pre>;; SERVER: 218.248.255.194#53(218.248.255.194)</pre>
<pre>;; WHEN: Thu Jan 27 13:44:57 2011</pre>
<pre>;; MSG SIZE  rcvd: 248</pre>
<p>We can see, BSNL resolver passed the IP almost instantly for a popular site. Popular here simply means that resolver must be having the record within it&#8217;s cache as per TTL of the zone.</p>
<h5>Observing resolution time:</h5>
<p>Asking for IP of facebook.com to rest of DNS servers, here&#8217;s summary:</p>
<ol>
<li>BSNL resolver took 28ms</li>
<li>Google Public DNS took  125ms</li>
<li>OpenDNS took 219ms</li>
<li>Localhost took 558ms</li>
</ol>
<p>We see a very big value from local host here. Reason, it had to find the IP via root DNS servers. In my case, this local DNS resolver used &#8211; b.gtld-servers.net (closest) to get Authoritative DNS servers of &#8220;facebook.com&#8221; and next, it asked those DNS servers for the IP of facebook.com</p>
<p>Note: Further anymore queries to facebook.com using local DNS will take almost 0ms for next 1022 seconds as defined in DNS zone of facebook.</p>
<p>So for a popular site &#8211; clearly BSNL DNS resolver is winner based on responce which is 5 times faster then Google Public DNS and almost 10times faster then OpenDNS.</p>
<p>Next, we try to find how much time it takes to resolve a less popular domain &#8211; crazybeam.com</p>
<p>(less popular = no caching of records at resolver)</p>
<h6>Time taken by all resolvers:</h6>
<ol>
<li>BSNL took 223ms</li>
<li>Google Public DNS took 398ms</li>
<li>OpenDNS took 487ms</li>
<li>Local DNS server took  667ms</li>
</ol>
<p>As we can see &#8211; BSNL resolver took quite more time here but still very low. Local DNS resolver took almost same time to resolve a less popular domain as it took to resolve a popular domain &#8211; reasons remains &#8211; no caching.</p>
<p>So finally, here&#8217;s the summary explaining results and recommendation of which resolver to use:</p>
<ol>
<li>Google DNS is better then OpenDNS for India since OpenDNS has no mirrors in India. Closest mirror is Singapore, but actually most of data seems being routed from London. Here&#8217;s a <a href="http://goo.gl/2KCMx" target="_blank">traceroute</a> for reference.</li>
<li>Running a local DNS server is good if you have mid-size organization where you have atleast 1000+ users. This will help in building a decent DNS cache which will servce queries instantly apart from saving bandwidth used for DNS lookups.</li>
<li>Local ISP DNS servers seems very good in initial testing based on very low latency values they give BUT remember &#8211; there&#8217;s a big problem associated with BSNL DNS resolvers &#8211; they do not store most of records till TTL is complete. That is &#8211; they perform very good for cached values as we can see, but they seem discarding cached records well before expiry of TTL. This makes them bit poor in performance as this does not happen with Google or openDNS at all. Hence for popular domains, Google takes ~120ms, while BSNL takes 220ms. OpenDNS remains bit slow for India.</li>
<li>Apart from that, one of other big problems perticularly with BSNL DNS servers is &#8211; they constantly time out thus giving high packet loss, and causing &#8220;Name not found&#8221; errors.</li>
</ol>
<p><img class="alignnone" title="Best one!" src="http://www.doubletheodds.co.uk/images/Number%201.jpg" alt="" width="288" height="230" /></p>
<p>So finally my recommendation &#8211; if you are on Indian ISP network, <strong>it&#8217;s good to use <a href="http://code.google.com/speed/public-dns/" target="_blank">Google Public DNS</a></strong>.</p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fwhich-dns-resolver-is-good-for-you%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/which-dns-resolver-is-good-for-you/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/which-dns-resolver-is-good-for-you/"  data-text="Which DNS resolver is good for you?" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/which-dns-resolver-is-good-for-you/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/which-dns-resolver-is-good-for-you/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/which-dns-resolver-is-good-for-you/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>More about SPF records</title>
		<link>http://anuragbhatia.com/dns/more-about-spf-records-2/</link>
		<comments>http://anuragbhatia.com/dns/more-about-spf-records-2/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 11:03:26 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[Forum]]></category>
		<category><![CDATA[Google Apps]]></category>
		<category><![CDATA[SPF]]></category>
		<category><![CDATA[TXT]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=634</guid>
		<description><![CDATA[Hello all! Few days back I visited Official Google Apps forum (one of my favorite places ) and answered many questions. It was quite after some time i was there and found few cases/questions/problems as really interesting. Here&#8217;s one of the questions asked there by a admin named aol985 about SPF records. His question - [...]]]></description>
			<content:encoded><![CDATA[<h2>Hello all!</h2>
<p>Few days back I visited Official <a href="http://www.google.com/support/forum/p/Google+Apps?hl=en" target="_blank">Google Apps forum</a> (one of my favorite places <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) and answered many questions. It was quite after some time i was there and found few cases/questions/problems as really interesting.</p>
<p>Here&#8217;s one of the questions asked <a href="http://www.google.com/support/forum/p/Google+Apps/thread?fid=750e9c1f2599ec720004705233957154&amp;hl=en">there</a> by a admin named <a href="http://www.google.com/support/forum/p/Google+Apps/user?userid=04599436568714297102&amp;hl=en">aol985</a> about SPF records.</p>
<p><img src="file:///C:/Users/ANURAG%7E1/AppData/Local/Temp/moz-screenshot-1.png" alt="" /></p>
<p style="text-align: center;"><img class="size-thumbnail wp-image-635 aligncenter" title="Question" src="http://anuragbhatia.com/wp-content/uploads/question-mark-150x150.jpg" alt="Question image" width="150" height="150" /></p>
<h2>His question -</h2>
<blockquote><p>As described in http://www.google.com/support/a/bin/answer.py?hl=en&amp;answer=33786 , I set SPF record for mashfilm.ru domain to &#8220;v=spf1 include:aspmx.googlemail.com ~all&#8221;. But aspmx.googlemail.com currently does not resolves. Is it correct?</p></blockquote>
<p>Nice one!</p>
<p>He is right on fact that aspmx.googlemail.com does NOT resolve. Ok why?</p>
<pre>anurag@root]$ dig aspmx.googlemail.com a</pre>
<pre>; &lt;&lt;&gt;&gt; DiG 9.3.4-P1.1 &lt;&lt;&gt;&gt; aspmx.googlemail.com a
;; global options:  printcmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 42050
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0</pre>
<pre>;; QUESTION SECTION:
;aspmx.googlemail.com.          IN      A</pre>
<pre>;; Query time: 100 msec
;; SERVER: 66.33.216.208#53(66.33.216.208)
;; WHEN: Wed Aug  5 02:48:00 2009
;; MSG SIZE  rcvd: 38</pre>
<pre>[anurag@root]$</pre>
<p>Thus <strong>no A record</strong> which means it won&#8217;t resolve, BUT one must remember that a zone can have many records working side by side offering their own feature, like &#8211; MX records can be there with/without A, same with txt records, and few other also.</p>
<p style="text-align: center;"><img class="size-thumbnail wp-image-636 aligncenter" title="Got it" src="http://anuragbhatia.com/wp-content/uploads/git-it-150x150.jpg" alt="Got it" width="150" height="150" /></p>
<p>Now observing the spf record by Google &#8211; &#8220;v=spf1 <em><strong>include:aspmx.googlemail.com</strong></em> ~all&#8221;</p>
<p>here <em><strong>include:aspmx.googlemail.com </strong></em></p>
<p>means to include the spf record of aspmx.googlemail.com which makes sense as:</p>
<pre>[anurag@root]$ dig aspmx.googlemail.com txt</pre>
<pre>; &lt;&lt;&gt;&gt; DiG 9.3.4-P1.1 &lt;&lt;&gt;&gt; aspmx.googlemail.com txt
;; global options:  printcmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 30134
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0</pre>
<pre>;; QUESTION SECTION:
;aspmx.googlemail.com.          IN      TXT</pre>
<pre>;; ANSWER SECTION:
aspmx.googlemail.com.   7178    IN      TXT     "v=spf1 redirect=_spf.google.com"</pre>
<pre>;; Query time: 14 msec
;; SERVER: 66.33.216.208#53(66.33.216.208)
;; WHEN: Wed Aug  5 02:54:02 2009
;; MSG SIZE  rcvd: 82</pre>
<pre>[anurag@root]$</pre>
<p>Now it means spf record for aspmx.googlemail.com is &#8220;v=spf1 redirect=_spf.google.com&#8221;</p>
<p>Now trying to understand _spf.google.com</p>
<p>underscore right in start makes it different from a sub-zone since it can&#8217;t be used as a domain but will still remain a working sub zone in terms of DNS.</p>
<p>So now since it can&#8217;t be used as a  sub domain i.e which can be used to be attached with web server and can supply pages via ftp, there is no meaning of A record for it here.</p>
<p>Checking <strong>txt string </strong>of<strong> _spf.google.com</strong></p>
<pre>[anurag@root]$ dig _spf.google.com txt</pre>
<pre>; &lt;&lt;&gt;&gt; DiG 9.3.4-P1.1 &lt;&lt;&gt;&gt; _spf.google.com txt
;; global options:  printcmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 52983
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0</pre>
<pre>;; QUESTION SECTION:
;_spf.google.com.               IN      TXT</pre>
<pre>;; ANSWER SECTION:
_spf.google.com.        300     IN      TXT     "v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ?all"</pre>
<pre>;; Query time: 29 msec
;; SERVER: 66.33.216.208#53(66.33.216.208)
;; WHEN: Wed Aug  5 02:57:26 2009
;; MSG SIZE  rcvd: 229</pre>
<pre>[anurag@root]$</pre>
<p>And here we got it!</p>
<h2>So much information in just one hostname!</h2>
<p><img class="aligncenter size-thumbnail wp-image-637" title="so much" src="http://anuragbhatia.com/wp-content/uploads/so-much-150x150.jpg" alt="so much" width="150" height="150" /></p>
<p>&#8220;v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ?all&#8221; is a part of SPF record which Google makes its Google Apps users to use.</p>
<p>Thus using</p>
<p>&#8220;v=spf1 include:aspmx.googlemail.com ~all&#8221; in spf tells that &#8220;this domain allows all of the server on this ip range &#8211; <em>ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20</em> as <strong>authorized to send email on behalf of that domain</strong>.</p>
<p><img class="aligncenter size-thumbnail wp-image-638" title="bye" src="http://anuragbhatia.com/wp-content/uploads/bye-150x150.gif" alt="bye" width="150" height="150" /></p>
<p>So that&#8217;s how spf works in this case. <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[ratings] </p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fmore-about-spf-records-2%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/more-about-spf-records-2/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/more-about-spf-records-2/"  data-text="More about SPF records" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/more-about-spf-records-2/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/more-about-spf-records-2/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/more-about-spf-records-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s SRV records</title>
		<link>http://anuragbhatia.com/dns/googles-srv-records/</link>
		<comments>http://anuragbhatia.com/dns/googles-srv-records/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 13:10:01 +0000</pubDate>
		<dc:creator>Anurag Bhatia</dc:creator>
				<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://anuragbhatia.com/?p=245</guid>
		<description><![CDATA[After recieving lots of emails regarding SRV records issue in Google Apps, i finally tried that in myeslf&#8230;&#8230;unfortunately thats true that Google has missing info. about SRV records. As per refering to official Google&#8217;s help here . It has missing info. about the location servers. Here are those missing SRV records&#8230; _xmpp-client._tcp.YOURDOMAIN.TLD. IN SRV 5 [...]]]></description>
			<content:encoded><![CDATA[<p>After recieving lots of emails regarding SRV records issue in Google Apps, i finally tried that in myeslf&#8230;&#8230;unfortunately thats true that Google has missing info. about SRV records.</p>
<p>As per refering to official Google&#8217;s help <a href="http://www.google.com/support/a/bin/answer.py?hl=en&amp;answer=34143" target="_blank">here</a> .</p>
<p>It has missing info. about the location servers.</p>
<p>Here are those missing SRV records&#8230;</p>
<p>_xmpp-client._tcp.YOURDOMAIN.TLD. IN SRV 5 0 5222 talk.l.google.com.</p>
<p>_xmpp-client._tcp.YOURDOMAIN.TLD. IN SRV 20 0 5222 talk1.l.google.com.</p>
<p>_xmpp-client._tcp.YOURDOMAIN.TLD. IN SRV 20 0 5222 talk2.l.google.com.</p>
<p>_xmpp-client._tcp.YOURDOMAIN.TLD. IN SRV 20 0 5222 talk3.l.google.com.</p>
<p>_xmpp-client._tcp.YOURDOMAIN.TLD. IN SRV 20 0 5222 talk4.l.google.com.</p>
<p>so finally saying&#8230;..just forget everything and have these SRV records to get your domain&#8217;s Gtalk working from external IM services&#8230;</p>
<p>I created a public G.docs spreadsheet <a href="http://spreadsheets.google.com/pub?key=pT3tSZLVPdJbqu-llUN-zWw" target="_blank">here</a> for easy viewing.</p>
<p>Feel free to post for any issues&#8230;</p>
<h3>FAQ ON GApps SRV Records</h3>
<p>[faq list Google Apps SRV Records]</p>
<p>[faq ask Google Apps SRV Records]</p>
<p>Hope this will help you out <img src='http://anuragbhatia.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[ratings] </p>
<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fanuragbhatia.com%2Fdns%2Fgoogles-srv-records%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://anuragbhatia.com/dns/googles-srv-records/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://anuragbhatia.com/dns/googles-srv-records/"  data-text="Google&#8217;s SRV records" data-count="horizontal" data-via="anurag_bhatia"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://anuragbhatia.com/dns/googles-srv-records/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://anuragbhatia.com/dns/googles-srv-records/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://anuragbhatia.com/dns/googles-srv-records/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

