Perl Ping Loop

Hi All

i have an issue with ping, we are using dhcp and so if the machine has been offline and i ping it, i get " ping: unknown host <hostname>

is there a way i can stick a loop somewhere so it would keep trying when it got the unknown host error and then when the machine came back online just carried out the normal ping command

thanks

A

For that matter, will it have a static IP address, that you can use instead so you don't ever get the unknown hostname error?

nope,it is a mix between static and dhcp, if it helps it the hostname will never change, so for example if i ping c12b2 it will always be that

in other words i just need to loop to work until the machien gets and ip from the dhcp server