From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: James Loosli <loosli@gmail.com>, netdev@vger.kernel.org
Subject: Re: Issue with /etc/netns/${nsname}/hosts
Date: Wed, 2 Sep 2015 18:24:29 +0200 [thread overview]
Message-ID: <55E722BD.70108@6wind.com> (raw)
In-Reply-To: <CA+pPspp_b+50Z6+VNr4Y4K2BguHJZ9ykKCZ8j3aaFRkBOrbZGA@mail.gmail.com>
Le 02/09/2015 01:23, James Loosli a écrit :
> I seem to have an issue with using namespace-specific hosts files.
> Here's an example.
>
> I have different entries for foo.com in my hosts file for the
> namespace and the system-wide hosts file;
>
> root@server-01 Tue Sep 01 04:15:02pm
>> cat /etc/netns/nsXX-XXX-240-3/hosts | grep foo
> 1.2.3.4 foo.com
> root@server-01 Tue Sep 01 04:15:15pm
>> ip netns exec nsXX-XXX-240-3 cat /etc/hosts | grep foo
> 1.2.3.4 foo.com
> root@server-01 Tue Sep 01 04:15:19pm
>> cat /etc/hosts | grep foo
> 0.0.0.0 foo.com
>
> But when I try to get curl, ping or other utilities to use that hosts
> file entry, they ignore the namespace-specific file.
>
> root@server-01 Tue Sep 01 04:16:02pm
>> ip netns exec ns91-227-240-3 curl -vv foo.com
Probably a copy and paste error, but the netns name was nsXX-XXX-240-3 in your
example above.
Can you confirm?
prev parent reply other threads:[~2015-09-02 16:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-01 23:23 Issue with /etc/netns/${nsname}/hosts James Loosli
2015-09-02 16:24 ` Nicolas Dichtel [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=55E722BD.70108@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=loosli@gmail.com \
--cc=netdev@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.