Hi all
I’m using DNS over TLS with Quad9 as my DNS provider.
This works great in most circumstances, but when I want to connect to a public wifi, like at school or in the library, it’s not possible to open the Captive portal page, and I can’t use the network.
Is there some way to easily make this work? Maybe exclude these networks from private DNS?
Or a way to easily switch between network configurations?
I’m using systemd resolved, but configured with a private dns via my NixOs configuration.


Disable your dns over tls so you can register your MAC address and complete the portal requirements. Once registered, turn your dns back on.
This is the most straightforward way if I was not on NixOs.
If I want to change the DNS settings in my nix config, I need internet connection (unless it’s possible to rebuild while offline?)
I was trying to bypass this by just changing the DNS server for that specific network connection, but I didn’t get it to work. Because it has to use the DNS of the captive portal to be able to load the page
Requiring internet connectivity to make network changes seems like a major failure point?
Kinda. Not sure how other people do it on NixOs. I suppose they don’t put any network settings in their configuration.
Or maybe there is a way to rebuild offline.