Configuring BIND to use VM's DNS for specific domain
- by Srirangan
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