- Create a new VM with a 2 GB disk, don't preallocate and make sure all disks are less than 2 GB. Only give it 64 MB of RAM
- Attach the Ubuntu .iso to the CD and start the VM
- Build with the options you want
- Do the following:
- Install VMTools
- Edit /etc/dhcp3/dhclient.conf to send host-name "netres01";
- Restart the network to get into DNS and DHCP (if you already have one)
- Install DHCP and DNS and stop the services:
- Since this is a DNS server, I'll allow it to use a fixed IP address. Edit /etc/network/interfaces. Edit the forward and reverse zone files.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ssh ntp-simple snmpd snmp bacula-client build-essential linux-headers-$(uname -r)
cd /tmp
sudo mount /cdrom
sudo tar xvfz /cdrom/VMwareTools-1.0.0-27828.tar.gz
cd vmware-tools-distrib
sudo ./vmware-install.pl
sudo apt-get install dhcp3-server bind9 sudo
/etc/init.d/bind9 stop sudo /etc/init.d/dhcp3 stop
auto eth0You have to kill the existing dhclient process because ifdown/ifup doesn't (it wouldn't know how, really).
iface eth0 inet static
address 10.3.3.2
netmask 255.255.255.0
network 10.3.3.0
broadcast 10.3.3.255
gateway 10.3.3.3
pre-up iptables-restore < /etc/iptables.rules post-down iptables-save -c > /etc/iptables.rules
Change the key for the DNS server before starting it, or you'll have to manually look up the pids and kill the named processes. rndc stops working because the key has changed since named started.
If you had a name server from DNS before, it will still be in /etc/resolv.conf.
The biggest thing is to get the permissions right on the /etc/bind directories and files.
nsupdate
Set up the new DNS first and get it working.
No comments:
Post a Comment