Set Up a Simple Caching Name Server with Virtuozzo


Virtuozzo attempts to send packets out of the internal interface of the Hardware Node using the Public IP Address of the Container.  The easy way to do this is to simply run a caching nameserver on the hardware node, only available on the private interface.

[root@virtuozzo ~]# yum install bind

Loading "security" plugin

Loading "rhnplugin" plugin

rhel-x86_64-server-vt-5   100% |=========================| 1.2 kB    00:00

rhel-x86_64-server-5      100% |=========================| 1.2 kB    00:00

Excluding Packages in global exclude list

Finished

Setting up Install Process

Parsing package install arguments

Resolving Dependencies

--> Running transaction check

---> Package bind.x86_64 30:9.3.4-6.0.2.P1.el5_2 set to be updated

--> Finished Dependency Resolution


Dependencies Resolved


=============================================================================

 Package                 Arch       Version          Repository        Size

=============================================================================

Installing:

 bind                    x86_64     30:9.3.4-6.0.2.P1.el5_2  rhel-x86_64-server-5  965 k


Transaction Summary

=============================================================================

Install      1 Package(s)

Update       0 Package(s)

Remove       0 Package(s)


Total download size: 965 k

Is this ok [y/N]: y

Downloading Packages:

(1/1): bind-9.3.4-6.0.2.P 100% |=========================| 965 kB    00:00

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing: bind                         ######################### [1/1]


Installed: bind.x86_64 30:9.3.4-6.0.2.P1.el5_2

Complete!

[root@virtuozzo ~]# cat > /etc/named.conf <_EOF_

options

{

        directory  "/var/named";

        forwarders { 10.0.80.11; 10.0.80.12; };

        listen-on  { 10/8; };

};

_EOF_

[root@virtuozzo ~]# chkconfig named on

[root@virtuozzo ~]# chkconfig --list named

named           0:off   1:off   2:on    3:on    4:on    5:on    6:off

[root@virtuozzo ~]# service named start

Starting named:                                            [  OK  ]

[root@virtuozzo ~]#


Alternatively you can add a bridged network interface via Virtuozzo, assign a unique internal IP Addresses from your internal netblock, and add a static route.   Internal routing will provide access to your internal infrastructure at SoftLayer so please keep this in mind if you have a mixed network and relaxed filtering on the servers in your internal network.