test bind before moving to production

Jeremy C. Reed jreed at isc.org
Thu Jul 3 14:39:29 UTC 2014


On Thu, 3 Jul 2014, brian wrote:

> I'm new to bind. I want to be able to test the dns server on my local
> machine before launching it by putting the domain names (ie example.com) in
> my browser and browsing the site.
> 
> 
> Both the dev and production machines are CentOS. I assume I'll need to edit
> the host file to redirect to the local dns. But with this method I'm not
> sure how it will resolve multiple domains (i.e. example.com and
> example2.com).

The host file (/etc/hosts I assume) won't help. You can use 
/etc/resolv.conf and have nameserver line point to your localhost for 
testing.

Or use dig with the @ argument to set the address of the nameserver to 
use. For example, "dig @127.0.0.1 www.example.com". Then also try that 
from outside systems to using the @ with the network interface's 
address.


More information about the bind-users mailing list