Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to add cron job to check server ip on blacklist.

something like

curl  'http://mxtoolbox.com/SuperTool.aspx?action=blacklist%3a142.11.193.83' | grep 'you are on a blacklist.'
wget 'http://mxtoolbox.com/SuperTool.aspx?action=blacklist%3a142.11.193.83' -Oq-  | grep 'you are on a blacklist.'

But it only download page without waiting mxtoolsbox checks.

What curl/wget request will be correct in this case?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You will be better off doing the DNS requests to the blacklists directly yourself.

The overall bandwidth and time taken will be lower and you won't have to worry about parsing HTML and/or Javascript when you get the responses back. Mxtoolbox are under no obligation to send the HTML or javascript back in the same format every time.

If you want to get fancy, you can run your own caching DNS resolver locally so that the DNS TTLs are automatically honoured and you din't cause unnecessary burden on the blacklist DNS servers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.