forked from VarunAgw/CloudPingTest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dns.php
39 lines (37 loc) · 799 Bytes
/
dns.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
32
33
34
35
36
37
38
39
<?php
http_response_code(404);
die;
require_once 'templating.php';
$name = 'DNS';
$longName = 'Domain Name System';
ob_start();
?>
<script>
function src(region_id) {
let code = regions[region_id].code || regions[region_id].text2;
return "https://" + code + "/media/manifest.json?cache_buster=" + Date.now();
}
let regions = [{
text1: "Google",
text2: "8.8.8.8",
}, {
text1: "Google",
text2: "8.8.4.4",
}, {
text1: "Cloudflare",
text2: "1.1.1.1",
}, {
text1: "Cloudflare",
text2: "1.0.0.1",
}, {
text1: "OpenDNS",
text2: "208.67.222.123",
}, {
text1: "OpenDNS",
text2: "208.67.220.123",
}];
</script>
<?php
$body = ob_get_clean();
viewProvider();
?>