후이즈검색 하기 입니다.

· 10년 전 · 1734

<?
$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,688
9년 전 조회 2,066
9년 전 조회 2,111
9년 전 조회 1,865
9년 전 조회 1,703
9년 전 조회 1,749
9년 전 조회 2,100
9년 전 조회 1,685
9년 전 조회 1,942
9년 전 조회 1,762
10년 전 조회 1,878
10년 전 조회 1,740
10년 전 조회 2,001
10년 전 조회 1,700
10년 전 조회 1,673
10년 전 조회 1,676
10년 전 조회 1,757
10년 전 조회 1,708
10년 전 조회 1,714
10년 전 조회 1,850
10년 전 조회 1,637
10년 전 조회 1,641
10년 전 조회 1,689
10년 전 조회 1,819
10년 전 조회 1,660
10년 전 조회 1,788
10년 전 조회 1,571
10년 전 조회 1,662
10년 전 조회 1,462
10년 전 조회 1,697
10년 전 조회 1,489
10년 전 조회 1,549
10년 전 조회 1,657
10년 전 조회 1,548
10년 전 조회 1,584
10년 전 조회 1,523
10년 전 조회 1,922
10년 전 조회 1,943
10년 전 조회 1,929
10년 전 조회 1,902
10년 전 조회 1,675
10년 전 조회 1,796
10년 전 조회 1,975
10년 전 조회 1,671
10년 전 조회 1,956
10년 전 조회 1,929
10년 전 조회 2,305
10년 전 조회 1,919
10년 전 조회 2,128
10년 전 조회 1,735
10년 전 조회 1,902
10년 전 조회 1,597
10년 전 조회 1,688
10년 전 조회 1,717
10년 전 조회 1,723
10년 전 조회 1,893
10년 전 조회 1,650
10년 전 조회 1,689
10년 전 조회 1,690
10년 전 조회 1,600
10년 전 조회 1,654
10년 전 조회 1,468
10년 전 조회 1,547
10년 전 조회 1,459
10년 전 조회 1,610
10년 전 조회 1,566
10년 전 조회 2,022
10년 전 조회 1,498
10년 전 조회 1,469
10년 전 조회 1,729
10년 전 조회 1,532
10년 전 조회 1,503
10년 전 조회 1,506
10년 전 조회 1,470
10년 전 조회 1,392
10년 전 조회 1,355
10년 전 조회 1,488
10년 전 조회 1,461
10년 전 조회 1,405
10년 전 조회 1,295
10년 전 조회 1,374
10년 전 조회 1,394
10년 전 조회 1,392
10년 전 조회 1,437
10년 전 조회 1,429
10년 전 조회 1,381
10년 전 조회 1,380
10년 전 조회 1,432
10년 전 조회 1,402
10년 전 조회 1,492
10년 전 조회 1,396
10년 전 조회 1,355
10년 전 조회 1,330
10년 전 조회 1,353
10년 전 조회 1,364
10년 전 조회 1,364
10년 전 조회 1,384
10년 전 조회 1,334
10년 전 조회 1,396
10년 전 조회 1,327