richenou

Well-Known Member
PartnerNOC
Feb 17, 2004
86
0
156
hi all
I need your help for a script very usefull for all cpanel managers.

host is: ns1.server.com

I need to get the list of all domains on WHM and then to ping it
then, display them in a webpage if the domains don't ping on this host (ns1.server.com)

ex: ping toto.com if dont ping on ns1.server.com then display it in the page

can you make it in php?

thanks for your help.
 

richenou

Well-Known Member
PartnerNOC
Feb 17, 2004
86
0
156
<?php $domaine = 'domain.com';

echo gethostbyname($domaine); ?>


i tried this

but how can I get the list of my 100 domains in whm?

:rolleyes: