<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FDNS%2FDNS_Functions</id>
		<title>PHP/DNS/DNS Functions - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=PHP%2FDNS%2FDNS_Functions"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/DNS/DNS_Functions&amp;action=history"/>
		<updated>2026-04-04T19:47:55Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/DNS/DNS_Functions&amp;diff=436&amp;oldid=prev</id>
		<title> в 10:37, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/DNS/DNS_Functions&amp;diff=436&amp;oldid=prev"/>
				<updated>2010-05-26T10:37:28Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 10:37, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=PHP/DNS/DNS_Functions&amp;diff=437&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=PHP/DNS/DNS_Functions&amp;diff=437&amp;oldid=prev"/>
				<updated>2010-05-26T07:04:08Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==DNS Lookup Functions==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Name                   Description&lt;br /&gt;
gethostbyname()        Gets IP address corresponding to the hostname&lt;br /&gt;
gethostbynamel()       Gets list of IP addresses corresponding to the hostname&lt;br /&gt;
gethostbyaddr()        Gets hostname corresponding to an IP address&lt;br /&gt;
getmxrr()                Fetches the mail exchange (MX) record associated with a hostname&lt;br /&gt;
dns_get_mx()             Alias for getmxrr()&lt;br /&gt;
checkdnsrr()             Checks for the existence of DNS records for a hostname&lt;br /&gt;
dns_check_record()       Alias for checkdnsrr()&lt;br /&gt;
dns_get_record()         Fetches DNS records associated with a hostname&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$ip = gethostbyname(&amp;quot;www.example.ru&amp;quot;);&lt;br /&gt;
echo &amp;quot;IP = $ip\n&amp;quot;;&lt;br /&gt;
$host = gethostbyaddr(&amp;quot;192.0.34.166&amp;quot;);&lt;br /&gt;
echo &amp;quot;Host = $host\n&amp;quot;;&lt;br /&gt;
$ip = gethostbynamel(&amp;quot;yahoo.ru&amp;quot;);&lt;br /&gt;
print_r($ip);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DNS Record Types and Their Meanings==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
A           Address code, used for storing an IP address associated with the domain&lt;br /&gt;
 &lt;br /&gt;
MX          Mail exchange, the domain name used for sending and receiving mail&lt;br /&gt;
 &lt;br /&gt;
NS          The authoritative name server&lt;br /&gt;
 &lt;br /&gt;
SOA         Start of Authority&lt;br /&gt;
 &lt;br /&gt;
PTR         Domain name pointer&lt;br /&gt;
 &lt;br /&gt;
CNAME       Canonical name for a DNS alias&lt;br /&gt;
 &lt;br /&gt;
AAAA        Address code used for IPv6 Addresses&lt;br /&gt;
 &lt;br /&gt;
ANY         Any of the above&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Fetches DNS records associated with a hostname==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$record = dns_get_record(&amp;quot;php.net&amp;quot;);&lt;br /&gt;
print_r($record);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Performing DNS Lookups==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
gethostbyname() gets IP address corresponding to the hostname &lt;br /&gt;
gethostbynamel() gets list of IP addresses corresponding to the hostname &lt;br /&gt;
gethostbyaddr() gets hostname corresponding to an IP address &lt;br /&gt;
getmxrr() fetches the mail exchange (MX) record associated with a hostname &lt;br /&gt;
dns_get_mx() alias for getmxrr() &lt;br /&gt;
checkdnsrr() checks for the existence of DNS records for a hostname &lt;br /&gt;
dns_check_record() alias for checkdnsrr() &lt;br /&gt;
dns_get_record() fetches DNS records associated with a hostname &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$ip = gethostbyname ( &amp;quot;www.wbex.ru&amp;quot; );&lt;br /&gt;
echo &amp;quot;IP = $ip\n&amp;quot;;&lt;br /&gt;
$host = gethostbyaddr ( &amp;quot;192.0.34.166&amp;quot; );&lt;br /&gt;
echo &amp;quot;Host = $host\n&amp;quot;;&lt;br /&gt;
$ip = gethostbynamel ( &amp;quot;yahoo.ru&amp;quot; );&lt;br /&gt;
print_r ( $ip );&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using the dns_check_record() Function==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
    $hostname = &amp;quot;google.ru&amp;quot;;&lt;br /&gt;
    if(dns_check_record($hostname, &amp;quot;NS&amp;quot;)) {&lt;br /&gt;
        echo &amp;quot;An authoritative name server exists.\n&amp;quot;;&lt;br /&gt;
    } else {&lt;br /&gt;
        echo &amp;quot;No name server was found for this domain\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>