What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

OpenVPN tunnel client to use remote private DNS server to resolve hostname

dynaguy

New Around Here
I upgrade to RT-AC68U with Merlin 374.42.2.

OpenVPN client works. But I can't access remote site by using hostname. I set "Accept DNS Configration" to "Relaxed" and it doesn't work.

I was using a RT-N16 with TomatoUSB. On that firmware this works fine with some manual setting. So how to set this up on Merlin?

Thanks a lot.
 
Are you using the DNS pushed by the server?
relaxed should have allow you to use your router/ISP DNS.
Change it to strict to use only DNS from the vpn server.
Can you ping to external sites by ip address?
 
I had problems resolving domain names after rejecting the VPN server push (so I could use the selective routing scripts as described in another thread). The way around this for me was to add DNS servers to the custom config in the OpenVPN client settings:

eg
dhcp-option DNS 8.8.8.8
dhcp-option DNS 8.8.4.4

or any public DNS of your choosing.

Hope this helps
 
Last edited:
I did some research and I think Merlin need a custom setting section under LAN-->DHCP-->DNS. It appears to me that Merlin use dnsmasq and in my case I need to put some custom settings, e.g "server=/mycompany.lan/192.168.123.29" into the /etc/dnsmasq.conf
This will ensure that a DNS request for a host in "mycompany.lan" send to DNS server at 192.168.123.29.

My other option is use Tomato by Shibby but I'm not sure it's table or not.
 
I did some research and I think Merlin need a custom setting section under LAN-->DHCP-->DNS. It appears to me that Merlin use dnsmasq and in my case I need to put some custom settings, e.g "server=/mycompany.lan/192.168.123.29" into the /etc/dnsmasq.conf
This will ensure that a DNS request for a host in "mycompany.lan" send to DNS server at 192.168.123.29.

My other option is use Tomato by Shibby but I'm not sure it's table or not.

See the WIki for information on how to customize config files:

https://github.com/RMerl/asuswrt-merlin/wiki/Custom-config-files

This actually far more flexible than just a "custom option" field since it can be done on a wide range of config files, and it also allows you to actually modify the content, not just append to it.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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