Re: DNS from a Kernel Extension
Re: DNS from a Kernel Extension
- Subject: Re: DNS from a Kernel Extension
- From: Josh Graessley <email@hidden>
- Date: Fri, 10 Nov 2006 17:53:30 -0800
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.
-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.
-Curtis
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden