Pages: [1]   Go Down
Author Topic: Checking a domain availability  (Read 776 times)
0 Members and 1 Guest are viewing this topic.
zarzuelo
Full Member
***

Karma: 1
Offline Offline

Posts: 25


View Profile
« on: December 14, 2011, 09:59:42 AM »

Hi again!

I had a new idea, imagine that you want to buy a domain that is busy but is near to expire. Could be great to check the availability of the domain.

You can do it in many ways with Pandora FMS, I will show one of them using Goliat, if you know any more methods, show us :)

There is a Website that offers whois service and the domain can be passed through the URL. It's www.domaintools.com.

We're going to check to domains, only one  of them is registered.

Registered domain: http://google.com
Unregistered domain: http://iiinnnvvveeennnttteeeddd.com

We pass the domains to the whois tool with the following result:

Registered domain: http://whois.domaintools.com/google.com


Unregistered domain: http://whois.domaintools.com/iiinnnvvveeennnttteeeddd.com


We can parse the string: "This domain name is not registered" in a Web server module and when the domain will be free, the module turn from critical to normal status. Then we can configure an alarm that send us an email, for example.

The process to create this module is the following:

  • Create a "Web server module" of the type "Remote HTTP module to check server response"
  • Fill the Web checks box with the following data:
    task_begin
    get  http://whois.domaintools.com/iiinnnvvveeennnttteeeddd.com
    check_string This domain name is not registered
    task_end


    Changing the domain for that you want to monitor.

Simple!

This is not the best method because we depend on an external tool, and if domaintools.com change their system, our module could fail.

Any better idea? :)

More info about Goliat: http://www.openideas.info/wiki/index.php?title=Goliat



* notregistered.png (10.78 KB, 545x220 - viewed 126 times.)

* registered.png (34.41 KB, 542x471 - viewed 128 times.)
Logged

zarzuelo
Full Member
***

Karma: 1
Offline Offline

Posts: 25


View Profile
« Reply #1 on: December 21, 2011, 08:45:15 AM »

Another idea is to parse the Status when it's not free to know if the domain is Registered, Locked or in a Redemption period
Logged

alumbreras
Sr. Member
****

Karma: 5
Offline Offline

Posts: 108


View Profile
« Reply #2 on: December 21, 2011, 02:42:08 PM »

Hi Zarzuelo,

You can use whoiscl. a utility for command line in windows. ( There are an utility for windows too )

http://www.nirsoft.net/utils/whoiscl.html

Only you have to do is to parse the result with the grep command.

-------------------------------------------------------------------------------------

C:\Temp\whoiscl>WhoisCL.exe -r google.com

WHOIS Server: whois.markmonitor.com

Registrant:
        Dns Admin
        Google Inc.
        Please contact contact-admin@google.com 1600 Amphitheatre Parkway
         Mountain View CA 94043
        US
        dns-admin@google.com +1.6502530000 Fax: +1.6506188571

    Domain Name: google.com

        Registrar Name: Markmonitor.com
        Registrar Whois: whois.markmonitor.com
        Registrar Homepage: http://www.markmonitor.com

    Administrative Contact:
        DNS Admin
        Google Inc.
        1600 Amphitheatre Parkway
         Mountain View CA 94043
        US
        dns-admin@google.com +1.6506234000 Fax: +1.6506188571
    Technical Contact, Zone Contact:
        DNS Admin
        Google Inc.
        2400 E. Bayshore Pkwy
         Mountain View CA 94043
        US
        dns-admin@google.com +1.6503300100 Fax: +1.6506181499

    Created on..............: 1997-09-15.
    Expires on..............: 2020-09-13.
    Record last updated on..: 2011-07-20.

    Domain servers in listed order:

    ns4.google.com
    ns3.google.com
    ns2.google.com
    ns1.google.com


Logged

zarzuelo
Full Member
***

Karma: 1
Offline Offline

Posts: 25


View Profile
« Reply #3 on: December 27, 2011, 09:36:26 AM »

Hi Zarzuelo,

You can use whoiscl. a utility for command line in windows. ( There are an utility for windows too )

http://www.nirsoft.net/utils/whoiscl.html

Only you have to do is to parse the result with the grep command.

-------------------------------------------------------------------------------------

C:\Temp\whoiscl>WhoisCL.exe -r google.com


Yeah! This is a great method to do it from Windows. Could be used in Pandora FMS from configuring a Win Agent Plugin, in example.

Thank you for the contribution :)
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST