<?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>RedHatVN Network &#187; DNS</title>
	<atom:link href="http://redhatvn.net/tag/dns/feed" rel="self" type="application/rss+xml" />
	<link>http://redhatvn.net</link>
	<description>Shared Linux problems</description>
	<lastBuildDate>Mon, 31 Oct 2011 07:10:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installation Of BIND As A Secondary (Slave) DNS Server On CentOS</title>
		<link>http://redhatvn.net/installation-of-bind-as-a-secondary-slave-dns-server-on-centos</link>
		<comments>http://redhatvn.net/installation-of-bind-as-a-secondary-slave-dns-server-on-centos#comments</comments>
		<pubDate>Wed, 07 Apr 2010 07:40:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=1140</guid>
		<description><![CDATA[After we have installed BIND as a master DNS server (NS1), we can now try to set up a secondary DNS server (NS2) with BIND on CentOS. NS2 acts as a backup if there are problems with NS1. Make sure you&#8217;ve successfully set up NS1, as described in my previous post! NS1 with IP 192.168.0.1 [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/installation-of-bind-as-a-secondary-slave-dns-server-on-centos"></g:plusone></div><p>After we have installed BIND as a master DNS server (NS1), we can now try to set up a secondary DNS server (NS2) with  BIND on CentOS. NS2 acts as a backup if there are problems with NS1.<br />
<span id="more-1140"></span><br />
Make sure you&#8217;ve successfully set up NS1, as  described in my previous post!</p>
<p>NS1 with IP 192.168.0.1<br />
NS2 with IP     192.168.0.2<br />
Our domain: yourdomain.com</p>
<p>Now we can try setting up NS2.</p>
<h3>1.  Check your Bind package</h3>
<p><code>[root@server ~]# rpm -qa bind*</code></p>
<blockquote><p>bind-libs-9.2.4-2</p>
<p>bind-utils-9.2.4-2</p>
<p>bind-9.2.4-2
</p></blockquote>
<h3>2. Setting file /etc/resolv.conf</h3>
<p><code>[root@server ~]# nano /etc/resolv.conf</code></p>
<blockquote><p>nameserver 192.168.0.1</p></blockquote>
<h3>3. Setting file /etc/named.conf</h3>
<p><code>[root@server ~]# nano /etc/named.conf</code></p>
<blockquote><p>
//<br />
// named.conf for Red Hat caching-nameserver<br />
//</p>
<p>options {<br />
directory &#8220;/var/named&#8221;;<br />
dump-file &#8220;/var/named/data/cache_dump.db&#8221;;<br />
statistics-file &#8220;/var/named/data/named_stats.txt&#8221;;</p>
<p>/*<br />
* If there is a firewall between you and nameservers you want<br />
* to talk to, you might need to uncomment the query-source<br />
* directive below. Previous versions of BIND always asked<br />
* questions using port 53, but BIND 8.1 uses an unprivileged<br />
* port by default.<br />
*/</p>
<p>// query-source address * port 53;<br />
allow-transfer {208.99.198.184/32;};<br />
};</p>
<p>//<br />
// a caching only nameserver config<br />
//</p>
<p>controls {<br />
inet 127.0.0.1 allow { localhost; } keys { rndckey; };<br />
};</p>
<p>zone &#8220;localhost&#8221; IN {<br />
type master;<br />
file &#8220;localhost.zone&#8221;;<br />
allow-update { none; };<br />
};</p>
<p>zone &#8220;yourdomain.com&#8221; IN {<br />
type slave;<br />
file &#8220;/var/named/yourdomain.com.zone&#8221;;<br />
// allow-update { none; };<br />
allow-transfer { 192.168.0.1/32; };<br />
masters { 192.168.0.1; };<br />
};</p>
<p>zone &#8220;0.168.192.in-addr.arpa&#8221; IN {<br />
type slave;<br />
file &#8220;/var/named/0.168.192.rev&#8221;;<br />
// allow-update { none; };<br />
allow-transfer { 192.168.0.1/32; };<br />
masters { 192.168.0.1; };<br />
};</p>
<p>include &#8220;/etc/rndc.key&#8221;;
</p></blockquote>
<h3>4. Change permission of the directory /var/named</h3>
<p><code>[root@server ~]# chmod 777 -Rvf /var/named/</code></p>
<p>mode of `/var/named/’ changed to 0777 (rwxrwxrwx)</p>
<p>mode of `/var/named/named.zero’ changed to 0777  (rwxrwxrwx)</p>
<p>mode of `/var/named/localhost.zone’ changed to 0777  (rwxrwxrwx)</p>
<p>mode of `/var/named/data’ changed to 0777 (rwxrwxrwx)</p>
<p>mode of `/var/named/named.local’ changed to 0777  (rwxrwxrwx)</p>
<p>mode of `/var/named/named.ca’ changed to 0777  (rwxrwxrwx)</p>
<p>mode of `/var/named/named.ip6.local’ changed to 0777  (rwxrwxrwx)</p>
<p>mode of `/var/named/localdomain.zone’ changed to 0777 (rwxrwxrwx)</p>
<p>mode of `/var/named/named.broadcast’ changed to 0777  (rwxrwxrwx)</p>
<p>mode of `/var/named/slaves’ changed to 0777  (rwxrwxrwx)</p>
<h3>5. The files /var/named/yourdomain.com and /var/named/0.168.192.rev will automatically be copied to NS2.</h3>
<h3>6.     Running service named</h3>
<p><code>[root@server ~]# service named restart</code></p>
<blockquote><p>Stopping named: [ OK ]</p>
<p>Starting named: [ OK ]</p></blockquote>
<h3>7. And check in log file what’s the matter???</h3>
<p><code>[root@server ~]# tail /var/log/messages</code></p>
<blockquote><p>Aug 3 04:25:42 server named[9362]: listening on IPv4 interface venet0:0, 192.168.0.2#53<br />
Aug 3 04:25:42 server named[9362]: command channel listening on 127.0.0.1#953<br />
Aug 3 04:25:42 server named[9362]: zone localhost/IN: loaded serial 42<br />
Aug 3 04:25:42 server named[9362]: running<br />
Aug 3 04:25:42 server named[9362]: zone yourdomain.com/IN: transferred serial 100<br />
Aug 3 04:25:42 server named[9362]: transfer of ‘yourdomain.com/IN’ from 192.168.0.1#53: end of transfer<br />
Aug 3 04:25:42 server named[9362]: zone yourdomain.com/IN: sending notifies (serial 100)<br />
Aug 3 04:25:43 server named[9362]: zone 0.168.192.in-addr.arpa/IN: transferred serial 100<br />
Aug 3 04:25:43 server named[9362]: transfer of ‘0.168.192.in-addr.arpa/IN’ from 192.168.0.1#53: end of transfer<br />
Aug 3 04:25:43 server named[9362]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 100)
</p></blockquote>
<p>Looking at this log, you can see that the yourdomain.com zone gets  transferred. Actually this file is copied to NS2 so, if NS1 is dead or has a problem, NS2 has a  backup configuration.</p>
<h3>8. Result using nslookup</h3>
<p><code>[root@server ~]# nslookup yourdomain.com</code></p>
<blockquote><p>Server: 192.168.0.1</p>
<p>Address: 192.168.0.1#53</p>
<p>Name: yourdomain.com</p>
<p>Address: 192.168.0.1
</p></blockquote>
<p>answered from nslookup used server from NS1 with IP 192.168.0.1</p>
<p>Now we can try to deactivate NS1 to see if name resolution is still  working.</p>
<h3>9. First adding nameserver 192.168.0.2</h3>
<p><code>[root@server ~]# cat /etc/resolv.conf</code></p>
<blockquote><p>nameserver 192.168.0.1</p>
<p>nameserver 192.168.0.2</p></blockquote>
<p>This domain is using NS2 because NS1 is not active. We don&#8217;t need to change any files on NS2 because all  zone files are transferred from NS1 to NS2.</p>
<h3>10. Trying a DNS lookup while NS1 is down</h3>
<p><code>[root@server ~]# nslookup yourdomain.com</code></p>
<blockquote><p>Server: 192.168.0.2</p>
<p>Address: 192.168.0.2#53</p>
<p>Name: yourdomain.com</p>
<p>Address: 192.168.0.1
</p></blockquote>
<p>Now if there&#8217;s any problem with NS1 you can rest calm because NS2  acts as a backup.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/installation-of-bind-as-a-secondary-slave-dns-server-on-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Public DNS</title>
		<link>http://redhatvn.net/google-public-dns</link>
		<comments>http://redhatvn.net/google-public-dns#comments</comments>
		<pubDate>Fri, 04 Dec 2009 01:44:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MAC OS]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=755</guid>
		<description><![CDATA[Google Public DNS is a free, global Domain Name System (DNS) resolution service, that you can use as an alternative to your current DNS provider. To try it out: Configure your network settings to use the IP addresses 8.8.8.8 and 8.8.4.4 as your DNS servers If you decide to try Google Public DNS, your client programs [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/google-public-dns"></g:plusone></div><p>Google Public DNS is a free, global <a href="http://en.wikipedia.org/wiki/Domain_name_system">Domain Name System</a> (DNS) resolution service, that you can use as an alternative to your current DNS provider.</p>
<p>To try it out:</p>
<p>Configure your network settings to use the IP addresses 8.8.8.8  	and 8.8.4.4 as your DNS servers<br />
If you decide to try Google Public DNS, your client programs will perform all DNS lookups using Google Public DNS.<br />
<span id="more-755"></span></p>
<h3><span style="color: #008080;">Changing your DNS servers settings</span></h3>
<h4><span style="color: #ff0000;">Microsoft Windows</span></h4>
<p>DNS settings are specified in the <strong>TCP/IP Properties</strong> window for the selected network connection.</p>
<p><strong>Example: Changing DNS server settings on Microsoft Windows Vista</strong></p>
<ol>
<li>Go the <strong>Control Panel</strong>.</li>
<li>Click <strong>Network and Internet</strong>, then <strong>Network and Sharing Center</strong>, then <strong>Manage network connections</strong>.</li>
<li>Select the connection for which you want to configure Google Public DNS. For example:
<ul>
<li>To change the settings for an Ethernet connection, right-click <strong>Local Area Connection</strong>, and click <strong>Properties</strong>.</li>
<li>To change the settings for a wireless connection, right-click<strong> Wireless Network Connection</strong>, and click <strong>Properties</strong>.</li>
</ul>
<p>If you are prompted for an administrator password or confirmation, type the password or provide confirmation.</li>
<li>Select the <strong>Networking</strong> tab. Under <strong>This connection uses the following items</strong>, click <strong>Internet Protocol Version 4 (TCP/IPv4)</strong>, and then click <strong>Properties</strong>.</li>
<li>Click <strong>Advanced</strong> and select the <strong>DNS</strong> tab. If there are any DNS server IP addresses listed there, write them down for future reference, and remove them from this window.</li>
<li>Click <strong>OK</strong>.</li>
<li>Select <strong>Use the following DNS server addresses</strong>. If there are any IP addresses listed in the <strong>Preferred DNS server</strong> or <strong>Alternate DNS server</strong>, write them down for future reference.</li>
<li>Replace those addresses with the IP addresses of the Google DNS  servers: 8.8.8.8 and 8.8.4.4.</li>
<li>Restart the connection you selected in step 3.</li>
<li>Test that your setup is working correctly.</li>
<li>Repeat the procedure for additional network connections you want to change.</li>
</ol>
<h4><span style="color: #ff0000;">Mac OS X</span></h4>
<p>DNS settings are specified in the <strong>Network</strong> window.</p>
<p><strong>Example: Changing DNS server settings on Mac OS 10.5</strong></p>
<ol>
<li>From the <strong>Apple</strong> menu, click <strong>System Preferences</strong>, then click <strong>Network</strong>. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.</li>
<li>Select the connection for which you want to configure Google Public DNS. For example:
<ul>
<li>To change the settings for an Ethernet connection, select <strong>Built-In Ethernet</strong>, and click <strong>Advanced</strong>.</li>
<li>To change the settings for a wireless connection, select <strong>Airport</strong>, and click <strong>Advanced</strong>.</li>
</ul>
</li>
<li>Select the <strong>DNS</strong> tab.</li>
<li>Click + to replace any listed addresses with, or add, the Google IP  addresses at the top of the list: 8.8.8.8 and 8.8.4.4.</li>
<li>Click <strong>Apply</strong> and <strong>OK</strong>.</li>
<li>Test that your setup is working correctly.</li>
<li>Repeat the procedure for additional network connections you want to change.</li>
</ol>
<h4><span style="color: #ff0000;">Linux</span></h4>
<p>DNS settings are specified in /etc/resolv.conf in most distributions.</p>
<p><strong>Example: Changing DNS server settings on Ubuntu</strong></p>
<ol>
<li>Edit /etc/resolv.conf:<br />
<blockquote><p><code>sudo vi /etc/resolv.conf</code></p></blockquote>
</li>
<li>If any <code>nameserver</code> lines appear, write down the IP addresses for future reference.</li>
<li>Replace the <code>nameserver</code> lines with, or add, the following lines:<br />
<blockquote><p>nameserver 8.8.8.8<br />
nameserver 8.8.4.4</p></blockquote>
</li>
<li>Save and exit.</li>
<li>Restart any Internet clients you are using.</li>
<li>Test that your setup is working correctly.</li>
</ol>
<p>If you are using DHCP client software that overwrites the settings in /etc/resolv.conf, you will need to set up the client accordingly by editing the client&#8217;s configuration file.</p>
<p><strong>Example: Configuring DHCP client sofware on Ubuntu</strong></p>
<ol>
<li>Back up /etc/resolv.conf:<br />
<blockquote><p><code>sudo cp /etc/resolv.conf /etc/resolv.conf.auto</code></p></blockquote>
</li>
<li>Edit /etc/dhcp3/dhcpclient.conf:<br />
<blockquote><p><code>sudo vi /etc/dhcp3/dhcpclient.conf</code></p></blockquote>
</li>
<li>If there is a line containing <code>domain-name-servers</code>, write down the IP addresses for future reference.</li>
<li>Replace that line with, or add, the following line:<br />
<blockquote><p><code>prepend domain-name-servers 8.8.8.8, 8.8.4.4;</code></p></blockquote>
</li>
<li>Save and exit.</li>
<li>Restart any Internet clients you are using.</li>
<li>Test that your setup is working correctly.</li>
</ol>
<h4><span style="color: #ff0000;">Routers</span></h4>
<p>Every router uses a different user interface for configuring DNS server settings; we provide only a generic procedure below. For more information, please consult your router documentation.</p>
<p><strong>Note:</strong> Some ISPs hard-code their DNS servers into the equipment they provide; if you are using such a device, you will not be able to configure it to use Google Public DNS. Instead, you can configure each of the computers connected to the router, as described above.</p>
<p>To change your settings on a router:</p>
<ol>
<li>In your browser, enter the IP address to access the router&#8217;s administration console.</li>
<li>When prompted, enter the password to access network settings.</li>
<li>Find the screen in which DNS server settings are specified.</li>
<li>If there are IP addresses specified in the fields for the primary and seconday DNS servers, write them down for future reference.</li>
<li>Replace those addresses with Google IP addresses: 8.8.8.8 and 8.8.4.4.</li>
<li>Save and exit.</li>
<li>Restart your browser.</li>
<li>Test that your setup is working correctly.</li>
</ol>
<h4><span style="color: #ff0000;">Mobile or other devices</span></h4>
<p>DNS servers are typically specified under advanced wi-fi settings. However, as every mobile device uses a different user interface for configuring DNS server settings, we provide only a generic procedure below. For more information, please consult your mobile provider&#8217;s documentation.</p>
<p>To change your settings on a mobile device:</p>
<ol>
<li>Go to the screen in which wi-fi settings are specified.</li>
<li>Find the screen in which DNS server settings are specified.</li>
<li>If there are IP addresses specified in the fields for the primary and seconday DNS servers, write them down for future reference.</li>
<li>Replace those addresses with Google IP addresses: 8.8.8.8 and 8.8.4.4.</li>
<li>Save and exit.</li>
<li>Test that your setup is working correctly.</li>
</ol>
<h2 id="testing"><span style="color: #008080;">Testing your new settings</span></h2>
<p>To test that the Google DNS resolver is working:</p>
<ol>
<li>From your browser, type in a hostname, such as http://www.google.com. If it resolves correctly, bookmark the page, and try accessing the page from the bookmark. If both of these tests work, everything is working correctly. If not, go to step 2.</li>
<li>From your browser, type in a fixed IP address. You can use http://18.62.1.6/ (which points to the website http://eecs.mit.edu/) as the URL*. If this works correctly, bookmark the page, and try accessing the page from the bookmark. If these tests work (but step 1 fails), then there is a problem with your DNS configuration; check the steps above to make sure you have configured everything correctly. If these tests do not work, go to step 3.</li>
<li>Roll back the DNS changes you made and run the  tests again. If the tests still do not work, then there is a problem with your network settings; contact your ISP or network administrator for assistance.</li>
</ol>
<p><em>* Google thanks MIT for granting permission to use this URL for the purposes of testing web connectivity.</em></p>
<h2><span style="color: #008080;">Switching back to your old DNS settings</span></h2>
<p>If you had not previously configured any customized DNS servers, to switch back to your old settings, in the window in which you specified the Google IP addresses, select the option to enable obtaining DNS server addresses automatically, and/or delete the Google IP addresses. This will revert your settings to using your ISP&#8217;s default servers.</p>
<p>If you need to manually specify any addresses, use the procedures above to specify the old IP addresses.</p>
<p>If necessary, restart your system.</p>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/google-public-dns/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Free fast Public DNS Servers List</title>
		<link>http://redhatvn.net/free-fast-public-dns-servers-list</link>
		<comments>http://redhatvn.net/free-fast-public-dns-servers-list#comments</comments>
		<pubDate>Wed, 02 Dec 2009 08:14:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Centos]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Directadmin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[DNS]]></category>

		<guid isPermaLink="false">http://redhatvn.net/?p=682</guid>
		<description><![CDATA[The most basic task of DNS is to translate hostnames such as theos.in to IP address such as 74.86.49.131. In very simple terms, it can be compared to a phone book. DNS also has other important use such as email routing. This is my list of better, fast public dns servers and free dns server [...]]]></description>
			<content:encoded><![CDATA[<div class="google_plus_one"><g:plusone size="medium" count="true" url="http://redhatvn.net/free-fast-public-dns-servers-list"></g:plusone></div><p>The most basic task of DNS is to translate hostnames such as theos.in to IP address such as 74.86.49.131. In very simple terms, it can be compared to a phone book. DNS also has other important use such as email routing.</p>
<p>This is my list of better, fast <strong>public dns servers</strong> and free dns server (as compare to your ISP / DSL / ADSL / cable DNS service providers dns servers). These dns servers are free to all. I was able to improve my browsing speed with following DNS servers. Use any one of the following provider.<br />
<span id="more-682"></span></p>
<h3>Free Public DNS Server</h3>
<p>Service provider: <strong><a href="http://www.scrubit.com/">ScrubIt</a></strong><br />
Public dns server address:</p>
<ul>
<li>67.138.54.100</li>
<li>207.225.209.66</li>
</ul>
<p>Service provider:<strong><a href="http://www.dnsadvantage.com/">dnsadvantage</a></strong><br />
Dnsadvantage free dns server list:</p>
<ul>
<li>156.154.70.1</li>
<li>156.154.71.1</li>
</ul>
<p>Service provider:<strong><a href="http://www.opendns.com/">OpenDNS</a></strong><br />
OpenDNS free dns server list:</p>
<ul>
<li>208.67.222.222</li>
<li>208.67.220.220</li>
</ul>
<p>Service provider: <strong>vnsc-pri.sys.gtei.net</strong><br />
Public Name server IP address:</p>
<ul>
<li>4.2.2.1</li>
<li>4.2.2.2</li>
<li>4.2.2.3</li>
<li>4.2.2.4</li>
<li>4.2.2.5</li>
<li>4.2.2.6</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://redhatvn.net/free-fast-public-dns-servers-list/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
