@doexec

Как автоматизировать запросы к WHOIS?

Заморочился идеей выгрузить все свои домены со всех площадок (собственных, а также где я помогаю как веб-мастер) на одну страницу, с датами регистрации и окончания, может даже NS-записи чтобы показывало...

Переписывать с панелей даты - дело не благодарное. А вот спарсить - благое дело. Вот только все WHOIS-сервисы что я облазил передают POST.

Может у кого есть задумки/скрипты/ссылки на создание собственного WHOIS?
  • Вопрос задан
  • 142 просмотра
Решения вопроса 1
@402d
начинал с бейсика на УКНЦ в 1988
пример демона службы whois для развертывания на своем сервере
https://github.com/hsdn/pwhoisd - но это если Вы сами регистратор доменов.
принимает запросы , смотрит к себе в базу данных, отвечает .

Но Вам нужно обратное . Не сделать, А получать информацию
https://github.com/regru/php-whois

whois простая служба на 43 порту.
нужно послать имя домена и перевод строки.
в ответ придет текст
https://github.com/regru/php-whois/blob/master/src...

заморочки в том, что
а) регистратор не обязан подымать эту службу. Многие зоны имеют только веб версии
б) ответ от службы не имеет жестко регламентированного формата
в) регистратор на запрос о домене, который не находится у него на обслуживании имеет право отвечать, что он про него ничего не знает.
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@Randewoo
Абсолютно все WHOIS сервесы берут инфу из открытых баз данных.
Возьмем в пример 2whois.ru:
spoiler
Domain Name: RANDEWOO.ME
Registry Domain ID: D425500000050517747-AGRS
Registrar WHOIS Server: whois.pananames.com
Registrar URL: http://www.pananames.com
Updated Date: 2019-09-08T22:23:47Z
Creation Date: 2018-09-08T12:52:46Z
Registry Expiry Date: 2020-09-08T12:52:46Z
Registrar Registration Expiration Date:
Registrar: URL Solutions, Inc.
Registrar IANA ID: 1449
Registrar Abuse Contact Email: abuse@pananames.com
Registrar Abuse Contact Phone: +1.4692250522
Reseller:
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: autoRenewPeriod https://icann.org/epp#autoRenewPeriod
Registrant Organization: GLOBAL DOMAIN PRIVACY SERVICES INC
Registrant State/Province: NA
Registrant Country: PA
Name Server: NS1.FOZZY.COM
Name Server: NS2.FOZZY.COM
DNSSEC: unsigned
URL of the ICANN Whois Inaccuracy Complaint Form  https://www.icann.org/wicf/)
>>> Last update of WHOIS database: 2019-09-27T16:15:20Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

Access to WHOIS information is provided to assist persons in determining the contents of a domain name registration record in the registry database. The data in this record is provided by The Registry Operator for informational purposes only, and accuracy is not guaranteed.  This service is intended only for query-based access. You agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to (a) allow, enable, or otherwise support the transmission by e-mail, telephone, or facsimile of mass unsolicited, commercial advertising or solicitations to entities other than the data recipient's own existing customers; or (b) enable high volume, automated, electronic processes that send queries or data to the systems of Registry Operator, a Registrar, or Afilias except as reasonably necessary to register domain names or modify existing registrations. All rights reserved. Registry Operator reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy.

The Registrar of Record identified in this output may have an RDDS service that can be queried for additional information on how to contact the Registrant, Admin, or Tech contact of the queried domain name.

Как видим - он напрямую (не факт, возможо, стоит на парсере с другого сайта) берет инфу из ICANN. Сделайте так же!
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
YCLIENTS Москва
от 200 000 до 350 000 ₽
Ведисофт Екатеринбург
от 25 000 ₽
ИТЦ Аусферр Магнитогорск
от 100 000 до 160 000 ₽
23 апр. 2024, в 11:46
3000 руб./за проект
23 апр. 2024, в 11:38
20000 руб./за проект