Alternative for deprecated dns_parse_packet

I'm developing in Swift and working on parsing DNS queries. I'm considering using dns_parse_packet, but I noticed that dns_util is deprecated (although it still seems to work in my limited testing).

As far as I know, there isn’t a built-in replacement for this. Is that correct?

On a related note, are there any libraries available for parsing TLS packets—specifically the ClientHello message to extract the Server Name Indication (SNI)—instead of relying on my own implementation?

Related to this post.

Alternative for deprecated dns_parse_packet
 
 
Q