Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I look up new TLDs, such as .email, .guru, etc., using the whois command in linux?

Running whois on a new TLD only gives the response:

No whois server is known for this kind of object.
share|improve this question
up vote 26 down vote accepted

You can manually configure the whois servers for the new TLDs. I made a blogpost about this.

Just create the file /etc/whois.conf and add the following content and you will be able to look up the new TLDs:

# WHOIS servers for new TLDs (
# Current as of 2015-09-12

\.xn--11b4c3d$ whois.nic.xn--11b4c3d
\.xn--3pxu8k$ whois.nic.xn--3pxu8k
\.xn--42c2d9a$ whois.nic.xn--42c2d9a
\.xn--45q11c$ whois.nic.xn--45q11c
\.xn--80adxhks$ whois.nic.xn--80adxhks
\.xn--9dbq2a$ whois.nic.xn--9dbq2a
\.xn--c2br7g$ whois.nic.xn--c2br7g
\.xn--d1acj3b$ whois.nic.xn--d1acj3b
\.xn--efvy88h$ whois.nic.xn--efvy88h
\.xn--fhbei$ whois.nic.xn--fhbei
\.xn--hxt814e$ whois.nic.xn--hxt814e
\.xn--j1aef$ whois.nic.xn--j1aef
\.xn--kcrx77d1x4a$ whois.nic.xn--kcrx77d1x4a
\.xn--mk1bu44c$ whois.nic.xn--mk1bu44c
\.xn--mxtq1m$ whois.nic.xn--mxtq1m
\.xn--ngbc5azd$ whois.nic.xn--ngbc5azd
\.xn--p1acf$ whois.nic.xn--p1acf
\.xn--pssy2u$ whois.nic.xn--pssy2u
\.xn--rhqv96g$ whois.nic.xn--rhqv96g
\.xn--t60b56a$ whois.nic.xn--t60b56a
\.xn--tckwe$ whois.nic.xn--tckwe


The whois.conf is using regular expressions.

share|improve this answer
Wow, thanks! Can you tell me what source you get this information from? I imagine this list will become dated over time. – Paul Jun 16 '14 at 18:13
I scripted harvesting the WHOIS servers from the latest IANA data and have updated this answer. – Royce Williams Jul 30 '14 at 23:03
Different versions of whois have different snapshots of whois servers, so different people would need different lists -- especially if they're stuck on an older distro for some reason. Using the entire list every time makes it work for everyone. Also, it is much easier to simply harvest all of them. :-) – Royce Williams Jul 31 '14 at 17:16
@TomBrossman I'm not completely sure why this is and I haven't looked into it any further than to discover that it has something to do with the lookup not going to the registrar level. If you use the tool from one of the below answers, you can see this illustrated much better. – Paul Mar 11 '15 at 20:22
@TomBrossman Correct. There are different Whois Servers for .com domains. Maybe it's possible to enter all of these in the whois.conf. The easiest way is probably to just remove the .com entry. – thde Mar 12 '15 at 12:54

Most whois clients hard-code the TLD whos servers, instead of actively retrieving the whois server from IANA when performing for a TLD that is not already known to the client.

I have built my own online whois lookup tool you can use that supports all TLDs and IP addresses since all lookups start at IANA and then traverse to the registry and registrar as needed.

I have also spent a lot of time building an intelligent whois parser that displays the whois data in a user-friendly manner.

Example screenshots:


screenshot 2

share|improve this answer
Thank you for this, since I don't run Ruby, this answer would work better for me. I run Ubuntu Server 12.04 and it looks like the gwhois package requires an additional 25 packages to be installed from official repository. Not that I would miss the ~4.4MB of storage, are all these really necessary for the package to run correctly? – Paul May 25 '14 at 21:32
Oh. is not related to the 'gwhois' packages on Linux. Sorry for the confusion – iglvzx May 25 '14 at 21:33
Okay, that can work, but no command line tool? I'm hoping to solve the command line issue somehow. – Paul May 25 '14 at 21:37
No command line tool at this time. I didn't catch that part of your question. I've been thinking about making a command line tool, though. I suppose you can follow my blog (listed on for updates. – iglvzx May 25 '14 at 21:41
Yeah. The main reason why I decided to build my own whois tool was because I was not satisfied with any of the solutions already out there. :) – iglvzx May 25 '14 at 21:47

