From WikiChip
Editing mirc/commands/dns

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|/dns Command}}
 
 
The '''/dns command''' resolves an address. If mIRC sees a "." in the name you specify it assumes it is an address and tries to resolve it. Otherwise it assumes it is a nickname and performs a {{mIRC|/userhost}} to find the user's address and then resolves it. If you specify an IP address, it looks up the host name. You can queue multiple /dns requests, and you can view the current queue by using /dns with no parameters.
 
The '''/dns command''' resolves an address. If mIRC sees a "." in the name you specify it assumes it is an address and tries to resolve it. Otherwise it assumes it is a nickname and performs a {{mIRC|/userhost}} to find the user's address and then resolves it. If you specify an IP address, it looks up the host name. You can queue multiple /dns requests, and you can view the current queue by using /dns with no parameters.
  
Line 6: Line 5:
  
 
== Switches ==
 
== Switches ==
* '''-4''' - allows IPv4 results to be returned (enforce ipv4 for status window which are in ipv6 mode)
+
* '''-4''' - allows IPv4 results to be returned
* '''-6''' - allows IPv6 results to be returned (enforce ipv6 for ipv4-only machine, note that you can't connect to it, not so useful)
+
* '''-6''' - allows IPv6 results to be returned
 
* '''-c''' - clears all currently queued DNS requests, except for the one currently in progress
 
* '''-c''' - clears all currently queued DNS requests, except for the one currently in progress
 
* '''-h''' - forces /dns to treat the parameter as a hostname
 
* '''-h''' - forces /dns to treat the parameter as a hostname
Line 13: Line 12:
 
== Parameters ==
 
== Parameters ==
 
* '''[nick|address]''' - the nick or address you want to look up
 
* '''[nick|address]''' - the nick or address you want to look up
 +
 
== Example ==
 
== Example ==
 
<syntaxhighlight lang="mIRC">;using default setting for ipv6
 
<syntaxhighlight lang="mIRC">;using default setting for ipv6
Line 21: Line 21:
 
/dns -6 Ouims
 
/dns -6 Ouims
 
;both
 
;both
/dns -46 Ouims
+
/dns -46 Ouims</syntaxhighlight>
; beginning v7.58 returns all resolved IP addresses instead of only the 1st, such as for IRC network's round-robin name
 
/dns chat.freenode.net</syntaxhighlight>
 
  
 
== Compatibility ==
 
== Compatibility ==
 
Added: 3.8
 
Added: 3.8
 +
 +
Added On: 25/11/95
 +
 +
<small>Note: Individual switches were not taken into consideration.</small>
 +
 
== See also ==
 
== See also ==
* {{mIRC|$dns}}
+
* [[List of commands - mIRC|List of commands]]
 +
* [[List of identifiers - mIRC|List of identifiers]]
 +
* [[$dns identifier - mIRC|$dns]]
 +
{{mIRC command list}}
 +
 
 +
[[Category:MIRC commands]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)