dns-domeinchecker
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/////////////////////////////////////
// Made by Paul du long //
// http://www.pauldulong.nl //
// pauldulong /[at]\ gmail.com //
/////////////////////////////////////
if(isset($_GET['url'])){
$url = $_GET['url'];
$url = trim($url);
$url = str_replace("http://www.", "", $url);
$url = str_replace("/", "", $url);
$url = str_replace("www.", "", $url);
$url = str_replace("http:", "", $url);
$result = dns_get_record($url);
if (count($result)) {
echo 'Domein is bezet ';
}else{
echo 'Domein is vrij ';
}
}else{
echo 'Geen domeinnaam opgegeven';
}
?>