OpenSSL uses gethostbyname/gethostbyaddr grep -r gethost . will give you some clues
On Wed, Aug 19, 2020 at 11:51 PM SIMON BABY <simonkb...@gmail.com> wrote: > I was looking at the openssl 1.0.2j code and trying to find how it > resolves the dns domain name IP address from name. > > 1. Does it use the OS supported utilities like nslookup, gethostip etc? > 2. Do we need a recursive dns server IP address to define in resolv.conf? > 3. Can I know the APIs and files where I can start looking (for the dns > resolution). > > Thank you for your time. > > Regards > Simon > -- SY, Dmitry Belyavsky