DebianのWhoisを最新にする方法
この記事は Debian 6 に別の版の deb を直接入れる、2014年当時の手順です。今の Debian では、配布元の deb を dpkg -i で入れる必要はありません。Debian 13 のサーバーでは、標準のパッケージで whois 5.6.3 が入りました。
# apt install whois
$ apt-cache policy whois
whois:
Installed: 5.6.3
Candidate: 5.6.3
⚠ 別の版の Debian 向けの deb を混ぜて入れると、依存関係が崩れたり、セキュリティ更新が届かなくなったりします。サポートが終わった Debian 6 を使い続けている場合は、whois より先に OS の入れ替えを検討してください。
私も、まだまだ使っている Debian6 の Whois を最新の物にする手順を残しておきます。現在、Debian6 にインストールされているバージョンは、「5.0.10」で約4年前(2010/12)の物です。少し古すぎるので、今回は、Debian7 向けの「5.1.1」(2014/1)を Debian6 にインストールして更新します。
※ 執筆時点で「5.1.2」(2014/3)もありますが、依存関係により一つ前のもので更新します。
// 作業ディレクトリーに移動(どこでも良い)
# cd /tmp
// ダウンロード&インストール
// Debian 64bit版
# wget http://ftp.debian.org/debian/pool/main/w/whois/whois_5.1.1~deb7u1_amd64.deb
# dpkg -i whois_5.1.1~deb7u1_amd64.deb
// Debian 32bit版
# wget wget http://ftp.debian.org/debian/pool/main/w/whois/whois_5.1.1~deb7u1_i386.deb
# dpkg -i whois_5.1.1~deb7u1_i386.deb
// バージョンの確認
# whois --version
Version 5.1.1.
Report bugs to <md+whois@linux.it>.
尚、Whois の deb の一覧はここにあります。
http://ftp.debian.org/debian/pool/main/w/whois/
このサイトを置いている Debian 13.7 の VPSで、Debian の標準の whois を使って確かめました(2026年11月5日)。記事のようにソースから入れなくても、apt で入る版で新しい TLD を引けます。
$ whois --version
Version 5.6.3.
$ apt-cache policy whois | head -3
whois:
Installed: 5.6.3
Candidate: 5.6.3
$ whois example.com | grep -E "Domain Name:|Registrar:|Creation Date:|Registry Expiry Date:"
Domain Name: EXAMPLE.COM
Creation Date: 1995-08-14T04:00:00Z
Registry Expiry Date: 2027-08-13T04:00:00Z
Registrar: RESERVED-Internet Assigned Numbers Authority
どの TLD をどの whois サーバーに聞けばよいかは、IANA の whois で分かります。.jp は JPRS のサーバーでした。
$ whois -h whois.iana.org jp | grep -E "^(domain|whois|status|created|changed):"
domain: JP
whois: whois.jprs.jp
status: ACTIVE
created: 1986-08-05
changed: 2025-11-06
$ whois -h whois.jprs.jp example.jp <- 問い合わせ先を指定して引く
| 項目 | この記事(2014年) | Debian 13(2026年11月時点) |
|---|---|---|
| 入れ方 | ソースを取ってきて make | apt install whois |
| 版 | 当時のソースの版 | 5.6.3 |
| 新しい TLD が引けないとき | 最新のソースに入れ替える | whois -h でサーバーを指定する |
| TLD | 問い合わせ先(whois サーバー) |
|---|---|
| .jp | whois.jprs.jp(IANA の whois で確認) |
| 調べたい TLD | whois -h whois.iana.org TLD名 の whois: 行 |