Re: network namespace and DNS lookups
From: Dan Williams <hidden>
Date: 2012-12-18 17:21:22
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 [off-list ref] wrote:quoted
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