Yes it lets you do it. It doesn’t work.
https://browser.kagi.com/WebExtensions-API-Support.html
The webRequest API is key, dns is used, maybe a few more.
Looks like the macOS support has improved but iOS may never happen.