Configuring BIND to use VM's DNS for specific domain
Posted
by
Srirangan
on Server Fault
See other posts from Server Fault
or by Srirangan
Published on 2012-11-14T07:40:08Z
Indexed on
2012/11/14
11:05 UTC
Read the original article
Hit count: 288
I work on a project for which I use an Ubuntu server vm on an Ubuntu host.
The VM runs all the services / webapps through haproxy and nginx and serves it on the domain (xyz.com).
I manually modify my resolv.conf to use the VMs IP address as the nameserver and I can run my app on the host browser.
The problem is I am modifying an auto-generated file (resolv.conf) and I need to do it each time.
Is there a smart way to say:
-- are you accessing xyz.com?
-- if yes use VM's DNS server, else use the hosts
© Server Fault or respective owner