<div dir="ltr">Hi,<div><br></div><div>I am planning to validate an IP which is accepted part of input from user in cinder, I need to verify if IP address is valid and it is up in the network. The dirty way or only way that I know as of now is to create a socket object and perform <span style="color:rgb(0,0,0);font-family:monospace;font-size:16px;font-weight:bold">inet_aton()</span>and <span style="color:rgb(0,0,0);font-family:monospace;font-size:16px;font-weight:bold">gethostbyaddr()</span><br clear="all">

<div><br></div><div>Jut worried if these operations are safe to perform.</div><div><br></div>-- <br><div dir="ltr"><div><span></span>Thanks,</div><div>Ibad Khan</div><div>9686594607</div></div>
</div></div>