G
Guest
Hi,
I have an application where I monitor the status of a machine using it's IP
address. I would like to log an error when the machine goes down - but I want
to add the name of the machine along with the IP address in the log. Any
ideas how to achieve this? I have seen several examples of obtaining the IP
address given the host name using the dns.gethostbyname function but have not
seen anything that will work the other way.
Thanks in advance.
Ajay Mirmira
I have an application where I monitor the status of a machine using it's IP
address. I would like to log an error when the machine goes down - but I want
to add the name of the machine along with the IP address in the log. Any
ideas how to achieve this? I have seen several examples of obtaining the IP
address given the host name using the dns.gethostbyname function but have not
seen anything that will work the other way.
Thanks in advance.
Ajay Mirmira