Random Project

.co.uk FIX PROVIDED

For anyone having issues with co.uk or any other domains, the fix is actually quite easy.

vi the script and edit this line:

elif [ $TYPE == ‘nic’ ];
then
expiration=`cat ${FILE} | awk ‘/Expiration date:/’ | cut -d ‘:’ -f2`

Change Expiration to Expiry, so it should look like this.

elif [ $TYPE == ‘nic’ ];
then
expiration=`cat ${FILE} | awk ‘/Expiry date:/’ | cut -d ‘:’ -f2`

———

Basically, what is occurring is that when the whois record is returned, the script is looking for the string “expiration date” which no longer exists.

And this fix works for any TLD that is not working. From the same nagios server, run a whois query: ‘ whois DomainName ‘ and see what the results turn back.

Then it is as simple as altering the check_domain script to match what is returned by whois.