후이즈검색 하기 입니다.

· 10년 전 · 1874

<?
$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,899
9년 전 조회 2,286
9년 전 조회 2,357
9년 전 조회 2,092
9년 전 조회 1,931
9년 전 조회 1,975
9년 전 조회 2,325
9년 전 조회 1,856
10년 전 조회 2,113
10년 전 조회 1,907
10년 전 조회 2,029
10년 전 조회 1,885
10년 전 조회 2,147
10년 전 조회 1,847
10년 전 조회 1,821
10년 전 조회 1,822
10년 전 조회 1,900
10년 전 조회 1,848
10년 전 조회 1,851
10년 전 조회 1,983
10년 전 조회 1,771
10년 전 조회 1,809
10년 전 조회 1,840
10년 전 조회 1,958
10년 전 조회 1,803
10년 전 조회 1,933
10년 전 조회 1,700
10년 전 조회 1,803
10년 전 조회 1,588
10년 전 조회 1,838
10년 전 조회 1,620
10년 전 조회 1,682
10년 전 조회 1,781
10년 전 조회 1,670
10년 전 조회 1,702
10년 전 조회 1,655
10년 전 조회 2,070
10년 전 조회 2,077
10년 전 조회 2,070
10년 전 조회 2,024
10년 전 조회 1,809
10년 전 조회 1,935
10년 전 조회 2,086
10년 전 조회 1,793
10년 전 조회 2,084
10년 전 조회 2,042
10년 전 조회 2,429
10년 전 조회 2,050
10년 전 조회 2,249
10년 전 조회 1,875
10년 전 조회 2,022
10년 전 조회 1,714
10년 전 조회 1,800
10년 전 조회 1,834
10년 전 조회 1,837
10년 전 조회 2,005
10년 전 조회 1,773
10년 전 조회 1,792
10년 전 조회 1,805
10년 전 조회 1,707
10년 전 조회 1,760
10년 전 조회 1,570
10년 전 조회 1,636
10년 전 조회 1,553
10년 전 조회 1,726
10년 전 조회 1,665
10년 전 조회 2,134
10년 전 조회 1,611
10년 전 조회 1,571
10년 전 조회 1,848
10년 전 조회 1,642
10년 전 조회 1,593
10년 전 조회 1,611
10년 전 조회 1,582
10년 전 조회 1,488
10년 전 조회 1,471
10년 전 조회 1,586
10년 전 조회 1,551
10년 전 조회 1,512
10년 전 조회 1,407
10년 전 조회 1,471
10년 전 조회 1,522
10년 전 조회 1,488
10년 전 조회 1,563
10년 전 조회 1,523
10년 전 조회 1,494
10년 전 조회 1,488
10년 전 조회 1,534
10년 전 조회 1,514
10년 전 조회 1,589
10년 전 조회 1,506
10년 전 조회 1,450
10년 전 조회 1,422
10년 전 조회 1,439
10년 전 조회 1,474
10년 전 조회 1,459
10년 전 조회 1,481
10년 전 조회 1,435
10년 전 조회 1,497
10년 전 조회 1,444