How to install DHCP and DNS on Fedora / Centos / Redhat box;
yum -y install dhcp.i386 bind.i386
Set services to auto start using ntsysv — services are called “dhcpd” and “named”.
How to configure dhcp;
nano /etc/dhcpd.conf — configure as per sample provided. The sample is usually located in the same directory.
service dhcpd restart – should start without problem if done correctly
Note: dhcp range has to be on the same network as your adapter. You can run dhcpd from the command line to diagnose any issues.
How to configure bind (DNS);
I usually just forward DNS requests to my internal router. To do this just edit /etc/resolve.conf and place the following line in the file;
nameserver 192.168.9.1
Use your ip above then all should be good. Test by pinging a domain like www.yahoo.com etc… You should get an ip back even if you don’t get successful pings (due to firewall etc). nslookup is also another quick and easy way to check DNS requests.