WAN DNS resolver

Hello, is it possible to setup OpenWrt router as DNS resolver for my smartphone, my work pc ..etc. Because my router have adguard ad blocking, have multiple DNS resolvers setup for each usecase (like youtube.com always try first, for social networks etc.) i have limited knowlage using anything on WAN, please show me info i can read.

p.s. my plan have static ip

Your OpenWrt should be your WAN DNS resolver by default. Are you having issues, DNS leaks - or maybe you desire to open DNS to the Public?

1 Like

i mean i want use IP of my home OpenWrt router for dns resolving my smartphone from cellular network))0

1 Like

OK, so you would:

  1. ALLOW Input 53/udp from wan
  2. Setup your phone's connection to use your home Static WAN address as DNS server*

:warning: This will expose the router's DNS service to the Internet (I wouldn't advise this).

*- Android devices require you to use a hostname instead of IP address when setting up an alternative DNS server

1 Like

would it be major security flaw?

1 Like

Use a VPN e.g. WireGuard to connect to your home you can either route only traffic to your router for DNS or all traffic through the VPN


As I mentioned above - opening 53/udp on your WAN would not be advisable for security reasons.

As an alternative, you could setup e.g. Wireguard VPN and use DNS thru the app/VPN connection as @egc noted.

1 Like

WireGuard banned in UAE, i cant use it now.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.