From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman) Subject: Re: network namespaces Date: Mon, 03 Feb 2014 23:57:05 -0800 Message-ID: <87lhxrs432.fsf@xmission.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: (gagandeep singh's message of "Tue, 28 Jan 2014 10:26:30 +0530") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: gagandeep singh Cc: "containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" List-Id: containers.vger.kernel.org gagandeep singh writes: > hi, > > > > i am working on network name spaces from last 1 month . i have make a namespace configure all . and make a bridge simply using linux bridge "brctl" .everything is working fine but there is problem regarding domain name server in network namespace when i ping in network name space as > > ip netns exec myvpn ping 8.8.8.8 > > it works fine > > but when i ping as > > ip netns exec myvpn ping www.google.com > > just error as ping:unknown host > > after i see i should use file resolv.conf in /etc/netns/myvpn/ > > so i copy reolve .conf file from /etc/resolv.conf and resolvconf directory to /etc/netns/myvpn/ > > now when i ping in netnamespace > > "i get error > > bind:etc/netns/myvpn/resolve --> /etc/resolve.conf failed no such directory > > time out" > > please help me how to resolve it thanks It sounds like your dns server specified in /etc/resolv.conf is simply not reachable from your network namespace. Without at least a shell script to reproduce what you have done I don't expect anyone will be able to help you. Eric