<?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>PHP Architect blog &#187; dns</title>
	<atom:link href="http://www.php-architect.com/blog/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-architect.com/blog</link>
	<description>PHP, MySQL, ZF, Python, Linux, Mac, C++, Java, Flex, Air, ActionScript &#38; apps development.</description>
	<lastBuildDate>Sun, 13 Jun 2010 18:25:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=111</generator>
		<item>
		<title>Ubuntu 8.10 Intrepid &#8211; Fix Static IP &amp; Network Manager Problem</title>
		<link>http://www.php-architect.com/blog/2008/11/04/ubuntu-810-interpid-fix-static-ip-network-manager-problem/</link>
		<comments>http://www.php-architect.com/blog/2008/11/04/ubuntu-810-interpid-fix-static-ip-network-manager-problem/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 19:18:41 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[eth0]]></category>
		<category><![CDATA[interfaces]]></category>
		<category><![CDATA[interpid]]></category>
		<category><![CDATA[network manager]]></category>
		<category><![CDATA[networkmanager]]></category>
		<category><![CDATA[ubuntu 8.10]]></category>

		<guid isPermaLink="false">http://www.php-architect.com/blog/?p=121</guid>
		<description><![CDATA[Hey all, today i have installed the new release of Ubuntu, 8.10 Intrepid but i had a problem setting my IP to a static one, when i do this through the network manager, and when i edited the network files manually nothing worked, so here is the steps i followed to solve the problem : [...]


Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;'>Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Hey all,</p>
<p>today i have installed the new release of Ubuntu, 8.10 Intrepid</p>
<p>but i had a problem setting my IP to a static one, when i do this through the network manager, and when i edited the network files manually nothing worked, so here is the steps i followed to solve the problem :</p>
<p>first i removed the network manager</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d <span style="color: #660033;">-f</span> NetworkManager remove</pre></div></div>

<p>then i added my network configuration by editing the file /etc/network/interfaces</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></div></div>

<p>so it looks like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.xxx
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.xxx</pre></div></div>

<p>then i edited the file /etc/resolv.conf to add my DNS</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #660033;">-w</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf</pre></div></div>

<p>to look like</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># Generated by NetworkManager
nameserver 192.168.1.xxx</pre></div></div>

<p>then i restart the networking by :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>networking restart</pre></div></div>

<p>if u still have problems, i suggest you restart the machine and check, the above steps is how i got my network up .</p>
<p>enjoy the new Ubuntu <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>Related posts:<ol><li><a href='http://www.php-architect.com/blog/2009/11/11/fix-for-zend-studio-7-button-problems-in-ubuntu-9-10-karmic-koala/' rel='bookmark' title='Permanent Link: Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;'>Fix for Zend Studio 7 Button Problems in Ubuntu 9.10 &#8220;Karmic Koala&#8221;</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/11/04/ubuntu-810-interpid-fix-static-ip-network-manager-problem/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Mail System @ Office is back 2 life again.</title>
		<link>http://www.php-architect.com/blog/2008/01/16/mail-system-office-is-back-2-life-again/</link>
		<comments>http://www.php-architect.com/blog/2008/01/16/mail-system-office-is-back-2-life-again/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 13:33:47 +0000</pubDate>
		<dc:creator>Me2resh</dc:creator>
				<category><![CDATA[Mail System]]></category>
		<category><![CDATA[a record]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mdaemon]]></category>
		<category><![CDATA[mx record]]></category>

		<guid isPermaLink="false">http://www.abdelaliem.com/?p=25</guid>
		<description><![CDATA[Recently we had this problem in the company, our mails doesn&#8217;t reach some of the recipients, after analyzing the situation, i discovered that we have 2 problems : 1- Our forward and reverse DNS doesn&#8217;t match check the error from DnsStuff.com when i test the reverse DNS on our mail server : 1 2 3 [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Recently we had this problem in the company, our mails doesn&#8217;t reach some of the recipients,</p>
<p>after analyzing the situation, i discovered that we have 2 problems :</p>
<p>1- Our forward and reverse DNS doesn&#8217;t match</p>
<p><strong>check the error from DnsStuff.com when i test the reverse DNS on our mail server :</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Location: Egypt (high) [City: Cairo, Al Qahirah]Preparation:The  reverse DNS entry for an IP is found by reversing the IP, adding it to &quot;in-addr.arpa&quot;, and looking up the PTR record.So, the reverse DNS entry for 217.52.xx.xxx is found by looking up the PTR record forxxx.xx.52.217.in-addr.arpa.
&nbsp;
All DNS requests start by asking the root servers, and they let us know what to do next.
&nbsp;
See How Reverse DNS Lookups Work for more information.
&nbsp;
How I am searching:
&nbsp;
Asking g.root-servers.net for xxx.xx.52.217.in-addr.arpa PTR record:
&nbsp;
g.root-servers.net says to go to sec1.apnic.net. (zone: 217.in-addr.arpa.)
&nbsp;
Asking sec1.apnic.net. for xxx.xx.52.217.in-addr.arpa PTR record:
&nbsp;
sec1.apnic.net [202.12.xx.xx] says to go to ns2.xxxx-online.net. (zone: 52.217.in-addr.arpa.)
&nbsp;
Asking ns2.nile-online.net. for xxx.xx.52.217.in-addr.arpa PTR record:  Reports mail.xxx-xxxxxxxxxxxxx.com. [from 62.140.73.2]
&nbsp;
Answer:
&nbsp;
217.52.xx.xxx PTR record: mail.xxx-xxxxxxxxxxxxx.com. [TTL 86400s] [A=CNAME] *ERROR* A record for mail.xxx-xxxxxxxxxxxxx.com. does not point back to original IP.  RFC1912 2.1 disallows CNAMEs.
&nbsp;
To see the reverse DNS traversal, to make sure that all DNS servers are reporting the correct results, you can Click Here.</pre></td></tr></table></div>

<p>2- We don&#8217;t have any reference for the server in the office that we use to send direct emails in the MX Records of our domain, which makes some server doesn&#8217;t trust our emails.</p>
<p><strong>Check the headers of emails from gmail when we had the problem :</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Received-SPF: neutral (google.com: 217.52.xx.xxx is neither permitted nor denied by best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com) client-ip=217.52.xx.xxx;Authentication-Results: mx.google.com; spf=neutral (google.com: 217.52.xx.xxx is neither permitted nor denied by best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com) smtp.mail=ahmed@xxx-xxxxxxxxxxxx.com</pre></td></tr></table></div>

<p><strong>I solved the 2 problems by following the next steps:</strong></p>
<p>1- Created A record mailer1.xxx-xxxxxxxxxxxx.com to point to our mail server IP 217.52.xx.xxx</p>
<p>2- Created MX record for the A record previously created.</p>
<p>3- Contacted our ISP to change the reverse DNS / PTR to reply with  mailer1.xxx-xxxxxxxxxxxx.com for any reverse lookup.</p>
<p>Now after 24 hours everything seems working perfectly,</p>
<p><strong>check the reverse lockup results from DnsStuff.com :</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Location: Egypt (high) [City: Cairo, Al Qahirah]
&nbsp;
Preparation:
The  reverse DNS entry for an IP is found by reversing the IP, adding it to &quot;in-addr.arpa&quot;, and looking up the PTR record.
So, the reverse DNS entry for 217.52.xx.xxx is found by looking up the PTR record for
 xxx.xx.52.217.in-addr.arpa.
All DNS requests start by asking the root servers, and they let us know what to do next.
See How Reverse DNS Lookups Work for more information.
&nbsp;
How I am searching:
Asking i.root-servers.net for xxx.xx.52.217.in-addr.arpa PTR record:
       i.root-servers.net says to go to ns3.nic.fr. (zone: 217.in-addr.arpa.)
Asking ns3.nic.fr. for xxx.xx.52.217.in-addr.arpa PTR record:
       ns3.nic.fr [192.134.x.xx] says to go to ns2.nile-online.net. (zone: 52.217.in-addr.arpa.)
Asking ns2.nile-online.net. for xxx.xx.52.217.in-addr.arpa PTR record:  Reports mailer1.xxx-xxxxxxxxxxxx.com. [from 62.140.xx.x]
&nbsp;
Answer:
217.52.31.189 PTR record: mailer1.cha-international.com. [TTL 86400s] [A=217.52.xx.xxx]</pre></td></tr></table></div>

<p><strong>and the headers of our emails from gmail.</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">Received-SPF: pass (google.com: best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com designates 217.52.xx.xxx as permitted sender) client-ip=217.52.xx.xxx;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of ahmed@xxx-xxxxxxxxxxxx.com designates 217.52.xx.xxx as permitted sender) smtp.mail=ahmed@xxx-xxxxxxxxxxxx.com</pre></td></tr></table></div>

<p>I hope this would be useful for  you as it was for me, have a nice mail <img src='http://www.php-architect.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.php-architect.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.php-architect.com/blog/2008/01/16/mail-system-office-is-back-2-life-again/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
