IRC Documentation · Beginner
WHOIS command: consult IRC information for a nickname.
WHOIS requests the information a network makes accessible for a nickname: identifier, displayed host, visible channels, and optionally account or status. It does not automatically grant access to private site data or the real IP address.
Dialova Team · Verified on
Syntax and Parameters #
WHOIS [<serveur>] <pseudo>{,<pseudo>}| Parameter | Meaning |
|---|---|
| nickname | Nickname to query; multi-target usages vary depending on the server. |
| server | Optional request routing, sometimes useful to obtain known server inactivity of the correspondent. |
Commented Example #
C: WHOIS Bob
S: :irc.example 311 Alice Bob ~bob cloak.example * :Présentation de Bob
S: :irc.example 312 Alice Bob irc.example :Serveur IRC
S: :irc.example 317 Alice Bob 120 1700000000 :seconds idle, signon time
S: :irc.example 318 Alice Bob :End of /WHOIS listNicknames, hosts, and text in this exchange are fictional. The client may display responses in a more readable format than the presented frames.
Possible Responses and Errors #
| Response | Understanding |
|---|---|
| 311 / 312 | User and server information. |
| 319 | Channels the network allows to be shown. |
| 317 | Seconds of inactivity and, when provided, Unix connection time. |
| 318 | End of response. |
| Error | Typical Cause |
|---|---|
| 401 | Non-existent nickname. |
| 431 | Nickname missing. |
| 402 | Target server not found when specified. |
Rights, Compatibility, and Precautions #
Responses like connected count, encryption, or real host are extensions or information filtered by rights. Do not present an IRCop result as what every user sees.
In 317, 120 represents 120 seconds, not 120 milliseconds. Connection time is a Unix timestamp, not a duration. Clients can convert the display into minutes and hours.
Frequently Asked Questions #
Does WHOIS allow you to know where someone lives? No: the host can be masked, and a network connection does not establish a residence.
Why are some channels missing? Privacy modes and network policy may limit the displayed list.
Sources & Verification
Examples use pseudonyms and fictional domains, except for explicitly documented connection points. Network-specific extensions and settings are noted in the text.
- Modern IRC — spécification du protocole client ↗Source Specification · consulted on 2026-10-29
- RFC 2812 — Client Protocol (2000) ↗Source Historical · consulted on 2026-10-29