후이즈검색 하기 입니다.

· 10년 전 · 1792

<?
$whois_server = array(
        'com' => 'whois.internic.net',
        'net' => 'whois.internic.net',
        'org' => 'whois.publicinterestregistry.net',
        'co.kr' => 'whois.krnic.net'
);
$whois_avail  = array(
        'whois.internic.net' => 'No match for ',
        'whois.publicinterestregistry.net' => 'NOT FOUND',
        'whois.krnic.net' => 'is not registered to KRNIC'
);

// 도메인 조회 함수
function check_domain( $domain, $suffix ) {
        global $whois_server,$whois_avail;

        $server = $whois_server[$suffix];
        $avail  = $whois_avail[$server];

        // 잘못된 도메인(com,net,org,co.kr이 아닌)
        if (!$server) return false;

        $sock = fsockopen($server,43,$errno,$errstr,30);
        if (!$sock) {
                echo "$errstr [$errno]";
                return false;
        }
        fwrite($sock,"$domain.$suffix\r\n");
        while (!feof($sock)) {
                $ret .= fgets($sock);
        }
    echo $ret;
        fclose($sock);

        if (strstr($ret,$avail)) return true;
        return false;
}

// 조회 도메인이 있다면
if ($domain) {
        echo "<table cellspacing=0 border=1>\n";
        foreach($whois_server as $suffix => $server) {
                $ret = check_domain($domain,$suffix);
                if ($ret)
                        $OX = 'O';
                else
                        $OX = 'X';
                echo " <tr>\n";
                echo "  <td align=right>$domain.$suffix ($OX)</td>\n";
                echo "  <td> 등록 ";
                if (!$ret) echo "불";
                echo "가능</td>\n";
                echo " </tr>\n";
        }
        echo "</table>\n";
}
?>
<br><br><h3>Domain Search</h3>
<hr size=-1>
<form method=post>
Search Domain : <input type=text name=domain value="<?=$domain?>"><input type=submit value="조회">
</form>  

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
9년 전 조회 1,789
9년 전 조회 2,198
9년 전 조회 2,231
9년 전 조회 1,971
9년 전 조회 1,810
9년 전 조회 1,862
9년 전 조회 2,209
9년 전 조회 1,771
10년 전 조회 2,030
10년 전 조회 1,826
10년 전 조회 1,948
10년 전 조회 1,801
10년 전 조회 2,067
10년 전 조회 1,769
10년 전 조회 1,751
10년 전 조회 1,739
10년 전 조회 1,819
10년 전 조회 1,774
10년 전 조회 1,777
10년 전 조회 1,909
10년 전 조회 1,706
10년 전 조회 1,726
10년 전 조회 1,757
10년 전 조회 1,876
10년 전 조회 1,717
10년 전 조회 1,858
10년 전 조회 1,622
10년 전 조회 1,724
10년 전 조회 1,524
10년 전 조회 1,764
10년 전 조회 1,536
10년 전 조회 1,609
10년 전 조회 1,709
10년 전 조회 1,599
10년 전 조회 1,645
10년 전 조회 1,590
10년 전 조회 1,992
10년 전 조회 2,003
10년 전 조회 1,992
10년 전 조회 1,968
10년 전 조회 1,743
10년 전 조회 1,862
10년 전 조회 2,021
10년 전 조회 1,721
10년 전 조회 2,008
10년 전 조회 1,982
10년 전 조회 2,365
10년 전 조회 1,965
10년 전 조회 2,196
10년 전 조회 1,793
10년 전 조회 1,952
10년 전 조회 1,646
10년 전 조회 1,735
10년 전 조회 1,767
10년 전 조회 1,779
10년 전 조회 1,931
10년 전 조회 1,710
10년 전 조회 1,738
10년 전 조회 1,744
10년 전 조회 1,653
10년 전 조회 1,706
10년 전 조회 1,517
10년 전 조회 1,591
10년 전 조회 1,507
10년 전 조회 1,660
10년 전 조회 1,607
10년 전 조회 2,082
10년 전 조회 1,560
10년 전 조회 1,518
10년 전 조회 1,781
10년 전 조회 1,590
10년 전 조회 1,554
10년 전 조회 1,553
10년 전 조회 1,521
10년 전 조회 1,441
10년 전 조회 1,422
10년 전 조회 1,536
10년 전 조회 1,507
10년 전 조회 1,460
10년 전 조회 1,350
10년 전 조회 1,422
10년 전 조회 1,459
10년 전 조회 1,446
10년 전 조회 1,502
10년 전 조회 1,477
10년 전 조회 1,436
10년 전 조회 1,434
10년 전 조회 1,482
10년 전 조회 1,453
10년 전 조회 1,542
10년 전 조회 1,447
10년 전 조회 1,395
10년 전 조회 1,371
10년 전 조회 1,397
10년 전 조회 1,413
10년 전 조회 1,411
10년 전 조회 1,433
10년 전 조회 1,375
10년 전 조회 1,452
10년 전 조회 1,383