* network namespace and DNS lookups
@ 2012-12-18 15:09 Ravi Aysola
2012-12-18 15:49 ` Ravi Aysola
0 siblings, 1 reply; 3+ messages in thread
From: Ravi Aysola @ 2012-12-18 15:09 UTC (permalink / raw)
To: netdev
Has there been any work in any of the recent kernels to limit the DNS lookup
to a particular network namespace? Do we have any facility to specify the
DNS resolvers on network namespace basis (such as /etc/ns/resolv.conf)?
thank you
ravi/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: network namespace and DNS lookups
2012-12-18 15:09 network namespace and DNS lookups Ravi Aysola
@ 2012-12-18 15:49 ` Ravi Aysola
2012-12-18 17:22 ` Dan Williams
0 siblings, 1 reply; 3+ messages in thread
From: Ravi Aysola @ 2012-12-18 15:49 UTC (permalink / raw)
To: netdev
I think I sent my earlier email a bit prematurely. I do have
/etc/netns/<namespace-name>/resolv.conf
files under each of my namespaces. Now the question is, how does a
user space process
(say bind) look at a namespace specific resolv.conf instead of
default one? Have any of
these standard applications been modified to work with namespace
specific config files?
thanks again
ravi/
On Tue, Dec 18, 2012 at 10:09 AM, Ravi Aysola <ravi.mlists@gmail.com> wrote:
> Has there been any work in any of the recent kernels to limit the DNS lookup
> to a particular network namespace? Do we have any facility to specify the
> DNS resolvers on network namespace basis (such as /etc/ns/resolv.conf)?
>
> thank you
> ravi/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: network namespace and DNS lookups
2012-12-18 15:49 ` Ravi Aysola
@ 2012-12-18 17:22 ` Dan Williams
0 siblings, 0 replies; 3+ messages in thread
From: Dan Williams @ 2012-12-18 17:22 UTC (permalink / raw)
To: Ravi Aysola; +Cc: netdev
On Tue, 2012-12-18 at 10:49 -0500, Ravi Aysola wrote:
> I think I sent my earlier email a bit prematurely. I do have
> /etc/netns/<namespace-name>/resolv.conf
> files under each of my namespaces. Now the question is, how does a
> user space process
> (say bind) look at a namespace specific resolv.conf instead of
> default one? Have any of
> these standard applications been modified to work with namespace
> specific config files?
Wouldn't that be the glibc resolver's domain? DNS lookups aren't done
by the kernel, but by glibc in userspace. And glibc is also what reads
resolv.conf, so most things DNS-namespace related would need to happen
there.
Dan
> thanks again
> ravi/
>
> On Tue, Dec 18, 2012 at 10:09 AM, Ravi Aysola <ravi.mlists@gmail.com> wrote:
> > Has there been any work in any of the recent kernels to limit the DNS lookup
> > to a particular network namespace? Do we have any facility to specify the
> > DNS resolvers on network namespace basis (such as /etc/ns/resolv.conf)?
> >
> > thank you
> > ravi/
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-18 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-18 15:09 network namespace and DNS lookups Ravi Aysola
2012-12-18 15:49 ` Ravi Aysola
2012-12-18 17:22 ` Dan Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox