후이즈검색 하기 입니다.

· 10년 전 · 1686

<?
$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,592
9년 전 조회 1,972
9년 전 조회 2,029
9년 전 조회 1,778
9년 전 조회 1,617
9년 전 조회 1,670
9년 전 조회 2,020
9년 전 조회 1,620
9년 전 조회 1,871
9년 전 조회 1,677
9년 전 조회 1,799
9년 전 조회 1,666
9년 전 조회 1,932
9년 전 조회 1,631
9년 전 조회 1,598
10년 전 조회 1,596
10년 전 조회 1,684
10년 전 조회 1,628
10년 전 조회 1,658
10년 전 조회 1,771
10년 전 조회 1,570
10년 전 조회 1,581
10년 전 조회 1,619
10년 전 조회 1,742
10년 전 조회 1,586
10년 전 조회 1,704
10년 전 조회 1,510
10년 전 조회 1,596
10년 전 조회 1,410
10년 전 조회 1,633
10년 전 조회 1,432
10년 전 조회 1,478
10년 전 조회 1,587
10년 전 조회 1,488
10년 전 조회 1,521
10년 전 조회 1,449
10년 전 조회 1,863
10년 전 조회 1,884
10년 전 조회 1,867
10년 전 조회 1,834
10년 전 조회 1,613
10년 전 조회 1,735
10년 전 조회 1,903
10년 전 조회 1,613
10년 전 조회 1,887
10년 전 조회 1,871
10년 전 조회 2,244
10년 전 조회 1,850
10년 전 조회 2,059
10년 전 조회 1,687
10년 전 조회 1,838
10년 전 조회 1,538
10년 전 조회 1,608
10년 전 조회 1,657
10년 전 조회 1,654
10년 전 조회 1,819
10년 전 조회 1,584
10년 전 조회 1,608
10년 전 조회 1,620
10년 전 조회 1,535
10년 전 조회 1,585
10년 전 조회 1,398
10년 전 조회 1,477
10년 전 조회 1,388
10년 전 조회 1,547
10년 전 조회 1,480
10년 전 조회 1,955
10년 전 조회 1,417
10년 전 조회 1,401
10년 전 조회 1,652
10년 전 조회 1,452
10년 전 조회 1,424
10년 전 조회 1,430
10년 전 조회 1,377
10년 전 조회 1,312
10년 전 조회 1,285
10년 전 조회 1,400
10년 전 조회 1,372
10년 전 조회 1,324
10년 전 조회 1,211
10년 전 조회 1,298
10년 전 조회 1,287
10년 전 조회 1,314
10년 전 조회 1,353
10년 전 조회 1,351
10년 전 조회 1,298
10년 전 조회 1,299
10년 전 조회 1,337
10년 전 조회 1,318
10년 전 조회 1,397
10년 전 조회 1,309
10년 전 조회 1,262
10년 전 조회 1,247
10년 전 조회 1,259
10년 전 조회 1,268
10년 전 조회 1,270
10년 전 조회 1,287
10년 전 조회 1,237
10년 전 조회 1,302
10년 전 조회 1,229