the-modem-distro / pinephone_modem_sdk

Pinephone Modem SDK: Tools to build your own bootloader, kernel and rootfs
GNU General Public License v3.0
593 stars 63 forks source link

Possible feature, setup custom DNS directly on modem #191

Open ghost opened 1 year ago

ghost commented 1 year ago

Would it be possible to add a feature to setup a custom DNS server on the modem?

Biktorgj commented 1 year ago

I added dnsmasq precisely to be able to forward dns queries, nothing stops you from editing its config (in /etc), though it won't survive a firmware update. I could make it check if /persist/dnsmasq.conf exists first, and if it doesn't, then load /etc/dnsmasq.conf. Would that be good enough?