Re: [Users] Multiple DNS servers to an Ubuntu 18.04 container

2020-01-27 Thread Paulo Coghi - Coghi IT
Valuable information! Including the part that we can remove the NAMESERVER entry from the configuration and define inside the container by its OS way. Thanks, Dmitry! You can use 'vzctl set --save' instead, it still works correctly. > ie. > > vzctl set $id --save --nameserver 127.0.0.1 --nameserv

Re: [Users] Multiple DNS servers to an Ubuntu 18.04 container

2020-01-27 Thread Dmitry Konstantinov
You can use 'vzctl set --save' instead, it still works correctly. ie. vzctl set $id --save --nameserver 127.0.0.1 --nameserver 8.8.8.8 will configure both nameservers. or you can just remove the NAMESERVER string from the configuration file completely and define whatever you wish using the stand

Re: [Users] Multiple DNS servers to an Ubuntu 18.04 container

2020-01-27 Thread Paulo Coghi - Coghi IT
Thanks! The format NAMESERVER="x.x.x.x y.y.y.y" on ve.conf works! Just to mention, multiple --nameserver parameters only add one nameserver (the last one, if I remember correctly). So, is there a way through the command line to define multiple nameservers? Thanks again! In the ve.conf file the

Re: [Users] Multiple DNS servers to an Ubuntu 18.04 container

2020-01-27 Thread Jonathan Wright
In the ve.conf file the entries can be on the same line separated by spaces.  Ex: NAMESERVER="127.0.0.1 8.8.8.8" I believe to do it on command line you can pass --nameserver multiple times. On 1/27/20 10:33 AM, Paulo Coghi - Coghi IT wrote: Hello OpenVZ community, I configured an Ubuntu 18.0

[Users] Multiple DNS servers to an Ubuntu 18.04 container

2020-01-27 Thread Paulo Coghi - Coghi IT
Hello OpenVZ community, I configured an Ubuntu 18.04 container and everything is fine, except that I can't define multiple DNS servers. My server need one nameserver to resolve external addresses and one internal (127.0.0.1) because it's a DNS server through Bind. I tried `prlctl set MyCT --name