If you are using the standard linux client, the definitions have not been updated yet to include the new TLDS.

You have two possible solutions:

  1. Grab the list of all new gTLDs and pass the whois host as parameter to the whois client
  2. Use an alternative client. I'm currently doing my best to keep the Ruby WHOIS client in sync with the new gTLDs, so you can use it. It also offers a CLI.
share|improve this answer
I'm not sure where to grab a list of all new gTLDs and I'm not sure how to pass the whois host as parameter to the whois client. I don't have Ruby installed on my server. This isn't a good answer. – Paul May 26 '14 at 2:46
Here is Simone's list of whois hosts for tlds, here is a copy of the whois man page . – Kelly Thomas May 26 '14 at 4:01
IANA's Root Zone Database includes whois servers, along with other information for TLDs. (It's near the bottom of a TLD's entry.) – Matt Nordhoff May 26 '14 at 5:30

This appears to work for most new tlds:

Server hostname is in the form: whois.nic.newtldname


whois -h

"This name is reserved by the Registry in accordance with ICANN Policy." etc etc etc

Also, browsing to http://nic.newtldname typically takes you to the Registry / Launch page.

share|improve this answer

You can easily get the right whois server directly from IANA without editing additional files or tables.

Example for ".de" TLD

Linux, OSX (and compatible):

whois -h .de |
  egrep -e '^whois:' |
  sed -e 's/[[:space:]][[:space:]]*/ /g' |
  cut -d " " -f 2

Have fun

share|improve this answer
I wish your answer were upvoted much more; this is a perfect and correct generalized solution. No hard-coding should be needed (otherwise every OS would need to hard-code WHOIS servers for every new TLD!). Why this isn't the default behavior for the whois utility, I'm not sure (maybe to reduce load?). Anyway, props and thank you. – apinstein Jul 11 at 4:00
@apinstein thanks for our comment! – Tom Freudenberg Jul 11 at 12:51

On OS X, the whois tool doesn't seem to be built with the /etc/whois.conf support (Just like slackware?). The easy way to fix this seems to be to instal the "duped" whois from homebrew. You can do that with

brew tap homebrew/dupes
brew update
brew install whois
brew untap homebrew/dupes

That way, it will use a updated list of whois servers (But I only tested with .so and .ninja domains).

share|improve this answer
Good to know this. A one liner to install updated whois CLI is brew install homebrew/dupes/whois – Bruno Sutic Jun 5 '15 at 23:07

One way is to use as the whois server, e.g:

whois -h

The domain (run by CenterGate LLC, no affiliation) contains a hopefully up-to-date list of DNS CNAME redirects to official TLD whois servers, e.g:

;; ANSWER SECTION: 146     IN      CNAME
share|improve this answer

My solution was not very sophisticated. I could not look up a certain TLD under Debian Wheezy or Squeeze, or in OS X El Capitan or Snow Leopard. I found out that I could look up the TLD in Debian Jessie though. On the Debian machines I just grabbed the source for whois for Jessie and built it; works fine now. For OS X, I grabbed a newer version of whois through MacPorts.

share|improve this answer

For updating your /etc/whois.conf you can use a script like

 * Usage : node generateWhoisConf.js > /etc/whois.conf

var json = require('comment-json');
var request = require('request');

request('', function(error, response, body){
  var obj = json.parse(body);
      console.log(key.replace(/\./g,'\\.') + '$ ' + obj[key].host);

This other github repository provide good data about whois server

share|improve this answer
Welcome to Super User! Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change. – DavidPostill Jul 4 at 9:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .