What's new

dnsmasq to local virtual host with OpenVPN config

  • 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!

tristanlee85

New Around Here
I am trying to route a specific host to a local IP using a jffs config script, but don't seem to be able to get the lookup to work correctly.

In dnsmasq.conf.add:
Code:
address=/mlocal.www.mydomain.com/192.168.1.120

In hosts.add:
Code:
192 168.1.120 mlocal.www.mydomain.com

When I do a nslookup from a device on my LAN, nothing resolves. Yes, dnsmasq service has been restarted. I have confirmed the config is loading correctly via the logs and verified the main hosts file gets appended to properly.

I also have OpenVPN configured for PIA which I am wondering if it is managing DNS and not performing the correct lookup for my defined hosts. Or perhaps I just have the above files wrong.

Any ideas?
 

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!
Top