Linux Container Development
 help / color / mirror / Atom feed
From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman)
To: gagandeep singh <gaganthaparian-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
Cc: "containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org"
	<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Subject: Re: network namespaces
Date: Mon, 03 Feb 2014 23:57:05 -0800	[thread overview]
Message-ID: <87lhxrs432.fsf@xmission.com> (raw)
In-Reply-To: <COL128-W8738C1ACD5845F5152ED5D9AD0-MsuGFMq8XAE@public.gmane.org> (gagandeep singh's message of "Tue, 28 Jan 2014 10:26:30 +0530")

gagandeep singh <gaganthaparian-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> 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

      parent reply	other threads:[~2014-02-04  7:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-28  4:56 network namespaces gagandeep singh
     [not found] ` <COL128-W8738C1ACD5845F5152ED5D9AD0-MsuGFMq8XAE@public.gmane.org>
2014-02-04  7:57   ` Eric W. Biederman [this message]

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=87lhxrs432.fsf@xmission.com \
    --to=ebiederm-as9lmozglivwk0htik3j/w@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=gaganthaparian-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox