The Luci web-interface instructions mention to set custom DNS servers for the LAN interface:
Navigate to Network β Interfaces. Tap 'Edit' next to LAN. 'Advanced Settings', 'Use custom DNS servers': '127.0.0.1', tap '+', and add '0::1' as a second one. 'DNS Weight': '20'. 'Save'.
The Command-line instructions don't. Neither does stubby's README.
The LuCi instructions are primarily if you want queries from the router itself to go through Stubby. E.g. in the LuCI case updating the package lists won't go through Stubby if you don't do this, because /etc/resolv.conf on the router will not be pointing to Stubby, in a typical OpenWrt install with Stubby.
EDIT: actually it's a little more complicated than that - I have review my configuration to see what's what and remember why this is needed.
I recall running into some difficulty with ::1 for this use case but I do not remember what it was. I know they are supposed to be equivalent, but something didn't like the shorter form.