후이즈검색 하기 입니다.

· 10년 전 · 1476

<?
$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,407
9년 전 조회 1,824
9년 전 조회 1,855
9년 전 조회 1,602
9년 전 조회 1,478
9년 전 조회 1,524
9년 전 조회 1,858
9년 전 조회 1,422
9년 전 조회 1,651
9년 전 조회 1,494
9년 전 조회 1,586
9년 전 조회 1,459
9년 전 조회 1,722
9년 전 조회 1,433
9년 전 조회 1,403
9년 전 조회 1,372
9년 전 조회 1,470
9년 전 조회 1,381
9년 전 조회 1,454
9년 전 조회 1,548
9년 전 조회 1,363
9년 전 조회 1,398
9년 전 조회 1,386
9년 전 조회 1,521
9년 전 조회 1,380
9년 전 조회 1,490
9년 전 조회 1,326
9년 전 조회 1,396
9년 전 조회 1,226
9년 전 조회 1,451
9년 전 조회 1,271
9년 전 조회 1,272
9년 전 조회 1,365
10년 전 조회 1,298
10년 전 조회 1,318
10년 전 조회 1,237
10년 전 조회 1,652
10년 전 조회 1,702
10년 전 조회 1,667
10년 전 조회 1,606
10년 전 조회 1,395
10년 전 조회 1,538
10년 전 조회 1,680
10년 전 조회 1,365
10년 전 조회 1,679
10년 전 조회 1,653
10년 전 조회 2,017
10년 전 조회 1,623
10년 전 조회 1,842
10년 전 조회 1,477
10년 전 조회 1,594
10년 전 조회 1,328
10년 전 조회 1,379
10년 전 조회 1,454
10년 전 조회 1,443
10년 전 조회 1,580
10년 전 조회 1,361
10년 전 조회 1,396
10년 전 조회 1,342
10년 전 조회 1,315
10년 전 조회 1,355
10년 전 조회 1,204
10년 전 조회 1,247
10년 전 조회 1,169
10년 전 조회 1,291
10년 전 조회 1,249
10년 전 조회 1,722
10년 전 조회 1,210
10년 전 조회 1,172
10년 전 조회 1,416
10년 전 조회 1,222
10년 전 조회 1,200
10년 전 조회 1,198
10년 전 조회 1,157
10년 전 조회 1,088
10년 전 조회 1,071
10년 전 조회 1,159
10년 전 조회 1,166
10년 전 조회 1,097
10년 전 조회 993
10년 전 조회 1,076
10년 전 조회 1,045
10년 전 조회 1,082
10년 전 조회 1,120
10년 전 조회 1,113
10년 전 조회 1,064
10년 전 조회 1,072
10년 전 조회 1,130
10년 전 조회 1,078
10년 전 조회 1,163
10년 전 조회 1,101
10년 전 조회 1,037
10년 전 조회 1,005
10년 전 조회 1,037
10년 전 조회 992
10년 전 조회 1,037
10년 전 조회 1,071
10년 전 조회 1,016
10년 전 조회 1,080
10년 전 조회 1,033