OpenWrt Forum Archive

Topic: One public DNS for router and another for clients

The content of this topic has been archived on 18 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I’d like to configure a OpenWRT router to use a public DNS (e.g. 8.8.8.8) to resolve the DDNS service installed on the router. But I want all clients who connect to be redirected to our DNS server which filters certain websites.

Our DNS server requires authentication using DDNS before it will respond to DNS queries.

Ideally I’d like to set this up using Luci.

Thanks for your help

Is the DDNS service already configured and running on the router?

Yes, you can configure the router to use 8.8.8.8, but the clients, through dhcp, would receive a different dns server configuration.

I'm not at my router right this moment, so hopefully someone else can chime in and show you what to configure.

Yes DDNS is already installed and working using 8.8.8.8. But if I configure the router to use my DNS server it doesn't work as it's not authenticated and it won't authenticate until DDNS resolves....catch 22

I can configure DHCP for clients with my DNS server, but I want to make sure if a DNS server is manually configured on a client it gets redirected to use my DNS server.

Configure your router to use 8.8.8.8.
Configure the DHCP server to advertise your DNS to your clients.
Block any forwarding from LAN to WAN on port 53; or even better, redirect all forwarding traffic for port 53 towards your DNS.

The discussion might have continued from here.