후이즈검색 하기 입니다.

· 10년 전 · 1689

<?
$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,598
9년 전 조회 1,976
9년 전 조회 2,033
9년 전 조회 1,784
9년 전 조회 1,621
9년 전 조회 1,672
9년 전 조회 2,023
9년 전 조회 1,623
9년 전 조회 1,875
9년 전 조회 1,681
9년 전 조회 1,802
9년 전 조회 1,671
9년 전 조회 1,934
9년 전 조회 1,636
9년 전 조회 1,603
10년 전 조회 1,604
10년 전 조회 1,688
10년 전 조회 1,632
10년 전 조회 1,659
10년 전 조회 1,773
10년 전 조회 1,572
10년 전 조회 1,585
10년 전 조회 1,622
10년 전 조회 1,749
10년 전 조회 1,590
10년 전 조회 1,707
10년 전 조회 1,513
10년 전 조회 1,597
10년 전 조회 1,413
10년 전 조회 1,637
10년 전 조회 1,438
10년 전 조회 1,487
10년 전 조회 1,593
10년 전 조회 1,491
10년 전 조회 1,524
10년 전 조회 1,453
10년 전 조회 1,869
10년 전 조회 1,887
10년 전 조회 1,872
10년 전 조회 1,837
10년 전 조회 1,617
10년 전 조회 1,739
10년 전 조회 1,907
10년 전 조회 1,617
10년 전 조회 1,894
10년 전 조회 1,875
10년 전 조회 2,249
10년 전 조회 1,851
10년 전 조회 2,061
10년 전 조회 1,690
10년 전 조회 1,841
10년 전 조회 1,541
10년 전 조회 1,614
10년 전 조회 1,661
10년 전 조회 1,657
10년 전 조회 1,826
10년 전 조회 1,589
10년 전 조회 1,610
10년 전 조회 1,626
10년 전 조회 1,540
10년 전 조회 1,588
10년 전 조회 1,407
10년 전 조회 1,487
10년 전 조회 1,394
10년 전 조회 1,552
10년 전 조회 1,484
10년 전 조회 1,961
10년 전 조회 1,419
10년 전 조회 1,405
10년 전 조회 1,657
10년 전 조회 1,459
10년 전 조회 1,432
10년 전 조회 1,435
10년 전 조회 1,383
10년 전 조회 1,315
10년 전 조회 1,290
10년 전 조회 1,408
10년 전 조회 1,377
10년 전 조회 1,331
10년 전 조회 1,217
10년 전 조회 1,300
10년 전 조회 1,299
10년 전 조회 1,318
10년 전 조회 1,358
10년 전 조회 1,360
10년 전 조회 1,303
10년 전 조회 1,303
10년 전 조회 1,343
10년 전 조회 1,323
10년 전 조회 1,407
10년 전 조회 1,315
10년 전 조회 1,270
10년 전 조회 1,251
10년 전 조회 1,268
10년 전 조회 1,270
10년 전 조회 1,274
10년 전 조회 1,296
10년 전 조회 1,247
10년 전 조회 1,311
10년 전 조회 1,234