후이즈검색 하기 입니다.

· 10년 전 · 1206

<?
$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,060
9년 전 조회 1,462
9년 전 조회 1,522
9년 전 조회 1,260
9년 전 조회 1,121
9년 전 조회 1,167
9년 전 조회 1,524
9년 전 조회 1,126
9년 전 조회 1,337
9년 전 조회 1,184
9년 전 조회 1,282
9년 전 조회 1,142
9년 전 조회 1,438
9년 전 조회 1,157
9년 전 조회 1,137
9년 전 조회 1,068
9년 전 조회 1,192
9년 전 조회 1,068
9년 전 조회 1,173
9년 전 조회 1,268
9년 전 조회 1,059
9년 전 조회 1,117
9년 전 조회 1,106
9년 전 조회 1,232
9년 전 조회 1,081
9년 전 조회 1,195
9년 전 조회 1,044
9년 전 조회 1,094
9년 전 조회 940
9년 전 조회 1,139
9년 전 조회 998
9년 전 조회 1,002
9년 전 조회 1,071
9년 전 조회 1,043
9년 전 조회 1,044
9년 전 조회 987
9년 전 조회 1,374
10년 전 조회 1,443
10년 전 조회 1,403
10년 전 조회 1,327
10년 전 조회 1,142
10년 전 조회 1,279
10년 전 조회 1,422
10년 전 조회 1,090
10년 전 조회 1,475
10년 전 조회 1,393
10년 전 조회 1,760
10년 전 조회 1,374
10년 전 조회 1,579
10년 전 조회 1,207
10년 전 조회 1,365
10년 전 조회 1,069
10년 전 조회 1,116
10년 전 조회 1,197
10년 전 조회 1,196
10년 전 조회 1,311
10년 전 조회 1,148
10년 전 조회 1,169
10년 전 조회 1,131
10년 전 조회 1,062
10년 전 조회 1,144
10년 전 조회 981
10년 전 조회 1,033
10년 전 조회 946
10년 전 조회 1,068
10년 전 조회 1,031
10년 전 조회 1,494
10년 전 조회 991
10년 전 조회 939
10년 전 조회 1,182
10년 전 조회 1,020
10년 전 조회 986
10년 전 조회 998
10년 전 조회 960
10년 전 조회 893
10년 전 조회 857
10년 전 조회 940
10년 전 조회 971
10년 전 조회 911
10년 전 조회 828
10년 전 조회 901
10년 전 조회 861
10년 전 조회 899
10년 전 조회 949
10년 전 조회 948
10년 전 조회 883
10년 전 조회 898
10년 전 조회 960
10년 전 조회 960
10년 전 조회 1,005
10년 전 조회 929
10년 전 조회 871
10년 전 조회 859
10년 전 조회 880
10년 전 조회 842
10년 전 조회 867
10년 전 조회 904
10년 전 조회 851
10년 전 조회 896
10년 전 조회 867