資訊人筆記

Work hard, Have fun, Make history!

使用者工具

網站工具


operating_system:useful_command:nix_whois_command

[*nix] DNS Tools: whois command

0x00 前言

上一篇提到 [*nix] DNS Tools: dig command

這邊一起介紹一下 whois command


0x01 Introduction

whois 這個指令主要是用來查詢 DNS Domain 註冊的相關資訊

這些資料是從 DNS 的註冊商資料庫查詢得來的

註冊商是指有 ICANN 授權的那些註冊商,如 namecheap, Godaddy, Gandi, twnic 等

是否公開這些資料讓 whois command 可以查詢我們註冊的網域是可選的

不過這取決於註冊商是否願意開放這個設定 (大多都會有)

而 whois 查到的資料內容與格式也都取決於註冊商,不同註冊商之間有差別

同樣的我們提到這些 whois 查詢結果幾乎都是購買網域時註冊商紀錄的註冊者資料

所以像學校裡面各系那種由校計中透過 glue records 授權下去的 sub domain

若用 whois 去查顯示的結果都還是上層向註冊商註冊時的網域

舉例來說,台灣大專院校的 sub domain 不管是 ntu.edu.tw, ncu.edu.tw, nctu.edu.tw 或是再往下的 subdomain 查出來都是下面結果

Ministry of Education Computer Center
   12th Fl, 106, Hoping E. Road, Sec 2.
   Taiwan Republic of China, R.O.C
   TW

   Domain Name: edu.tw

   Contact:
      TANet, Administrator  tanetadm@moe.edu.tw
      886-2-77129008

0x02 whois command format

$ whois name

whois 基本指令算很簡單的,就是 whois 加上要查詢的 domain name 而已


0x03 whois Query


0x04 Reference

operating_system/useful_command/nix_whois_command.txt · 上一次變更: 127.0.0.1