How can dhclient be made namespace aware?
<p>I am using namespaces to separate a few physical interfaces on a server. The routing works perfectly.
Also I have a folder for each namespace in /etc/netns/ e.g. /etc/netns/namespaceA/resolv.conf so that DNS works fine as well.</p>

<p>The problem arises when using DHCP with dhclient.
I am running dhclient from inside a namespace and am getting this error. </p>

<pre><code>(namespaceA)root@tc-vm:~#dhclient
RTNETLINK answers: File exists
mv: cannot move '/etc/resolv.conf.dhclient-new.2740' to '/etc/resolv.conf': Device or resource busy
</code></pre>

<p>I found out that the mv in /etc/resolvconf/update.d/libc contains a mv which might cause the problem.</p>

<p>How can dhclient be made namespace aware?</p>