diff --git a/includes/main.php b/includes/main.php
index 11cc44c..c1e7fe9 100644
--- a/includes/main.php
+++ b/includes/main.php
@@ -1,141 +1,148 @@
- 'Quebec, Canada', // Replace with actual locations
- 'ns2' => 'Frankfurt, Germany',
- 'ns3' => 'Sydney, Australia',
- // Add more as needed
- ];
-
- if (file_exists($masterFile)) {
- $content = file_get_contents($masterFile);
- // Regex to match A records (IPv4)
- preg_match_all('/(\S+)\s+IN\s+A\s+(\S+)/', $content, $aMatches);
- // Regex to match AAAA records (IPv6)
- preg_match_all('/(\S+)\s+IN\s+AAAA\s+(\S+)/', $content, $aaaaMatches);
-
- $ipv4Records = array_combine($aMatches[1], $aMatches[2]);
- $ipv6Records = array_combine($aaaaMatches[1], $aaaaMatches[2]);
-
- foreach ($nsFilter as $nsName) {
- $ipv4 = isset($ipv4Records[$nsName]) ? $ipv4Records[$nsName] : 'IPv4 not found';
- $ipv6 = isset($ipv6Records[$nsName]) ? $ipv6Records[$nsName] : 'IPv6 not found';
- $geographicalArea = isset($nsGeographicalAreas[$nsName]) ? $nsGeographicalAreas[$nsName] : 'Unknown Location';
-
- $servers[] = [
- 'hostname' => $nsName,
- 'ipv4' => $ipv4,
- 'ipv6' => $ipv6,
- 'location' => $geographicalArea
- ];
- }
- }
-
- return $servers;
-}
-
-$dnsServers = getDnsServersInfo();
-
-// Modified checkServerStatus function
-function checkServerStatus($server) {
- $port = 53; // DNS port, change if necessary
- $timeout = 30; // Timeout in seconds
-
-// Debug: Output the server being checked
-# echo "Checking status of server: $server
";
-
- $fp = @fsockopen($server, $port, $errno, $errstr, $timeout);
-
- if ($fp) {
- fclose($fp);
-# echo "Server $server is Online
"; // Debug: Server is online
- return "Online";
- } else {
-# echo "Server $server is Offline - Error: $errstr ($errno)
"; // Debug: Server is offline
- return "Offline";
- }
-}
-?>
-
-
-
-
-
-
Welcome to TildeNIC
-
-
TildeNIC is where you can request your .tilde top level domain. To do so, you need to first change your DNS over to one of the resolvers we offer, or you can self-host one.
-
-
-
- Domains offered by OpenNIC are also able to be resolved using our servers, Such as:
-
- - .geek
- - .bbs
- - .gopher and more.
-
- Will all resolve using our dns servers. For more information about OpenNIC you can visit
http://opennic.org
-
-
-
-
-
TildeNIC Available DNS Servers
-
-
- -
- -
- IPv4: ,
- IPv6: ,
- Location: -
-
-
-
-
-
-
-
-
-
+ 'Quebec, Canada', // Replace with actual locations
+ 'ns2' => 'Frankfurt, Germany',
+ 'ns3' => 'Sydney, Australia',
+ // Add more as needed
+ ];
+
+ if (file_exists($masterFile)) {
+ $content = file_get_contents($masterFile);
+ // Regex to match A records (IPv4)
+ preg_match_all('/(\S+)\s+IN\s+A\s+(\S+)/', $content, $aMatches);
+ // Regex to match AAAA records (IPv6)
+ preg_match_all('/(\S+)\s+IN\s+AAAA\s+(\S+)/', $content, $aaaaMatches);
+
+ $ipv4Records = array_combine($aMatches[1], $aMatches[2]);
+ $ipv6Records = array_combine($aaaaMatches[1], $aaaaMatches[2]);
+
+ foreach ($nsFilter as $nsName) {
+ $ipv4 = isset($ipv4Records[$nsName]) ? $ipv4Records[$nsName] : 'IPv4 not found';
+ $ipv6 = isset($ipv6Records[$nsName]) ? $ipv6Records[$nsName] : 'IPv6 not found';
+ $geographicalArea = isset($nsGeographicalAreas[$nsName]) ? $nsGeographicalAreas[$nsName] : 'Unknown Location';
+
+ $servers[] = [
+ 'hostname' => $nsName,
+ 'ipv4' => $ipv4,
+ 'ipv6' => $ipv6,
+ 'location' => $geographicalArea
+ ];
+ }
+ }
+
+ return $servers;
+}
+
+$dnsServers = getDnsServersInfo();
+
+// Modified checkServerStatus function
+function checkServerStatus($server) {
+ $port = 53; // DNS port, change if necessary
+ $timeout = 30; // Timeout in seconds
+
+// Debug: Output the server being checked
+# echo "Checking status of server: $server
+
Welcome to TildeNIC
+
+
TildeNIC is where you can request your .tilde top level domain. To do so, you need to first change your DNS over to one of the resolvers we offer, or you can self-host one.
+
+
+
+ Domains offered by OpenNIC are also able to be resolved using our servers, Such as:
+
+ - .geek
+ - .bbs
+ - .gopher and more.
+
+ Will all resolve using our dns servers. For more information about OpenNIC you can visit
http://opennic.org
+
+
+
+
+
TildeNIC Available DNS Servers
+
+
+ -
+ -
+ IPv4: ,
+ IPv6: ,
+ Location: -
+
+
+
+
+
+
+
+
+
+