How to set DNS exclusively for a Network Namespace in Linux

Solution 1:

You must create directory /etc/netns/_namespace_name_ yourself , and place different version resolv.conf there.