Installing a standard Bind DNS server on an VPS (openvz)31 Jan 2009
All of our name servers I use are virtual servers and we add them into our network as OpenVZ VPS systems. Here is the setup I use for setting up a Bind server on an OpenVZ VPS with CentOS 5.
Setup the Open VZ VPS and get into the VPS:
Now that you are in the VPS update the OS and get Bind updated:
Get the DNS key through dns-keygen (copy the key):
Start the DNS Setup:
I am not going to get into details on how to setup your named.conf – as mainly this is a command reference for myself in the future (aren’t I selfish). However, here is my list:
- Remove the Caching Server View (localhost_resolver) because we do not need it because we are not using the caching only name server
- Setup the zones for internal and external and point them to the touched files above (named.external.zones and named.internal.zones)
- Make sure you are not in a position where you can fall subject to the cache poison.