Problem solving name servers locally

I have configured an openwrt device as AP for a LAN so no cable in WAN port. All seems to works, wireless client can authenticate and connect to the SSID configured. Yes all clients works as expected but the router doesn't, the router can't solve ip addresses from server names, the namserver passed by dhcp server is not used.
There is a way the router is using nameservers passed by the LAN dhcpd?

Piviul

router or AP ?

is it using a static IP ?
then you need to add the DNS IP (perhaps gw too) manually to the config.

If you actually use openwrt with dnsmasq in the actual router this usually work by itself.

But the world ain’t perfect and my experience is that you in practice must wait up to the 12h default lease time every client have so they ask for a renew of their leases before all dns names work properly.

If the AP is configured as a real dumb AP, then the issue is on one main router. Does it run OpenWrt?

I was thinking that an AP is a router too, a particular type of big family of routers....

dynamic and the DHCP receive even namservers for the lan but that are not used, the AP tries to solve the name locally. :frowning:

indeed, but config would be different.
in the world on openwrt what was sold as an AP could be a router, and vice versa.

then please post your /etc/config/network file.

All the client connected to the AP receive his IP (and nameservers, gateway etc...) from the LAN dhcpd and all works, client can resolve names, can browse the LAN and can browse the internet. But when the AP receives his IP, nameservers etc. from the dhcpd, the AP get and set the ip but doesn't seems to use nameservers and resolve the name locally.

You can’t have 2 DHCP servers in the same network.
The AP ain’t supposed to do anything “smart”. It only ties ethernet to wifi.

1 Like

was https://openwrt.org/docs/guide-user/network/wifi/wifiextenders/bridgedap followed ?

When you say main router do you mean the server that host the dhcpd? Remember that all the LAN clients that receives the ip from the dhcpd can resolve names using the nameserver received from the dhcp.

thank you frollic, I hadn't disabled dnsmasq, all now works!

Have a great day!

Piviul

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