Hi, in order to resolve an address I using the function
dns_gethostbyname().
Sometimes the customer uses a standard ip address like 192.168.1.123.
Is there a way to determine if dns_gethostbyname() is necessary or not?
dns resolve
-
- Posts: 9746
- Joined: Thu Nov 26, 2015 4:08 am
Re: dns resolve
I think we support the inet_pton call; you could see if that succeeds before calling dns_gethostbyname.
Who is online
Users browsing this forum: Google [Bot], Usama Masood and 97 guests