Answer the question
In order to leave comments, you need to log in
Where can I find a list of domain zones?
I want to make a link parser. I need a list of domain zones. [az]{2,3} is too little, and [az]{4} is too much.
Answer the question
In order to leave comments, you need to log in
Parse https://www.nic.ru/dns/
Stuck a question. Decided to do it ;) Domain zone parser in php
<?php
$content = file_get_contents('https://www.nic.ru/cgi/na.cgi?step=n_a.all_world');
$pos = strpos($content, 'var file = ');
$content = substr($content, $pos);
$pos = strpos($content, ';');
$content = substr($content, $pos);
$content= iconv('', 'UTF-8', $content);
preg_match_all('|<a[^>]+?[^>]+>[\.](.*?)<\/a>|is', $content, $tags);
foreach ($tags as $param)
{
foreach ($param as $pp)
{
$noDot = preg_replace('/>\.{1}/','',$pp);
echo strip_tags("$noDot<br>",'<br>');
}
}
?>
Look at these links. Almost complete list of all possible
https://wiki.rrpproxy.net/Category:CcTLDs
https://wiki.rrpproxy.net/Category:GTLDs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question