[Nodogsplash] Redirect when there is no Internet connection.

Moritz Warning moritzwarning at web.de
Thu Jan 22 12:07:55 UTC 2015


Neat!

I will get this into the FAQ!

On 01/22/2015 12:34 PM, Dan Staples wrote:
> I wrote a tiny DNS proxy server for this purpose that simply sends clients a fake A record response when your DNS server responds with the refused RCODE flag set (which happens when you don't have an internet connection). All other DNS responses it sends back to the client untouched. I've only done basic testing on it and plan to improve it in the coming weeks, but feel free to try it out: https://github.com/opentechinstitute/commotion-dnsproxy
> 
> Dan
> 
> On 01/22/2015 01:57 AM, Moritz Warning wrote:
>> Yes, that is right.
>>
>> When there is no Internet connection, then there is no DNS.
>> Th Browser fails to resolve the DNS record and won't make
>> a http request.
>>
>> When there is no Internet connection, you could configure your
>> DNS server to resolve everything to a specific IP address.
>> Though, this is not really recommended. :>
>>
>> On 01/22/2015 07:34 AM, edwin wrote:
>>> Hi, 
>>>
>>>  
>>>
>>> I use the nodosplash in the openwrt, it works quite well. but there is an
>>> annoying issue. The redirect doesn't work when there is no network
>>> connection. 
>>>
>>>  
>>>
>>> For example, if there is internet connection, I type http://www.apple.com/ .
>>> it will direct to splash page first. 
>>>
>>>  
>>>
>>> But if there is no internet connection, the www.apple.com won't be parse and
>>> the browser don't direct to the splash page. 
>>>
>>> If I type some ip, for example 2.2.2.2, it will direct to the splash page in
>>> this case. 
>>>
>>>  
>>>
>>> The reason should because the browser doesn't issue a 80 request because it
>>> don't have the ip address? 
>>>
>>>  
>>>
>>> I wonder if it is possible to solve this in nodogsplash or has to configure
>>> other applications in OpenWrt? 
>>>
>>>  
>>>
>>> Best Regards
>>> Edwin
>>>
>>>
>>>
>>>  
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Nodogsplash mailing list
>>> Nodogsplash at ml.ninux.org
>>> http://ml.ninux.org/mailman/listinfo/nodogsplash
>>>
>>
>>
>>
>>
>> _______________________________________________
>> Nodogsplash mailing list
>> Nodogsplash at ml.ninux.org
>> http://ml.ninux.org/mailman/listinfo/nodogsplash
>>
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://ml.ninux.org/pipermail/nodogsplash/attachments/20150122/e360bbb1/attachment.pgp>


More information about the Nodogsplash mailing list