support for roaming and captive portal detection?

Martin Monperrus martin.monperrus at
Mon May 14 20:27:25 UTC 2018

Hi all,

I'm using unbound as DNS forwarder on my laptop.

When I'm traveling, each time I am behind a captive portal, I have to manually set the name server
to the one provided by the ISP:

    cat /var/run/NetworkManager/resolv.conf >> /etc/resolv.conf

This is only temporary. Once I'm logged in, I then manually remove the added nameserver from
/etc/resolv.conf so as to restore DNS privacy-aware and secure mode.

How to automate this? What kind of captive portal detection is compatible with unbound?

Best regards,

PS: Firefox has such a feature in their new DNS-over-HTTPS feature, see
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Unbound-users mailing list