Re: DNS from a Kernel Extension
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -josh On Nov 10, 2006, at 5:41 PM, Curtis Jones wrote: I have a need for performing DNS resolution (name to address) for the use by a kernel extension, and it would be incredibly convenient if it could be performed within the kernel. I've looked around endless header files but haven't found anything helpful. I suspect that the "correct" approach would be to perform the dns resolution in a user process and send the result back to the kernel extension - but I thought I'd check first and see if there was anything I had missed. Suggestions appreciated. Thanks. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com The only way to do DNS in the kernel is to write code to format and parse the packets yourself using an in kernel UDP socket. You will also need to get a DNS server address. For this, you will probably need something running in user space to push the current DNS server address in to the kernel. You may want to consider the "correct" approach of doing the resolution in userspace and pushing the result in to the kernel. -Curtis _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/jgraessley% 40apple.com This email sent to jgraessley@apple.com smime.p7s
participants (1)
-
Josh Graessley