# host

DNS lookup

Syntax

    host [-i] [-a] <hostname>

Many KVIrc commands are connection dependant: you need an IRC connection to succesfully execute them; usually because some data needs to be sent to the server. This includes commands like whois,raw,query, msg,notice,op,ctcp...
These commands must be executed in a window that is bound to a connected irc context. You will obviously get an error message if you try to use them in a window that has no associated IRC connection.
For instance: whois will work only if you execute it in a console , channel or query window.
If you want to use these commands in a window that is not associated to any irc context you may use the standard -r switch. You can use the same switch to execute a command in an irc context that is not the current one.

Description
Starts a DNS lookup for the <hostname> and prints the results in the current window. The -i switch causes the command to execute in IpV6 mode (and lookup ONLY IpV6 hosts!). The -a switch causes the command to run in "unspecified" mode and return any available address: IpV4 or Ipv6. This command also performs reverse lookups (if you pass an IP address as <hostname>).
Examples

    host localhost
    host irc.flashnet.it
    host -i irc.flashnet.it
    host -i A0E0:FFFF:::1010:1111:E0E0:A0A0
    host -a 127.0.0.1
    host 255.41.31.23
    host -a irc.stealth.net

See also
dns

Main index, Command index

KVirc 3.0.0 documentation
Generated by root at Thu Apr 29 12:41:05 2004