<?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>Abhi&#039;s Weblog &#187; DNS</title>
	<atom:link href="http://abhinavsingh.com/blog/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://abhinavsingh.com/blog</link>
	<description>PHP, Memcached, XMPP and Web Development</description>
	<lastBuildDate>Wed, 06 Apr 2011 22:19:11 +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>New Year, New Server and a New Theme</title>
		<link>http://abhinavsingh.com/blog/2009/01/new-year-new-server-and-a-new-theme/</link>
		<comments>http://abhinavsingh.com/blog/2009/01/new-year-new-server-and-a-new-theme/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 21:56:51 +0000</pubDate>
		<dc:creator>Abhinav Singh</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Godaddy]]></category>
		<category><![CDATA[Jhantu]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://abhinavsingh.com/blog/?p=93</guid>
		<description><![CDATA[Hello Everyone, I wish I could have finished this task by 1st January, but nevertheless it&#8217;s finally done. Finally I have a new self designed wordpress theme named &#8220;Jhantu&#8221;. Also I have moved my blog from a shared hosting to my VPS due to increasing traffic. Transition from one server to another is always painful. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fabhinavsingh.com%2Fblog%2F2009%2F01%2Fnew-year-new-server-and-a-new-theme%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fabhinavsingh.com%2Fblog%2F2009%2F01%2Fnew-year-new-server-and-a-new-theme%2F&amp;source=imoracle&amp;style=normal&amp;service=bit.ly&amp;service_api=R_f027b5a79a20a49b713f16282f1e0857&amp;hashtags=DNS,Godaddy,Jhantu,VPS&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Hello Everyone,</p>
<p>I wish I could have finished this task by 1st January, but nevertheless it&#8217;s finally done. Finally I have a new self designed wordpress theme named &#8220;Jhantu&#8221;. Also I have moved my blog from a shared hosting to my VPS due to increasing traffic.</p>
<p>Transition from one server to another is always painful. Here are the steps which I followed to make my server move smooth:</p>
<ul>
<li>I took a dump of my blog last week and started developing new theme locally on my windows system</li>
<li>Yesterday before moving to VPS, I took the latest dump of wordpress blog (click export and download the xml file which guarantees for a smooth move)</li>
<li>However the <strong>database restoration wasn&#8217;t smooth</strong>. I found <a href="http://abhinavsingh.com/blog/2009/01/behind-the-scenes-how-and-what-xmls-are-exchanged-by-jaxl/" target="_blank">one of my previously published blog</a> has been imported as a draft with no content inside and all comments lost. WTF</li>
<li>I had to republish it by extracting the blog content from the downloaded xml (If you are planning to move your blog, check out)</li>
<li>Then I changed the DNS settings in Godaddy, so that my domain now points to my VPS (something <a target="_blank" href="http://abhinavsingh.com/blog/2008/11/what-happens-before-you-finally-viewed-this-page/">I discussed here</a> before)</li>
<li>However it takes sometime before this new lookup (domain name => IP Address) is propagated worldwide. Infact even though you change the settings at Godaddy, you might continue seeing your old blog</li>
<li>I did 3 things, so that I can atleast setup the blog. <strong>Cleared browser cache</strong>, flushed my DNS lookups (run <em><strong>ipconfig /flushdns</strong></em> on command line), went to <strong>C:\WINDOWS\system32\drivers\etc\hosts</strong> and made a new entry which reads: 74.86.123.245 abhinavsingh.com</li>
<li>This last entry will force your system to lookup at 74.86.123.245 for abhinavsingh.com</li>
</ul>
<p>I guess these steps might help you if ever you plan to take the pain of server move.</p>
<p>Finally a bit about plugin&#8217;s powering <strong><em>&#8220;Jhantu&#8221;</em></strong>:</p>
<ul>
<li><a target="_blank" href="http://akismet.com">Akismet</a> as always is guarding and saving us from spam</li>
<li><a href="http://abhinavsingh.com/blog/2009/02/wordpress-toolbar-plugin/">WP-Toolbar</a> , a custom made plugin for showing a toolbar for outgoing links from my blogpost</li>
<li><a target="_blank" href="http://abhinavsingh.com/blog/2009/01/new-year-new-server-and-a-new-theme">My Adsense Manager</a> a self written plug-in to embed adsense codes in between the blog posts. Will open source after some testing</li>
<li><a target="_blank" href="http://abhinavsingh.com/blog/2009/01/new-year-new-server-and-a-new-theme">Show your stats</a> , yet another custom plugin to display my weekly stats on right tabs. Data derived from wordpress stats database using a cron job.</li>
<li><a target="_blank" href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All in one SEO Pack</a>, which automatically generates meta description and keyword for each blog post</li>
<li>With increasing number of visitors from european and south american citizens, I decided to have a language translator. Thanks to <a target="_blank" href="http://www.nothing2hide.net/wp-plugins/wordpress-global-translator-plugin/">Global Translator</a> for providing such an excellent plugin for translation</li>
<li><a target="_blank" href="http://www.arnebrachhold.de/redir/sitemap-home/">Google XML Sitemaps</a> plugin for generating instant sitemaps as soon as I publish a new post</li>
<li>Thanks to <a target="_blank" href="http://mk.netgenes.org/my-plugins/mcecomments/">MCEComments</a> which will now allow you to format your comments <img src='http://abhinavsingh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><a target="_blank" href="http://yoast.com/wordpress/sociable/">Sociable</a>, which you will be using the most to share, print and email these posts if required. However I have customized it to also display tinyurl for the blog post and the RSS/Mail subscription links.</li>
<li><a target="_blank" href="http://txfx.net/code/wordpress/subscribe-to-comments/">Subscribe To Comments</a> will help you to keep upto date with an ongoing discussion</li>
<li><a target="_blank" href="http://blog.jodies.de/archiv/2004/11/13/recent-comments/">Get Recent Comments</a> for keeping you in the know of latest discussions</li>
<li><a target="_blank" href="http://fairyfish.net/2007/09/12/wordpress-23-related-posts-plugin/">WordPress Related Posts</a> for feeding you with something similar to your taste <img src='http://abhinavsingh.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li><a target="_blank" href="http://lesterchan.net/portfolio/programming/php/">WP-PageNavi</a> for showing pagination instead of plain previous and next blog links</li>
<li><a target="_blank" href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache</a> to handle increasing traffic</li>
<li><a target="_blank" href="http://code.google.com/p/syntaxhighlighter/">Syntax Highlighter</a> making it easy for you to read through my code snippets</li>
<li>Finally <a href="http://fairyfish.net/2007/09/12/wordpress-23-related-posts-plugin/">WordPress.com Stats</a> to keep a track of incoming traffic <img src='http://abhinavsingh.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>In future <strong>&#8220;Jhantu&#8221;</strong> will be made open source, so that you can run your blog using it. Do let me know your feedbacks about the new theme inspired from Google Code.</p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/api.tweetmeme.com\/share?url=http%3A%2F%2Fabhinavsingh.com%2Fblog%2F2009%2F01%2Fnew-year-new-server-and-a-new-theme%2F","http:\/\/akismet.com","http:\/\/wordpress.org\/extend\/plugins\/all-in-one-seo-pack\/","http:\/\/www.nothing2hide.net\/wp-plugins\/wordpress-global-translator-plugin\/","http:\/\/www.arnebrachhold.de\/redir\/sitemap-home\/","http:\/\/mk.netgenes.org\/my-plugins\/mcecomments\/","http:\/\/yoast.com\/wordpress\/sociable\/","http:\/\/txfx.net\/code\/wordpress\/subscribe-to-comments\/","http:\/\/blog.jodies.de\/archiv\/2004\/11\/13\/recent-comments\/","http:\/\/fairyfish.net\/2007\/09\/12\/wordpress-23-related-posts-plugin\/","http:\/\/lesterchan.net\/portfolio\/programming\/php\/","http:\/\/mnm.uib.es\/gallir\/wp-cache-2\/","http:\/\/code.google.com\/p\/syntaxhighlighter\/","http:\/\/fairyfish.net\/2007\/09\/12\/wordpress-23-related-posts-plugin\/"];var wordpress_toolbar_url = "http://abhinavsingh.com/blog/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "oinw";var wordpress_toolbar_hash = "aHR0cDovL2FiaGluYXZzaW5naC5jb20vYmxvZy8yMDA5LzAxL25ldy15ZWFyLW5ldy1zZXJ2ZXItYW5kLWEtbmV3LXRoZW1lLzx3cHRiPk5ldyBZZWFyLCBOZXcgU2VydmVyIGFuZCBhIE5ldyBUaGVtZTx3cHRiPmh0dHA6Ly9hYmhpbmF2c2luZ2guY29tL2Jsb2c8d3B0Yj5BYmhpJiMwMzk7cyBXZWJsb2c%3D";</script><ul class="related_post"><li><a href="http://abhinavsingh.com/blog/2008/11/what-happens-before-you-finally-viewed-this-page/" title="What happens before you finally viewed this page?">What happens before you finally viewed this page?</a> (7)</li><li><a href="http://abhinavsingh.com/blog/2008/07/how-to-get-started-with-web-development/" title="How to get started with web development?">How to get started with web development?</a> (9)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://abhinavsingh.com/blog/2009/01/new-year-new-server-and-a-new-theme/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>What happens before you finally viewed this page?</title>
		<link>http://abhinavsingh.com/blog/2008/11/what-happens-before-you-finally-viewed-this-page/</link>
		<comments>http://abhinavsingh.com/blog/2008/11/what-happens-before-you-finally-viewed-this-page/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 14:57:37 +0000</pubDate>
		<dc:creator>Abhinav Singh</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ARecord]]></category>
		<category><![CDATA[CNAME]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Godaddy]]></category>
		<category><![CDATA[Google Apps]]></category>
		<category><![CDATA[Gtalkbots]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://abhinavsingh.com/blog/2008/11/what-happens-before-you-finally-viewed-this-page/</guid>
		<description><![CDATA[Since past 1 week or so I am trying to make a small tiny light weight web server of my own, and for the same I have been referring to dozens of papers, websites, people and what not. I still haven&#8217;t finished making one, I am still toggling between Java and Python, since both seems [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fabhinavsingh.com%2Fblog%2F2008%2F11%2Fwhat-happens-before-you-finally-viewed-this-page%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fabhinavsingh.com%2Fblog%2F2008%2F11%2Fwhat-happens-before-you-finally-viewed-this-page%2F&amp;source=imoracle&amp;style=normal&amp;service=bit.ly&amp;service_api=R_f027b5a79a20a49b713f16282f1e0857&amp;hashtags=ARecord,CNAME,DNS,Godaddy,Google+Apps,Gtalkbots,VPS&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Since past 1 week or so I am trying to make a small tiny light weight web server of my own, and for the same I have been referring to dozens of papers, websites, people and what not. I still haven&#8217;t finished making one, I am still toggling between Java and Python, since both seems to satisfy my needs and unfortunately I am master in none. While I was digging deep into the theory of how can I make a web server, I cleared many other concepts of mine, which finally leads to this post.</p>
<p><span style="font-weight: bold;">&#8220;What happens before you finally viewed this page/post of mine ?&#8221;</span> &#8211; Many of you might know behind the scene stories and many like me might have a vague idea. But for the good of all those who don&#8217;t know and for people like me who needs a reference, I thought of better penning it down.</p>
<p>Lets see what possibly is going in the background:</p>
<ol>
<li>Suppose you type in <a href="http://www.yahoo.com">http://www.yahoo.com</a> in your web browser or clicked this link on some other page.</li>
<li>Your browser see&#8217;s the above URL, and identifies it as a HTTP protocol.</li>
<li>Then it breaks the URL into <span style="font-weight: bold;">Protocol, Domain Name, File Name </span>(in above case no file name is specified)</li>
<li>Browser contacts its default <span style="font-weight: bold;">DNS</span> (Domain Name Server), which helps it with an IP Address. DNS is a huge distributed database which contains mapping of URL&#8217;s to IP Address. Your browser&#8217;s default DNS might or might not have the required mapping of URL to IPAddress.</li>
<li>If it don&#8217;t have the IPAddress corresponding to http://www.yahoo.com , it will try to contact other <span style="font-weight: bold;">root name servers</span> for the required IPAddress.</li>
<li>If it already have the IPAddress corresponding to http://www.yahoo.com (which is possible if a similar request has already been made recently) it will provide the required IPAddress to your browser.</li>
</ol>
<p>And finally your browser then connects to the IPAddress it received and servers you the page returned back by Yahoo!. If you are still not clear about the process, following practical example might help you.</p>
<p><img style="border: 1px solid #444444; padding: 5px;" src="http://abhinavsingh.com/library/images/DNS.gif" alt="" /></p>
<ol>
<li>I thought of starting a website and decided to name it as <a href="http://gtalkbots.com">http://gtalkbots.com</a></li>
<li>Firstly, I needed to register domain name with a registrant. For e.g. In my case I blocked the domain name gtalkbots.com with<a href="http://godaddy.com"> godaddy.com</a>.</li>
<li>Secondly, I needed to have a machine i.e. a place where I can have all my HTML, PHP files. So I bought a VPS (Virtual Private Server)</li>
<li>Thirdly, I had to link the above two i.e. when someone types in http://gtalkbots.com in his browser, it should come to my VPS where I have my HTML files.</li>
<li>For linking the domain name and my VPS, I simply make an <span style="font-weight: bold;">ARecord</span> entry at godaddy, telling it the IPAddress of my VPS. In turn when you type in http://gtalkbots.com in your browser, GoDaddy redirects you to my VPS. (Google for ARecord and CNAME for more details)</li>
<li>Last 4 entries in the image above are for linking my gtalkbots.com domain with my <a href="http://google.com/a">google apps</a> account, so that I can send and receive my gtalkbots.com email on google apps.</li>
</ol>
<p>There is a lot more to it, however the info above is more than sufficient to understand the basics of<br />
<span style="font-weight: bold;">&#8220;What happens before you finally viewed this page/post of mine ?&#8221;</span></p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/api.tweetmeme.com\/share?url=http%3A%2F%2Fabhinavsingh.com%2Fblog%2F2008%2F11%2Fwhat-happens-before-you-finally-viewed-this-page%2F","http:\/\/www.yahoo.com","http:\/\/gtalkbots.com","http:\/\/godaddy.com","http:\/\/google.com\/a"];var wordpress_toolbar_url = "http://abhinavsingh.com/blog/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "oinw";var wordpress_toolbar_hash = "aHR0cDovL2FiaGluYXZzaW5naC5jb20vYmxvZy8yMDA4LzExL3doYXQtaGFwcGVucy1iZWZvcmUteW91LWZpbmFsbHktdmlld2VkLXRoaXMtcGFnZS88d3B0Yj5XaGF0IGhhcHBlbnMgYmVmb3JlIHlvdSBmaW5hbGx5IHZpZXdlZCB0aGlzIHBhZ2U%2FPHdwdGI%2BaHR0cDovL2FiaGluYXZzaW5naC5jb20vYmxvZzx3cHRiPkFiaGkmIzAzOTtzIFdlYmxvZw%3D%3D";</script><ul class="related_post"><li><a href="http://abhinavsingh.com/blog/2009/01/new-year-new-server-and-a-new-theme/" title="New Year, New Server and a New Theme">New Year, New Server and a New Theme</a> (14)</li><li><a href="http://abhinavsingh.com/blog/2010/01/get-lyrics-for-any-song-using-xmpp-and-php-right-into-your-im-add-lyricsflygtalkbots-com/" title="Get lyrics for any song using XMPP and PHP right into your IM &#8211; Add lyricsfly@gtalkbots.com">Get lyrics for any song using XMPP and PHP right into your IM &#8211; Add lyricsfly@gtalkbots.com</a> (17)</li><li><a href="http://abhinavsingh.com/blog/2009/05/how-to-broadcast-a-message-to-your-gtalk-friends-using-jaxl/" title="How to broadcast a message to your Gtalk friends using JAXL?">How to broadcast a message to your Gtalk friends using JAXL?</a> (13)</li><li><a href="http://abhinavsingh.com/blog/2009/01/how-to-get-dzone-feeds-as-im-using-jaxl-add-dzonegtalkbotscom/" title="How to get dzone feeds as IM using JAXL? Add dzone@gtalkbots.com">How to get dzone feeds as IM using JAXL? Add dzone@gtalkbots.com</a> (8)</li><li><a href="http://abhinavsingh.com/blog/2009/01/introducing-jaxl-open-source-jabber-xmpp-library/" title="Introducing JAXL &#8211; Open Source Jabber XMPP Library">Introducing JAXL &#8211; Open Source Jabber XMPP Library</a> (92)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://abhinavsingh.com/blog/2008/11/what-happens-before-you-finally-viewed-this-page/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

