Domain Name Expire Check?

If you have information, script, utility, or idea that can be useful for HostMonitor community, you welcome to share information in this forum.
timn
Posts: 184
Joined: Thu Nov 20, 2003 9:57 am
Location: United States

Domain Name Expire Check?

Post by timn »

Alex,

Our company manages in excess of 250 domain names. There is no centralized/designated "domain person" - different departments have their own agendas.

Inevitably, miscommunication results in domain names being allowed to expire when the shouldn't have. I've been asked if I can add expiration date checks to Advanced Host Monitor for domain names.

I already use your Certificate check script for several of our SSL certs.

I was wondering if it would be practical/feasible for you to adapt the WHOIS portion of your IP Tools code to create a script to check the expire date of a given domain name. It would work similar to your Certificate expire script. I'm thinking:

Usage: domaincheck.exe -domain:<domain_name> [-whois:<whois_server>] [-threshold:<days>] [-withinfo] [-timeout:<timeout>]

Parameters:
-domain : Name of the domain to check
-whois : Whois server to query
-threshold : Alert when domain expires in NN days or less. Default: 0
-withinfo : Tells the program to domain info
-timeout : Communication timeout (msec).

Examples:
domaincheck -domain:mydomain.com
domaincheck -domain:mydomain.com -whois:whois.godaddy.com

Thanks,

Tim
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Sorry, for delay.
Its hard to make utility that will work with all WhoIs server because such servers provide output in different formats, basically result of WhoIs request is just a text.

Anyway, there is such utility www.ks-soft.net/download/utils/domaincheck.zip
=============================
Usage: domaincheck.exe -domain:<domain_name> [-whois:<whois_server>] [-threshold:<days>] [-timeout:<timeout>]

Parameters:
-domain: Domain name to check
-whois: Whois server used for the query. Default: whois.internic.net
-threshold: Alert when domain registration expires within N days. Default: 7
-timeout: Communication timeout (msec). Default value: 5000 ms

Example: domaincheck.exe -domain:google.co.uk -whois:whois.nic.uk -timeout:800
=============================

It works with popular whois servers. If it will not work with your "favorite" server, just provide access to the server or sample of output and we will modify utility.

Also it works with some delays on Windows 7 x64... we did not find a fix yet.

Regards
Alex
timn
Posts: 184
Joined: Thu Nov 20, 2003 9:57 am
Location: United States

Post by timn »

It works great for our needs! Just 2 whois servers for all the domains and both work with your shell script!

The only problem was that I shot myself in the foot when I enabled all the tests at once. This caused the remote WHOIS server to throttle me for a couple hours. So I went in and varied the time intervals on all the tests so as to be considerate of the WHOIS server. Works fine now.

Thanks! You guys rock. As always....
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome :-)

Probably you can use "Non-simultaneously test execution" option for the folder where WhoIs tests located.
With this option enabled tests that located in the folder will not be executed at the same time.

Regards
Alex
timn
Posts: 184
Joined: Thu Nov 20, 2003 9:57 am
Location: United States

Post by timn »

Thank you! "Non-simultaneously test execution" is exactly what I needed!

I've been using Host Monitor for nearly 8 years. But I think it may be time for me to go back and re-read the user's manual again :)
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

Another great tool.

Just tried with .biz domains and get:

Code: Select all

- Status: Unknown
- Reply: Can't find expiration date
I used whois.biz and whois.internic.net. Other tld's are good.

Regards

BTW, this is my 100th post. :roll:
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What exactly domain should we try?

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

So far any .biz domain returns no expiration date. Even the mother herself whois.biz comes up empty. You could try [removed] also.

Regards
Last edited by xcentric on Mon Aug 22, 2011 9:12 am, edited 1 time in total.
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Well, we implemented this test as built-in test in HostMonitor version 9.00 and made some improvements in HostMonitor code.
So it works with whois.biz server and as I see checks various .BIZ domains just fine (including integrityinspections.biz).

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

Thanks Alex.

Looking forward to v9. It's not a big deal for the short term.

Regards
bmekler
Posts: 38
Joined: Tue Apr 17, 2012 4:51 am

Post by bmekler »

Doesn't work with whois.isoc.org.il - can't find expiration date.
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

What domain name can we check?

Regards
Alex
bmekler
Posts: 38
Joined: Tue Apr 17, 2012 4:51 am

Post by bmekler »

Any .il domain name, for example ynet.co.il.
KS-Soft
Posts: 12869
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

We will add support for this server in next version of HostMonitor.

Regards
Alex
Fc01
Posts: 2
Joined: Thu Jun 14, 2012 3:25 am

whois.co

Post by Fc01 »

I have some .co domains and I can't seem to find the whois.co server in the list of servers.

Would it be possible to add this?

regards.
Post Reply