후이즈검색 하기 입니다.

· 10년 전 · 1684

<?
$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,591
9년 전 조회 1,968
9년 전 조회 2,027
9년 전 조회 1,774
9년 전 조회 1,616
9년 전 조회 1,669
9년 전 조회 2,018
9년 전 조회 1,616
9년 전 조회 1,870
9년 전 조회 1,673
9년 전 조회 1,796
9년 전 조회 1,665
9년 전 조회 1,929
9년 전 조회 1,627
9년 전 조회 1,594
10년 전 조회 1,593
10년 전 조회 1,680
10년 전 조회 1,624
10년 전 조회 1,657
10년 전 조회 1,767
10년 전 조회 1,568
10년 전 조회 1,578
10년 전 조회 1,612
10년 전 조회 1,736
10년 전 조회 1,583
10년 전 조회 1,698
10년 전 조회 1,505
10년 전 조회 1,593
10년 전 조회 1,408
10년 전 조회 1,630
10년 전 조회 1,428
10년 전 조회 1,474
10년 전 조회 1,580
10년 전 조회 1,485
10년 전 조회 1,516
10년 전 조회 1,445
10년 전 조회 1,859
10년 전 조회 1,883
10년 전 조회 1,861
10년 전 조회 1,830
10년 전 조회 1,608
10년 전 조회 1,733
10년 전 조회 1,902
10년 전 조회 1,610
10년 전 조회 1,883
10년 전 조회 1,866
10년 전 조회 2,240
10년 전 조회 1,846
10년 전 조회 2,052
10년 전 조회 1,685
10년 전 조회 1,831
10년 전 조회 1,536
10년 전 조회 1,606
10년 전 조회 1,654
10년 전 조회 1,645
10년 전 조회 1,814
10년 전 조회 1,579
10년 전 조회 1,604
10년 전 조회 1,615
10년 전 조회 1,524
10년 전 조회 1,584
10년 전 조회 1,397
10년 전 조회 1,473
10년 전 조회 1,381
10년 전 조회 1,541
10년 전 조회 1,478
10년 전 조회 1,951
10년 전 조회 1,414
10년 전 조회 1,393
10년 전 조회 1,647
10년 전 조회 1,447
10년 전 조회 1,422
10년 전 조회 1,427
10년 전 조회 1,372
10년 전 조회 1,308
10년 전 조회 1,282
10년 전 조회 1,399
10년 전 조회 1,366
10년 전 조회 1,319
10년 전 조회 1,205
10년 전 조회 1,293
10년 전 조회 1,280
10년 전 조회 1,306
10년 전 조회 1,351
10년 전 조회 1,347
10년 전 조회 1,295
10년 전 조회 1,294
10년 전 조회 1,331
10년 전 조회 1,311
10년 전 조회 1,390
10년 전 조회 1,305
10년 전 조회 1,254
10년 전 조회 1,238
10년 전 조회 1,256
10년 전 조회 1,263
10년 전 조회 1,263
10년 전 조회 1,282
10년 전 조회 1,231
10년 전 조회 1,295
10년 전 조회 1,226