From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: Re: IP -> hostname lookup in kernel module?
Date: 12 Dec 2001 11:46:09 -0800 [thread overview]
Message-ID: <9v8c61$gcn$1@cesium.transmeta.com> (raw)
In-Reply-To: <1008174218.3c17848ab4b69@home.hjc.edu.sg> <Pine.LNX.4.33.0112130035070.2697-100000@localhost.localdomain> <20011212173517.G17064@blu>
Followup to: <20011212173517.G17064@blu>
By author: antirez <antirez@invece.org>
In newsgroup: linux.dev.kernel
>
> There isn't, but you can create an UDP socket and to the query..
>
No you can't. There is no way that you can find out which nameservers
are configured.
> or run an userspace resolver daemon that talks with your
> module, or some other trick.
>
> BTW it isn't the kind of stuff to do in kernelspace.
> You may think about do it in a post-processing stage
> if possible, or to write a module that exports to userspace
> what you need from the kernel and do the rest in userspace.
Indeed.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>
next prev parent reply other threads:[~2001-12-12 19:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-12 16:23 Kernel-2.4.17pre8 & invalidate: busy buffer Chen Shiyuan
2001-12-12 16:36 ` IP -> hostname lookup in kernel module? Joe Wong
2001-12-12 16:35 ` antirez
2001-12-12 19:46 ` H. Peter Anvin [this message]
2001-12-13 9:29 ` Kernel-2.4.17pre8 & invalidate: busy buffer Benjamin Herrenschmidt
2001-12-13 11:41 ` Andreas Steinmetz
2001-12-13 14:35 ` Ulrich Wiederhold
2001-12-13 15:26 ` Matt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='9v8c61$gcn$1@cesium.transmeta.com' \
--to=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.