Link to home
Start Free TrialLog in
Avatar of Shannon Adams
Shannon Adams

asked on

Simple BIND config on CentOS 5.x

Running CentOS 5 - fully patched
selinux and iptables are both disabled
bind and bind-chroot installed

I setup a very small network at some offsite trade shows a few times a year.  I setup a web server using Apache.  The server address is 10.10.10.10.  I have clients connect through a Cisco switch for connectivity (and DHCP).  I have them just browse to 10.10.10.10 to hit the application.

I would like to configure bind on that same server and point the switch so that clients use the same IP 10.10.10.10 for DNS.  The 10.10.10.10 needs to have bind configured so that orderentry.companyname.com points to 10.10.10.10.  Therefore, I can tell my users to hit a more familiar URL versus a hard to remember IP address.  

Will someone please guide in creating a simple named.conf file that would work for this?  Also, where should this file be located before attempted to start the named service?

Thanks.  
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It'd be simpler to setup dnsmasq with a hosts file with local definitions for what you're doing.  

Configuration for dnsmasq is pretty simple in almost all cases. The program has collected a fair few options as it has developed but most of them are not needed most of the time. A machine which already has a DNS configuration (ie one or more external nameservers in /etc/resolv.conf and any local hosts in /etc/hosts) can be turned into a nameserver simply by running dnsmasq, with no options or configuration at all. Set the IP address of the machine running dnsmasq as the DNS server in all the other machines on your network, and you're done.
(From http://www.thekelleys.org.uk/dnsmasq/docs/setup.html)