2007年09月27日

whois.hansode.org(1/n) - WHOISプロキシを作り始めた

livedoorClipに登録 | このエントリーをはてなブックマークに追加 | del.icio.usに登録 | MM/Memoに登録

■きっかけは「面倒くさい」

先日の三連休、
時間があったので前々から作ろうとしていたものを作り始めた。

WHOIS情報はTLDによってフォーマットが違う。

これにより、有効期限やネームサーバ等を調べる際、
TLD毎に何かしらの調査方法を確立しなければならない。

 「フォーマットが統一されていれば問題は解決するはずだ」

そして作り始めた。



■使い方
$ whois -h whois.hansode.org [ domain-name ]



■実行例
$ whois -h whois.hansode.org google.com | head -40
;; parsed section: [2007-09-24 14:26:19]
name: google.com
cr_date: 1997-09-15 00:00:00
up_date: 2006-04-10 00:00:00
ex_date: 2011-09-14 00:00:00
nshost: ns1.google.com
nshost: ns2.google.com
nshost: ns3.google.com
nshost: ns4.google.com
stat: clientDeleteProhibited
stat: clientTransferProhibited
stat: clientUpdateProhibited

;; data section:

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.


   Domain Name: GOOGLE.COM
   Registrar: MARKMONITOR INC.
   Whois Server: whois.markmonitor.com
   Referral URL: http://www.markmonitor.com
   Name Server: NS1.GOOGLE.COM
   Name Server: NS2.GOOGLE.COM
   Name Server: NS3.GOOGLE.COM
   Name Server: NS4.GOOGLE.COM
   Status: clientDeleteProhibited
   Status: clientTransferProhibited
   Status: clientUpdateProhibited
   Updated Date: 10-apr-2006
   Creation Date: 15-sep-1997
   Expiration Date: 14-sep-2011

<<< Last update of whois database: Mon, 24 Sep 2007 05:25:24 UTC >>>

NOTICE: The expiration date displayed in this record is the date the

・前半部分は統一フォーマット
・後半部分は元のWHOIS情報

詳細はまた次回。


半袖 at 17:55 │Comments(0)TrackBack(0)Domain Name Hacks 

トラックバックURL

この記事にコメントする

名前:
URL:
  情報を記憶: 評価: 顔