How to insert EDNS0 packet in DNSProxyProvider

Hi everyone,

I'm developing a DNSProxyProvider app to route the DNS traffic to my DNS server. I have followed documentation to implement handleNewFlow function.

And I want to insert extra information (eg. device id, device serial number) using EDNS0 format, does anyone know how to modify the DNS data in iOS swift?

Any input would be appreciated!

Best Regards, Leo

The iOS SDK does not have APIs for manipulating DNS messages at that level. You will need to either write or acquire a library for parsing and rendering DNS messages.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to insert EDNS0 packet in DNSProxyProvider
 
 
Q