• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DNS from a Kernel Extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >DNS from a Kernel Extension (From: "Curtis Jones" <email@hidden>)

  • Prev by Date: DNS from a Kernel Extension
  • Next by Date: Re: DNS from a Kernel Extension
  • Previous by thread: DNS from a Kernel Extension
  • Next by thread: Re: DNS from a Kernel Extension
  • Index(es):
    • Date
    • Thread