<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24dns</id>
	<title>$dns - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://script.quakenet.org/wiki/index.php?action=history&amp;feed=atom&amp;title=%24dns"/>
	<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$dns&amp;action=history"/>
	<updated>2026-05-02T16:48:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://script.quakenet.org/wiki/index.php?title=$dns&amp;diff=5577&amp;oldid=prev</id>
		<title>NaNg: Created page with &quot;Returns the address that was resolved and any associated IP address. Can be used only in the On dns event.  $dns(N)  $dns returns the number of resolved address if N is 0 (ze...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.quakenet.org/wiki/index.php?title=$dns&amp;diff=5577&amp;oldid=prev"/>
		<updated>2011-02-24T20:03:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Returns the address that was resolved and any associated IP address. Can be used only in the &lt;a href=&quot;/wiki/On_dns&quot; title=&quot;On dns&quot;&gt;On dns&lt;/a&gt; event.  $dns(N)  $dns returns the number of resolved address if N is 0 (ze...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Returns the address that was resolved and any associated IP address. Can be used only in the [[On dns]] event.&lt;br /&gt;
 $dns(N)&lt;br /&gt;
&lt;br /&gt;
$dns returns the number of resolved address if N is 0 (zero).&lt;br /&gt;
&lt;br /&gt;
$dns can have the following properties:&lt;br /&gt;
{| style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width:10%&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Property&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; || Style=&amp;quot;width:90%&amp;quot; | &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Meaning&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
| nick      || if a user was queried to be resolved, returns its nick&lt;br /&gt;
|-&lt;br /&gt;
| addr      || returns the resolved address&lt;br /&gt;
|-&lt;br /&gt;
| ip        || returns the IP of the resolved address&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
 On *:Dns: {&lt;br /&gt;
   [[echo]] -ag Found $dns(0) addresses for $address ( [[DollarPlus|$+]] [[$raddress]] $+ )!&lt;br /&gt;
   [[var]] %x = 1&lt;br /&gt;
   [[while]] ($dns(%x)) {&lt;br /&gt;
     echo -ag DNS Resolve %x Address = $dns(%x).addr ; IP = $dns(%x).ip ; [[$iif]]($dns(%x).nick, Nick = $dns(%x).nick)&lt;br /&gt;
     [[inc]] %x&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
This will echo all the resolved addresses.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[On dns]]&lt;br /&gt;
* [[dns]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Other Identifiers]]&lt;/div&gt;</summary>
		<author><name>NaNg</name></author>
	</entry>
</feed>