How to redirect public web to local ip [file]

ip openwrt ;
target web;

how to make the web when open the device connected to our openwrt automatically redirects to

please help

Local DNS overrides for A and AAAA records for dnsmasq override global ones, won't help you against clients opting for DoH or DoT though - and especially google using hsts and certificate pinning will make overriding google owned domains rather infeasible. So yes, you can do that, but it most likely won't work.


but the target in question is not

then be more specific, or pick a better example.

openwrt ip example is

well when he opens it auto redirects to

Perhaps what you need is a "captive portal"?