<div dir="ltr">OpenSSL uses gethostbyname/gethostbyaddr<br><br>grep -r gethost . will give you some clues</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 19, 2020 at 11:51 PM SIMON BABY <<a href="mailto:simonkbaby@gmail.com">simonkbaby@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>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. </div><div><br></div><div>1. Does it use the OS supported utilities like nslookup, gethostip etc? </div><div>2. Do we need a recursive dns server IP address to define in resolv.conf?</div><div>3. Can I  know the APIs and files where I can start looking (for the dns resolution).</div><div><br></div><div>Thank you for your time.</div><div><br></div><div>Regards</div><div>Simon</div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">SY, Dmitry Belyavsky</div>