Ok, here's better suggestion.
Look for DNSMASQ. You might be able to use yum to install it. It supplies lightweight DNS and caching plus DHCP for a local network. Be sure to remove or disable any other DNS or DHCP servers or caches like squid or bind and you might want to remove the resolvconf package if it's installed. It's very easy to install and it's even in the SL archive: http://ftp.scientificlinux.org/linux...w/D.group.html #yum install dnsmasq Will probably do it for you. The config file is /etc/dnsmasq.conf Look for the line below in dnsmasq.conf and set it to the address range you want for DHCP dhcp-range=192.168.0.50,192.168.0.150,12h Check all other entries in the file to make sure it's configured correctly. Then add this line to top of /etc/resolv.conf nameserver 127.0.0.1 Make sure the following is in /etc/dhcp3/dhclient.conf #supersede domain-name fugue.com home.vix.com; prepend domain-name-servers 127.0.0.1; request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope; Restart dnsmasq and off you go... Test with: nslookup google.com 127.0.0.1 |
Quote:
My friend Siggma and other friends, Thank you very very very much for your help. it was very helpful. I got working after reading too much, and here is the solution: 1- modify named.conf and add the private zone with domain name and the reverse zone also. 2- modify resolv.conf file and include the server ip 127.0.0.1 3- create myDomain.any file and also x.x.x.arpa-addr file for the reverse zone. thanks again for your help, Jefn |
All times are GMT -5. The time now is 01:18 PM. |