Как получить грамотно Domain Expiration

admin

Well-known member
08.08.2003
2 754
0
#1
пишу whois систему.
столкнулся с проблемой такой.
мне надо заносить в БД дату регистрации домена и дату окончания его действия.

как узнать эти вещи? я сейчас просто "выдираю" их из ответа whois сервера, но в зависимости от того кто регистрировал домен ответ бывает разным.

например для codeby.net

Registrar of Record: TUCOWS, INC.
Record last updated on 07-Sep-2005.
Record expires on 21-Sep-2006.
Record created on 21-Sep-2003.
а для fuck.net

  Updated Date: 27-Mar-2006
  Creation Date: 23-Feb-2001
  Expiration Date: 23-Feb-2007
для доменов org вообще другое сообщение.

может можно как-то проще делать, чем обрабатывать все сообщения. кто знает что этот сервер выдаст в ответ :)
 
S

_serg_

#2
Код:
[serg@gw ~]$ whois codeby.net
[Querying whois.internic.net]
[Redirected to whois.opensrs.net]
[Querying whois.opensrs.net]
[whois.opensrs.net]
Registrant:
codeby.net
Necrasov str
Minsk, BY 220040
BY

Domain name: CODEBY.NET

Administrative Contact:
 Zhukovsky, Serge? admin@codeby.net
 Necrasova str.
 Minsk, BY 220040
 BY
 +375172266751
Technical Contact:
 Customer Service, EV1 Servers domains@rackshack.net
 2600 SW Freeway
 Suite 500
 Houston, Texas 77098
 US
 +1.7133337873  Fax: +1.7139429332



Registrar of Record: TUCOWS, INC.
Record last updated on 07-Sep-2005.
Record expires on 21-Sep-2006.
Record created on 21-Sep-2003.

Domain servers in listed order:
 NS3.ACTIVEBY.NET  209.152.167.167
 NS4.ACTIVEBY.NET  216.32.91.23


Domain status: REGISTRAR-LOCK

The Data in the Tucows Registrar WHOIS database is provided to you by Tucows
for information purposes only, and may be used to assist you in obtaining
information about or related to a domain name's registration record.

Tucows makes this information available "as is," and does not guarantee its
accuracy.

By submitting a WHOIS query, 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 any Registry Operator or
ICANN-Accredited registrar, except as reasonably necessary to register
domain names or modify existing registrations.

The compilation, repackaging, dissemination or other use of this Data is
expressly prohibited without the prior written consent of Tucows.

Tucows reserves the right to terminate your access to the Tucows WHOIS
database in its sole discretion, including without limitation, for excessive
querying of the WHOIS database or for failure to otherwise abide by this
policy.

Tucows reserves the right to modify these terms at any time.

By submitting this query, you agree to abide by these terms.

NOTE: THE WHOIS DATABASE IS A CONTACT DATABASE ONLY. LACK OF A DOMAIN
RECORD DOES NOT SIGNIFY DOMAIN AVAILABILITY.


[serg@gw ~]$
Код:
[serg@gw ~]$ whois *цензура*.net
[Querying whois.internic.net]
[Redirected to whois.bulkregister.com]
[Querying whois.bulkregister.com]
[whois.bulkregister.com]
The data in BulkRegister, LLC WHOIS database is provided to you by
BulkRegister, LLC for information purposes only, that is, to assist you in
obtaining information about or related to a domain name registration
record. BulkRegister, LLC makes this information available "as is", and
does not guarantee its accuracy. By submitting a WHOIS query, you
agree that you will use this data only for lawful purposes and that,
under no circumstances will you use this data to: (1) allow, enable,
or otherwise support the transmission of mass or bulk unsolicited,
commercial advertising or solicitations via electronic mail, aka (SPAM).
(2) enable high volume, automated, electronic processes that apply
to BulkRegister, LLC (or its systems). The compilation, repackaging,
dissemination or other use of this data is expressly prohibited without
the prior written consent of BulkRegister, LLC. BulkRegister, LLC reserves
the right to modify these terms at any time. By submitting this query,
you agree to abide by these terms.


jwcorp,inc.
 420 north 5th st
 minneapolis, MN 55410
 US

 Domain Name: *цензура*.NET

 Administrative Contact:
   jw kramlinger josh@kramlinger.com
   lucratec
   695 schifsky rd
   shoreview, mn 55126
   US
   Phone: 6513305674
   Fax:
 Technical Contact:
   jw kramlinger josh@kramlinger.com
   lucratec
   695 schifsky rd
   shoreview, mn 55126
   US
   Phone: 6513305674
   Fax:
 Billing Contact:
   jw kramlinger josh@kramlinger.com
   lucratec
   695 schifsky rd
   shoreview, mn 55126
   US
   Phone: 6513305674
   Fax:

 Record updated on 2006-03-27 19:25:19
 Record created on 2001-02-23
 Record expires on 2007-02-23
 Database last updated on 2006-04-03 09:06:07 EST

 Domain servers in listed order:

 NS.LUCRATEC.COM        199.199.208.210
 NS2.LUCRATEC.COM       199.199.208.211

 TransferGuard LOCK Status => ENABLED
[serg@gw ~]$
неудивительно, что результаты разные - они зареганы в разных организациях. разные whois-сервисы - разные результаты вывода. можеш попробовать просканить нмапом или спайдером серванты - мож там и ось напишут на какой они крутяцца...