php トップレベル「com」のドメイン情報

2011/05/26

「PEARのNet_Whois」ってヤツでドメイン情報の取得をしているんだけどトップレベルが「com」ってのはひと手間かければ取得できる感じ。

まずは、普通にNet_Whoisにクエリを投げたときのお返事。

To single out one record, look it up with “xxx”, where xxx is one of the of the records displayed above. If the records are the same, look them up with “=xxx” to receive a full display for each record.

なんか…「=」をつけろっていってるような感じだね。

$whois = new Net_Whois();
echo $whois->query("xxx.com");

↓↓↓

$whois = new Net_Whois();
echo $whois->query("=xxx.com");

新着(ニュース関連以外)

2018-07-26
年賀状で「新春」とか書くけど・・・何故なんだろうと8月を目前にした今、疑問に思った。
2018-05-16
PHPで画像のヘッダ情報(?)の「Orientation」を元に画像回転させたい。
2018-03-05
Android Studioをインストール。エミュレータを軽くするトコまで終わらせたかったけど、挫折した。
2018-02-23
プッシュ通知について調べてた時にでてきたServiceWorker。そのServiceWorkerについてのメモ。
2017-12-13
jqueryで取得したDOM要素をオブジェクトじゃなくて、配列で受け取りたい