check_domain.php

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_domain.php

Post by tmcdonald »

If you run a regular whois from the linux command line on a .co it would almost certainly fail as well (as this is essentially what happens on the backend for this wizard/plugin). Let me talk to the developer who wrote this and I'll get back to you.

ADD: I've emailed the dev and hopefully he should weigh in on the issue.
Former Nagios employee
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: check_domain.php

Post by lgroschen »

Hello gravitas!

Currently the return of the following command

Code: Select all

whois gravitas.co
will return no registration dates,

but when I try:

Code: Select all

whois gravitas.co -h whois.nic.co
Using the whois server mentioned by the .co domain sponsor here: http://www.iana.org/domains/root/db/co.html it outputs the following:

Code: Select all

[root@localhost libexec]# whois gravitas.co -h whois.nic.co
[Querying whois.nic.co]
[whois.nic.co]
Domain Name:                                 GRAVITAS.CO
Domain ID:                                   D1154239-CO
Sponsoring Registrar:                        NETWORK SOLUTIONS INC.
Sponsoring Registrar IANA ID:                2
Registrar URL (registration services):       www.networksolutions.com
Domain Status:                               clientTransferProhibited
Registrant ID:                               23513919
Registrant Name:                             Gravitas Technology Services, LLC.
Registrant Organization:                     Gravitas Technology Services, LLC.
Registrant Address1:                         475 Park Avenue, South
Registrant Address2:                         33 Floor
Registrant City:                             New York
Registrant State/Province:                   NY
Registrant Postal Code:                      10016
Registrant Country:                          United States
Registrant Country Code:                     US
Registrant Phone Number:                     +1.2124002256
Registrant Email:                            [email protected]
Administrative Contact ID:                   23513919
Administrative Contact Name:                 Gravitas Technology Services, LLC.
Administrative Contact Organization:         Gravitas Technology Services, LLC.
Administrative Contact Address1:             475 Park Avenue, South
Administrative Contact Address2:             33 Floor
Administrative Contact City:                 New York
Administrative Contact State/Province:       NY
Administrative Contact Postal Code:          10016
Administrative Contact Country:              United States
Administrative Contact Country Code:         US
Administrative Contact Phone Number:         +1.2124002256
Administrative Contact Email:                [email protected]
Billing Contact ID:                          45584150
Billing Contact Name:                        Brandie Elizaitis
Billing Contact Organization:                Gravitas
Billing Contact Address1:                    475 Park Avenue South
Billing Contact Address2:                    32nd Fl
Billing Contact City:                        New York
Billing Contact State/Province:              NY
Billing Contact Postal Code:                 10016
Billing Contact Country:                     United States
Billing Contact Country Code:                US
Billing Contact Phone Number:                +1.2126078209
Billing Contact Email:                       [email protected]
Technical Contact ID:                        23513919
Technical Contact Name:                      Gravitas Technology Services, LLC.
Technical Contact Organization:              Gravitas Technology Services, LLC.
Technical Contact Address1:                  475 Park Avenue, South
Technical Contact Address2:                  33 Floor
Technical Contact City:                      New York
Technical Contact State/Province:            NY
Technical Contact Postal Code:               10016
Technical Contact Country:                   United States
Technical Contact Country Code:              US
Technical Contact Phone Number:              +1.2124002256
Technical Contact Email:                     [email protected]
Name Server:                                 NS33.WORLDNIC.COM
Name Server:                                 NS34.WORLDNIC.COM
Created by Registrar:                        NETWORK SOLUTIONS INC.
Last Updated by Registrar:                   NETWORK SOLUTIONS INC.
Domain Registration Date:                    Tue Jul 20 18:03:07 GMT 2010
Domain Expiration Date:                      Sun Jul 19 23:59:59 GMT 2015
Domain Last Updated Date:                    Tue Jul 27 17:55:20 GMT 2010

>>>> Whois database was last updated on: Mon Jun 30 16:54:36 GMT 2014 <<<<
.CO Internet, S.A.S., the Administrator for .CO, has collected this
information for the WHOIS database through Accredited Registrars.  
This information is provided to you for informational purposes only 
and is designed to assist persons in determining contents of a domain 
name registration record in the .CO Internet registry database. .CO 
Internet makes this information available to you "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:  (1) to allow, enable, or otherwise support the transmission 
of mass unsolicited, commercial advertising or solicitations via direct 
mail, electronic mail, or by telephone; (2) in contravention of any 
applicable data and privacy protection laws; or (3) to enable high volume, 
automated,  electronic processes that apply to the registry (or its systems). 
Compilation, repackaging, dissemination, or other use of the WHOIS 
database in its entirety, or of a substantial portion thereof, is not allowed 
without .CO Internet's prior written permission. .CO Internet reserves the 
right to modify or change these conditions at any time without prior or 
subsequent notification of any kind. By executing this query, in any manner 
whatsoever, you agree to abide by these terms.  In some limited cases, 
domains that might appear as available in whois might not actually be 
available as they could be already registered and the whois not yet updated 
and/or they could be part of the Restricted list. In this cases, performing a 
check through your Registrar's (EPP check) will give you the actual status 
of the domain. Additionally, domains currently or previously used as 
extensions in 3rd level domains will not be available for registration in the 
2nd level. For example, org.co,mil.co,edu.co,com.co,net.co,nom.co,arts.co,
firm.co,info.co,int.co,web.co,rec.co,co.co. 
 
NOTE: FAILURE TO LOCATE A RECORD IN THE WHOIS DATABASE IS NOT 
INDICATIVE OF THE AVAILABILITY OF A DOMAIN NAME.   
 
All domain names are subject to certain additional domain name registration 
rules. For details, please visit our site at www.cointernet.co <http://www.cointernet.co>.
I'm planning on adding some functionality to the wizard where is checks the domain that was specified and looks to see if it is registered. If it is registered it checks using the default whois server whois.internic.net. If this returns something like "No match for domain GRAVITAS.CO" for example AND the domain is registered it will give you a dropdown list of common whois servers and an text input field to use a custom whois server if the server isn't in the drop down list. Then the check will be run with the -h <whois server> flag.

This should allow for a large amount of domain support. I'll try to get this in asap.

Thanks!
/Luke
/Luke
Locked