DNS server that support advertising when User first join to wifi network
Idea shared by hoangchau - June 14, 2016 at 9:05 PM
Under Consideration
Dear simpledns,
I want to setup dns server that support:
1. I setup new DNS IP in my ADSL mondem
2. when user first join to my network and visit first web url  will show my flash page
httpx//wifi.garden DNS is exactly i want to.
Please suggest to me the type of plugin that I can coding or how i config
Thank you!

1 Reply

Reply to Thread
JH Software Replied
September 6, 2016 at 2:36 AM
Employee Post
The main problem doing this through DNS is that browsers (Chrome, I.E., etc.) have their own DNS cache with a fixed timeout (disregard DNS TTL values). I.E. used to be 30 minutes (not sure if this has changed). For Chrome it is one minute. In Chrome, you can enter the address "chrome://net-internals/#dns" to see cached entries.
So if you redirect a user's first DNS request to your own IP address (to show some custom web page), then their browser will remember this redirect for some time - meaning that the user cannot access the originally requested page until after this timeout - or they close/re-open all browser windows.
That said, it is possible to create a plug-in to do this - but complex. It would have to be a combination of a DHCP server (to record when clients come and go) along with some call back system to register when it is OK for clients to access the real Internet.
We might consider making such a plug-in if enough users are interested in this. Please vote on this thread...

Reply to Thread