Easy to understand DNS server with captive portal trigger.
- Creates one DNS server and one HTTP server.
- The HTTP server handles the webpage.
- The DNS server redirects the trigger urls to the target address of the HTTP server.
- A router that support DNS redirection to a local device and the creation of an hotspot without the password.
- Any device that can run node.js. We'll call it server from now on.
- Connect the server to the router via ethernet.
- Assign a static ip address to the server.
- Set the server's ip address as the DNS server in your router's settings.
- Install node.js and npm in the server.
- Clone this repository in a directory of the server.
- cd to the directory and run
npm install
. - Start the DNS/HTTP servers with npm start.
You can set it to start on boot so every time the server gets rebooted it will run the program.
- iOS
- macOS
- Windows
- Ubuntu (maybe other distros with Gnome, I haven't tried)
- Android
- Google Chrome
- Firefox
๐ค sonodima
- Github: @sonodima