openwrt / luci

LuCI - OpenWrt Configuration Interface
Apache License 2.0
6.38k stars 2.53k forks source link

firewall editing slow when DNS unavailable #1165

Open porjo opened 7 years ago

porjo commented 7 years ago

The following is copied from ticket #670 on the old bug tracker:

network -> firewall -> traffic rules -> edit (on any traffic rule)

it take ages to load

condition to reproduce: set /etc/resolv.conf to "nameserver 192.168.1.222" (any ip that don't exists)

observation: using tcpdump/strace is showing that luci is doing reverse dns lookup on multiple IPs, then wait for dns timeout

I'm having this issue with recent LEDE install using luci package git-17.129.29271-6467df3-1.

Are the reverse lookups necessary on each rule edit?

lweller commented 7 years ago

I have still the same effect with git-17.152.82987-7f6fc16-1, but a checked my dns config and it's slow although everything seams to work fine with nslookup on console.