Asuswrt Merlin, resolve client lan names on server-side?

nadieaqui

Occasional Visitor
Asuswrt Merlin:
I have a bidirectional OpenVPN connection running on 2 Asuswrt Merlin routers (firmware is current).
But, I cannot perform a "nslookup pc.client.lan" on the OpenVPN Server?
What I would like to do is resolve client lan names on the server.
Does anyone know of a solution?
[I spent several days searching and trying but could not find a solution]

server lan: 192.168.0.x
client lan: 192.168.1.x

Here is what I can do:
client> nslookup pc.server.lan
client> ping pc.server.lan
server> ping ip-client-lan (e.g. 192.168.1.25)

Here is what I *cannot* do:
server> nslookup pc.client.lan
server> ping pc.client.lan
 

eibgrad

Senior Member
Make sure DNSMasq is configured on both sides w/ the following directive.

Code:
interface=tun*
This tells the DNS servers to listen for queries from the OpenVPN tunnel's network interface. By default, they will only listen to the default network interface (br0).
 

nadieaqui

Occasional Visitor
Make sure DNSMasq is configured on both sides w/ the following directive.

Code:
interface=tun*
This tells the DNS servers to listen for queries from the OpenVPN tunnel's network interface. By default, they will only listen to the default network interface (br0).
That was the solution. Thank You!
 

nadieaqui

Occasional Visitor
Make sure DNSMasq is configured on both sides w/ the following directive.

Code:
interface=tun*
This tells the DNS servers to listen for queries from the OpenVPN tunnel's network interface. By default, they will only listen to the default network interface (br0).
I upgraded the Client to Merlin 384.16.
And,
1) I have "interface=tun*" in DNSMasq on both server and client.
2) Client has "Inbound Firewall" = Allow

However, the OpenVPN server cannot resolve client lan names.
Here is what I *cannot* do:
server> nslookup pc.client.lan
server> ping pc.client.lan

[FYI: before posting, I tried searching but could not find a solution]
Does anyone know of a solution?
 
Last edited:

nadieaqui

Occasional Visitor
I upgraded the Client to Merlin 384.16.
And,
1) I have "interface=tun*" in DNSMasq on both server and client.
2) Client has "Inbound Firewall" = Allow

However, the OpenVPN server cannot resolve client lan names.
Here is what I *cannot* do:
server> nslookup pc.client.lan
server> ping pc.client.lan

[FYI: before posting, I tried searching but could not find a solution]
Does anyone know of a solution?
Solved. Add client domain name (client.lan) and its DNS server (192.168.1.1) to Server DNSMasq; Client has "Inbound Firewall" = Allow; and reboot server.

For example, in dnsmasq.conf.add on OpenVPN Server -- I have the following lines
interface=tun*
server=/client.lan/192.168.1.1

now, this works.
server> nslookup pc.client.lan
server> ping pc.client.lan
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top