Solaris 10 - Running bind9 within a zone/container

Martin Wismer martin.wismer at bluewin.ch
Tue Feb 9 13:49:34 UTC 2010


Hello

On 09.02.10 14:20, J.D. Bronson wrote:
> I am trying to run bind9 chrooted within a Solaris zone (Container)
> and I cant get the dev tree to work.
>
> I cannot use mknod in a container
> and trying to symlink it also results in failure.
>
> I can run named just fine in the 'global' solaris zone but not
> a separate container zone.
>
> anyone have this working and could offer some assistance?

It depend which CPU Architecture you have. sparc and intel (amd) in the 
Example:

The Character Device in the globale / root Zone , the node number's, 
should be the same

on a sparc (in the globale Zone):

ls -ldnL /dev/poll /dev/random /dev/urandom
crw-rw-rw- 1 0 3 138, 0 Feb  9 13:52 /dev/poll
crw-r--r-- 1 0 3 190, 0 Jan 13 06:17 /dev/random
crw-r--r-- 1 0 3 190, 1 Jan 13 06:02 /dev/urandom

--> and so I did the Devices in the globale Zone for the Solaris-Zone  dns1
mknod opt/chroot/bind/dev/poll c 138 0

so it look's like:
ls -ldn /opt/zones/dns1zone/root/opt/chroot/bind/dev/*
crw-rw-r-- 1 0 0  21, 0 Jun  9  2008 
/opt/zones/dns1zone/root/opt/chroot/bind/dev/conslog
crw-rw-r-- 1 0 0  13, 2 Jun  9  2008 
/opt/zones/dns1zone/root/opt/chroot/bind/dev/null
crw-rw-r-- 1 0 0 138, 0 Mar 29  2009 
/opt/zones/dns1zone/root/opt/chroot/bind/dev/poll
crw-rw-r-- 1 0 0 190, 0 Jun  9  2008 
/opt/zones/dns1zone/root/opt/chroot/bind/dev/random
crw-rw-r-- 1 0 0  42, 0 Jun  9  2008 
/opt/zones/dns1zone/root/opt/chroot/bind/dev/tcp
crw-rw-r-- 1 0 0  41, 0 Jun  9  2008 
/opt/zones/dns1zone/root/opt/chroot/bind/dev/udp
crw-rw-r-- 1 0 0 190, 1 Jun  9  2008 
/opt/zones/dns1zone/root/opt/chroot/bind/dev/urandom

The same thing with little difference on a amd / x86:

ls -ldnL /dev/poll /dev/random /dev/urandom
crw-rw-rw- 1 0 3 135, 0 Jan  2 17:29 /dev/poll
crw-r--r-- 1 0 3 149, 0 Jan  3 02:10 /dev/random
crw-r--r-- 1 0 3 149, 1 Jan  2 17:28 /dev/urandom

--> and so I did the Devices in the globale Zone for the  solaris-Zone  cns
mknod opt/chroot/bind/dev/poll c 135 0

ls -ldn /opt/zones/cnszone/root/opt/chroot/bind/dev/*
crw-r--r-- 1 0 0  21, 0 Dec 20  2002 
/opt/zones/cnszone/root/opt/chroot/bind/dev/conslog
crw-r--r-- 1 0 0  13, 2 Dec 18  2002 
/opt/zones/cnszone/root/opt/chroot/bind/dev/null
crw-rw-r-- 1 0 0 135, 0 Jun 26  2009 
/opt/zones/cnszone/root/opt/chroot/bind/dev/poll
crw-r--r-- 1 0 0 190, 0 Dec 18  2002 
/opt/zones/cnszone/root/opt/chroot/bind/dev/random
crw-r--r-- 1 0 0  42, 0 Dec 18  2002 
/opt/zones/cnszone/root/opt/chroot/bind/dev/tcp
crw-r--r-- 1 0 0  41, 0 Dec 18  2002 
/opt/zones/cnszone/root/opt/chroot/bind/dev/udp
crw-r--r-- 1 0 0 190, 1 Dec 18  2002 
/opt/zones/cnszone/root/opt/chroot/bind/dev/urandom


I hope it help's. Have fun. Greetings from Switzerland
   Martin.Wismer.





More information about the bind-users mailing list