I am trying to implement captive portal with dnsmasq.
In dnsmasq config
address=/#/10.42.0.1
doesn't work,
so I have to use ugly:
address=/com/10.42.0.1
address=/uk/10.42.0.1
address=/org/10.42.0.1
address=/gov/10.42.0.1 ...
This redirects all listed domains fine, if in browser you go anywhere, however captive portal browser doesn't pop up by itself (checked no mac win and linux), and there is problem if site redirects to https (like facebook), my portal page is http only.
So how should it be setup correcltly to replace all domain names or even just make browser pop up with captive portal page?
UPD: acording to man page:
--address=/#/1.2.3.4 will always return 1.2.3.4 for any query not answered from /etc/hosts or DHCP and not sent to an upstream nameserver by a more specific --server directive.
So how can I make sure there is no upstream hosts for the NetworkManager - dnsmasq?