<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Sun, Jul 22, 2018 at 10:29 PM Stef Bon <<a href="mailto:stefbon@gmail.com">stefbon@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">Hi,<div><br></div><div>I'm writing a ssh client, and I want it to be able to do a dns lookup of sshfp records.</div><div>The ipv4 address is known, as wel as the hostname.</div><div>I've found the code about resolving:</div><div><br></div><div><a href="https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients/" target="_blank">https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients/</a><br></div><div><br></div><div>How can I make it to find sshfp records?</div></div></blockquote><div><br></div>From the same page, "Use ResolveRecord() in order to resolve arbitrary resource records. The call will return the binary RRset data. This calls is useful to acquire resource records for which no high-level calls such as ResolveHostname(), ResolveAddress() and ResolveService() exist. In particular RRs such as MX, SSHFP, TLSA, CERT, OPENPGPKEY or IPSECKEY may be requested via this API."</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>