Hello,
I have connected the lan of my parents (remote) and my own lan (local) via wireguard.
Every machine at remote can be reached via its IP address without problems.
But how to use their dns names, without defining every machine in my hostnames table?
I found this. about selective DNS forwarding. So I added the entry "dhcp.@dnsmasq[0].server='/dr.lan/192.168.1.1'" and restarted dnsmasq afterwards.
But when I try to ping a machine i.e. "TrueNAS.dr.lan" i get "bad address".
When I log in to the remote router I can ping ie. "TrueNAS.dr.lan". So DNS at the remote site seems to work fine.
uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
dhcp.@dnsmasq[0].local='/hr.lan/'
dhcp.@dnsmasq[0].domain='hr.lan'
dhcp.@dnsmasq[0].server='/dr.lan/192.168.1.1'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.lan.start='200'
dhcp.lan.limit='250'
dhcp.lan.leasetime='1h'
dhcp.lan.ra_management='1'
dhcp.lan.dhcp_option='42,192.168.2.1' '6865i,66,https://192.168.2.12/OpenWrt/mitel/' '60,6865i,AastraIPPhone6865i'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
dhcp.@domain[0]=domain
dhcp.@domain[0].name='R2S'
dhcp.@domain[0].ip='192.168.2.1'
dhcp.@domain[1]=domain
dhcp.@domain[1].name='NTP'
dhcp.@domain[1].ip='192.168.2.1'
dhcp.@domain[2]=domain
dhcp.@domain[2].ip='192.168.1.1'
dhcp.@domain[2].name='R2S.dr.lan'
dhcp.@host[0]=host
dhcp.@host[0].name='R2S'
dhcp.@host[0].ip='192.168.2.1'
dhcp.@host[0].mac='98:ab:c4:bf:39:7e'
dhcp.@host[0].dns='1'
Henning