K
K
Kirill Zhilyaev2016-08-06 23:51:25
Domain name market
Kirill Zhilyaev, 2016-08-06 23:51:25

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

3 answer(s)
O
Oleg, 2016-08-07
@kirill_782

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>');
    }
  }

?>

A
Anton, 2016-08-09
@Lampochkagori

Look at these links. Almost complete list of all possible
https://wiki.rrpproxy.net/Category:CcTLDs
https://wiki.rrpproxy.net/Category:GTLDs

I
Ivan, 2019-09-06
@skapunker

There are more than 800 zones, everything is laid out according to the lists inetime.site/95-polnyj-spisok-domennyh-zon.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question