OpenVZ Forum


Home » General » Support » Caching nameserver (Is it useful)
Re: Caching nameserver [message #49233 is a reply to message #42760] Thu, 11 April 2013 22:15 Go to previous messageGo to previous message
mustardman is currently offline  mustardman
Messages: 91
Registered: October 2009
Member
I realize this thread is quite old but I wanted to update it because I found a simple solution.

Assuming you have root access to the node or your ISP will do it for you, just add 127.0.0.1 as the first nameserver entry for your container in addition to the other 2.

So now when the container reboots and /etc/resolv.conf is rewritten each time it has localhost as the first entry followed by the public DNS servers the node is set to use. Once that is taken care of you can do local dns caching in the container using BIND.

[Updated on: Thu, 11 April 2013 22:17]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: yum command not found within openvz container
Next Topic: How can we vzctl 101 set --cpuunits > 500 000
Goto Forum:
  


Current Time: Sat Aug 23 16:57:49 GMT 2025

Total time taken to generate the page: 0.09158 seconds