I have used a typical script on my openwrt startup, downloading a hosts file as such:
wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts -O /etc/hosts
The above command is placed on "Local startup" tab of "Startup" section in LuCI. It states:
This is the content of /etc/rc.local.
It WAS working a few days ago, but I have since been implementing some DNS filtering, by installing https-dns-proxy. Now, it cannot resolve the host raw.githubusercontent.com
when the above script is executed during boot. Manual execution of the command works perfectly.
excerpt from logread
Sat Aug 12 14:40:33 2023 daemon.notice procd: /etc/rc.d/S95done: Downloading 'https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts'
Sat Aug 12 14:40:38 2023 daemon.notice procd: /etc/rc.d/S95done: Failed to send request: Operation not permitted
curl
doesn't work either:
curl: (6) Could not resolve host: raw.githubusercontent.com
What gives? Why is it not resolving during boot?