Page 1 of 1

dns resolve

Posted: Wed Dec 02, 2020 2:43 pm
by mrdebug
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?

Re: dns resolve

Posted: Thu Dec 03, 2020 1:33 am
by ESP_Sprite
I think we support the inet_pton call; you could see if that succeeds before calling dns_gethostbyname.