1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

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

Discussion in 'VPN' started by nadieaqui, Apr 18, 2019.

  1. nadieaqui

    nadieaqui Occasional Visitor

    Joined:
    Dec 5, 2013
    Messages:
    18
    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
     
  2. eibgrad

    eibgrad Regular Contributor

    Joined:
    Feb 20, 2017
    Messages:
    148
    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 likes this.
  3. nadieaqui

    nadieaqui Occasional Visitor

    Joined:
    Dec 5, 2013
    Messages:
    18
    That was the solution. Thank You!
     
    L&LD likes this.