WHOIS(1)
๐ WHOIS(1) โ the Debian GNU/Linux manual page, bestie edition
okay so you know that whois command? the one from the whois package? yeah. this is its manual page, and i'm about to make it make sense. it's a client for the whois directory service โ think of it as the original "let me look up who owns this" tool. ๐
โจ NAME โจ
whois โ client for the whois directory service. that's it, that's the whole job. it asks servers stuff about domains, IPs, people, whatever. slay.
๐ธ SYNOPSIS ๐ธ
the way you call this thing, in all its forms:
whois [ { -h | --host } HOST ] [ { -p | --port } PORT ]
[ -abBcdGHIKlLmMrRx ] [ -g SOURCE:FIRST-LAST ] [ -i ATTR[,ATTR]... ]
[ -s SOURCE[,SOURCE]... ] [ -T TYPE[,TYPE]... ] [ --verbose ]
[ --no-recursion ] OBJECT
whois -q KEYWORD
whois -t TYPE
whois -v TYPE
whois --help
whois --version
that's a LOT of brackets but like, it's giving flexible. you're not gonna use all of these at once, promise. ๐ซถ
๐ฆ DESCRIPTION ๐ฆ
so. whois searches for an object in a RFC 3912 database. that's the vibe.
this version of the whois client? it tries to guess the right server to ask for the object you gave it. it's lowkey psychic like that. but if it can't make a guess, here's the fallback tea:
- it connects to
whois.networksolutions.comfor NIC handles - and
whois.arin.netfor IPv4 addresses and network names
no cap, that's the automatic backup plan. ๐
๐ OPTIONS ๐
okay bestie, buckle up. here come ALL of them. every single flag. i'm not skipping a single one, periodt.
the main character options โญ
-hHOST,--host=HOSTโ connect to HOST. simple as that.-Hโ do not display the legal disclaimers that some registries like to show you. (those unskippable walls of text? this is your skip button. iconic.)-pPORT,--port=PORTโ connect to PORT.-Iโ first querywhois.iana.org, then follow its referral to the whois server that's actually authoritative for that request. works for IP addresses, AS numbers and domains.
โ ๏ธ BEWARE: this implies that the IANA server will receive your complete query. so like, don't be messy with it. ๐
--no-recursionโ disable recursion from registry to registrar servers. no passing the mic.--verboseโ be verbose. say more. we love a talkative king.--helpโ display online help.--versionโ display the program version.
the RIPE-coded options ๐
other options are flags understood by whois.ripe.net and some other RIPE-like servers. iykyk.
-aโ also search all the mirrored databases. going everywhere.-bโ return brief IP address ranges with abuse contact.-Bโ disable objects filtering. (show the e-mail addresses.) ๐๐ง-cโ return the smallest IP address range with a reference to anirtobject.-dโ return the reverse DNS delegation object too.-gSOURCE:FIRST-LAST โ search updates from the SOURCE database between FIRST and LAST update serial number. it's useful to obtain Near Real Time Mirroring stream. fancy!!-Gโ disable grouping of associated objects.-iATTR[,ATTR]... โ inverse-search objects having associated attributes. ATTR is the attribute name, while the positional OBJECT argument is the attribute value. (yes, they swap roles, it's giving switch energy โจ)-Kโ return primary key attributes only. but wait, there's exceptions:- the
membersattribute ofsetobjects is always returned - another exception: all attributes of the objects
organisation,personandroleare never returned
- the
messy? yes. but that's the rule. ๐
-lโ return the one level less specific object.-Lโ return all levels of less specific objects.-mโ return all one level more specific objects.-Mโ return all levels of more specific objects.-qKEYWORD โ return information about the server. KEYWORD can be:versionโ for the server versionsourcesโ for the list of database sourcestypesโ for the list of supported object types
-rโ disable recursive lookups for contact information.-Rโ disable following referrals and force showing the object from the local copy in the server.-sSOURCE[,SOURCE]... โ request the server to search for objects mirrored from SOURCE. sources are delimited by comma, and the order is significant. use the-q sourcesparameter to obtain a list of valid sources. ๐-tTYPE โ return the template for a object of TYPE.-TTYPE[,TYPE]... โ restrict the search to objects of TYPE. multiple types are separated by a comma.-vTYPE โ return the verbose template for a object of TYPE.-xโ search for only exact match on network address prefix.
๐ง NOTES ๐ง
this is the lore section. read it, it's important, fr fr.
when querying the Verisign gTLDs (e.g. .com, .net...) thin registry servers for a domain, the program will automatically prepend the domain keyword to only show domain records. and if you want other kinds of records? you must use the nameserver or registrar keywords. no shortcuts. ๐
when querying whois.arin.net for IPv4 or IPv6 networks, the CIDR netmask length will be automatically removed from the query string. poof, gone. โจ
when querying whois.nic.ad.jp for AS numbers, the program will automatically convert the request into the appropriate format, inserting a space after the string AS.
when querying whois.denic.de for domain names and no other flags have been specified, the program will automatically add the flag -T dn.
when querying whois.dk-hostmaster.dk for domain names and no other flags have been specified, the program will automatically add the flag --show-handles.
RIPE-specific command line options are ignored when querying non-RIPE servers. this may or may not be the behaviour intended by the user. (it's giving "not my problem" honestly ๐ญ). and when using non-standard query parameters, the command line options which are not to be interpreted by the client must follow the -- separator โ that's the thing that marks the beginning of the query string. ๐ฏ
if the /etc/whois.conf configuration file exists, it will be consulted to find a server before applying the normal rules. each line of the file should contain:
- a regular expression to be matched against the query text
- and the whois server to use
...separated by white space. and IDN domains must use the ACE format. noted. ๐
the whois protocol does not specify an encoding for characters which cannot be represented by ASCII, and implementations vary wildly. if the program knows that a specific server uses a certain encoding, if needed it will transcode the server output to the encoding specified by the current system locale. ๐
command line arguments will always be interpreted accordingly to the current system locale and converted to the IDN ASCII Compatible Encoding.
๐ FILES ๐
/etc/whois.conf
that's the one file. one. singular. she's low maintenance. ๐
๐ ENVIRONMENT ๐
LANGโ when queryingwhois.nic.ad.jpandwhois.jprs.jp, English text is requested unless theLANGorLC_MESSAGESenvironment variables specify a Japanese locale.WHOIS_OPTIONSโ a list of options which will be evaluated before the ones specified on the command line.WHOIS_SERVERโ this server will be queried if the program cannot guess where some kind of objects are located. if the variable does not exist thenwhois.arin.netwill be queried.
๐ SEE ALSO ๐
whois.conf(5).- RFC 3912: WHOIS Protocol Specification.
- RIPE Database Query Reference Manual: <https://www.ripe.net/data-tools/support/documentation/ripe-database-query-reference-manual>
๐ BUGS ๐
okay so this is the scary part, bestie. hold my hand. ๐ซถ
the program may have buffer overflows in the command line parser. so be sure to not pass untrusted data to it. and โ direct quote energy โ it should be rewritten to use a dynamic strings library. yeah. it's giving "we know, we know". ๐ญ
๐ HISTORY ๐
this program closely tracks the user interface of the whois client developed at RIPE by Ambrose Magee and others, on the base of the original BSD client. respect the elders. ๐
๐ AUTHOR ๐
Whois and this man page were written by Marco d'Itri <md@linux.it> and are licensed under the terms of the GNU General Public License, version 2 or later. king behaviour, honestly. ๐
and that's the whole page!! this manual came to you from the Debian GNU/Linux corner of the world, dated 2019-12-30, authored by the one and only Marco d'Itri, and it's filed under WHOIS(1). mwah. ๐โจ go look somebody up, bestie. ๐๐ฆ๐
๐ฆ where this page comes from
- alpine 3.24: whois-doc 5.6.6-r0 ยท GPL-2.0-or-later
- arch rolling: whois 5.6.6-1 ยท GPL
- debian trixie: whois 5.6.3
- nixos 26.05: whois 5.6.6
- nixpkgs unstable: whois 5.6.6
- opensuse-leap 16.0: whois 5.6.2-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: whois 5.6.2-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: whois 5.6.2-160000.2.2 ยท GPL-2.0-or-later
- opensuse-leap 16.0: whois 5.6.2-160000.2.2 ยท GPL-2.0-or-later
- ubuntu questing: whois 5.6.4
- ubuntu resolute: whois 5.6.6
- ubuntu stonking: whois 5.6.6
- ๐ the page's license: GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms