<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>So here is my DNSMASQ problem.</div>

<div> </div>

<div>I'm running to VirtualBox Ubuntu 16.04 servers on two seperate 2011 mac mini servers (macos High Sierra).</div>

<div>Each of the two VirtualBox Ubuntu servers runs a LAMP website (Drupal based) and a DNSMASQ dns server. </div>

<div>The network is controlled by a Fritz!Box 7590. In the configuration the two different DNSMASQ servers are listed instead of the standard provider DNS.</div>

<div> </div>

<div>VirtualBox One:</div>

<div>    static IP     192.168.2.50<br/>
    website IP     192.168.2.50    xxx.mydomain.com<br/>
    DNSMASQ IP     192.168.2.50</div>

<div> </div>

<div>VirtualBox Two:</div>

<div>    static IP     192.168.2.55<br/>
    website IP     192.168.2.55    yyy.mydomain.com<br/>
    DNSMASQ IP     192.168.2.55</div>

<div> </div>

<div>Fritz!Box (router)</div>

<div>    Gateway        192.168.2.1<br/>
    DHCP        192.168.2.100-200</div>

<div> </div>

<div>So far so good. This setup seemed to have worked for hals a year. Then recently I had to restore one of the VirtualBox servers. And now it only works somewhat. In short:</div>

<div> </div>

<div>Each of the two DNSMASQ servers will only resolve the website on the other VirtualBox, the website on the same VirtualBox will resolve to localhost.</div>

<div> </div>

<div>So if I want to be able to reach the domain in VirtualBox One I have to use the DNSMASQ server in VirtualBox Two and the other way around.</div>

<div> </div>

<div>Here is the dnsmasq.conf file from VirtalBox Two (for Box One just substitute the 192.168.2.50 for 192.168.2.55).</div>

<div> </div>

<div>cat /etc/dnsmasq.conf<br/>
----------------------------------------------------<br/>
# DNS configuration<br/>
port=53</div>

<div>#/etc/dnsmasq.conf<br/>
domain-needed<br/>
bogus-priv<br/>
expand-hosts<br/>
 <br/>
# The address 192.168.2.55 is the static IP of this server <br/>
# You can find this ip by running ifconfig and look for the <br/>
# IP of the interface which is connected to the router.<br/>
listen-address=127.0.0.1<br/>
listen-address=192.168.2.55<br/>
bind-interfaces<br/>
 <br/>
# Use open source DNS servers<br/>
server=8.8.8.8<br/>
server=8.8.4.4<br/>
 <br/>
# Create custom 'domains'.<br/>
# Custom 'domains' can also be added in /etc/hosts</div>

<div>address=/xxx.mydomain.com/192.168.2.50<br/>
address=/yyy.mydomain.com/192.168.2.55</div>

<div># address=/www.anotherdomain.com/192.168.2.50<br/>
# address=/anotherdomain.com/192.168.2.50</div>

<div># address=/www.stillanotherdomain.ch/192.168.2.50<br/>
# address=/stillanotherdomain.ch/192.168.2.50<br/>
----------------------------------------------------</div>

<div> </div>

<div>I am not very experienced with DNS servers, so can you possible point me in the right direction if you see an error.</div>

<div> </div>

<div>Thanks<br/>
Paul<br/>
 </div></div></body></html>