A local stand alone DNS server, or the DNS Forwarder built into m0n0wall?
I've got two local standalone DNS servers. m0n0wall provides DHCP, DHCP client will use m0n0wall for DNS.
Site 1Network 10.99.99.0/24
Gateway 10.99.99.1 (m0n0wall 1.8.1)
Zone office.example.com
DNS-Server 10.99.99.2
Site 2 (opens tunnel to site 1)
Network 10.99.100.0/24
Gateway 10.99.100.1 (m0n0wall 1.8.1)
Zone home.example.com
DNS-Server 10.99.100.4
DNS forwarder settings on site 2, 10.99.100.1<dnsmasq>
<domainoverrides>
<domain>100.99.10.IN-ADDR.ARPA</domain>
<ip>10.99.100.4</ip>
<descr/>
</domainoverrides>
<domainoverrides>
<domain>99.99.10.in-addr.arpa</domain>
<ip>10.99.99.2</ip>
<descr>Office internal</descr>
</domainoverrides>
<domainoverrides>
<domain>home.example.com</domain>
<ip>10.99.100.4</ip>
<descr/>
</domainoverrides>
<domainoverrides>
<domain>office.example.com</domain>
<ip>10.99.99.2</ip>
<descr/>
</domainoverrides>
<regdhcp/>
<enable/>
</dnsmasq>
Edit:
Connecting the two sites only works when the remote tunnel interface is set to LAN. The documentation[1] says:
If you are connecting to a remote server, then WAN is your option.
However, using WAN I get this error:
Mar 10 09:23:01 racoon: ERROR: failed to begin ipsec sa negotication.
Mar 10 09:23:01 racoon: ERROR: no configuration found for 37.24.165.50.
37.24.165.50 was the current WAN interface address of site 2. Establishing the tunnel only works when the interface option is set to LAN.
[1]
http://doc.m0n0.ch/handbook/ipsec-tunnels.html