02-16-2013, 05:39 PM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Feb 2013
Device: Kindle 4 NT
|
Browser issue accesing server with dynamic IP
I've a little web server running on a NAS at home that I want to access with the Kindle 4 NT webbrowser (to display a calender). My router uses DynDNS so that I can access it via a URL like example.homeftp.net. The connection to the ISP is shortly interrupted every 24 hours so that the server gets a new IP every day.
When loading the site with the Kindle browser it works only as long as the Server IP doesn't change. After the IP changes the Kindle browser cannot access the server. Rebooting the Kindle does solve this problem for the next day. So my preliminary conclusion is that the browser doesn't respect the TTL information from the DNS server and caches the IP for a URL "forever". Has anyone else observed this behavior and solved it? Is there a configuration file entry that disables DNS caching? I am using firmware 4.1.1 (jailbreaked with usbNetwork access). |
02-16-2013, 06:01 PM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Have you examined the "lifetime" field of that DNS return?
It might just be set for longer than you ISP keeps it up. |
Advert | |
|
02-16-2013, 06:10 PM | #3 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Feb 2013
Device: Kindle 4 NT
|
Quote:
Other browsers do not show this behavior (I've tried Safari on iOS and Mac as well as Firefox and IE on W7). Is there a simple way to display the DNS return? |
|
02-16-2013, 06:25 PM | #4 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
[root@kindle root]# ping -4 google.com
Quote:
so ping K4CalDisplay.dyndns.org (or whatever) as shown here [root@kindle root]# ping xxx.dyndns.org Quote:
Last edited by twobob; 02-16-2013 at 06:35 PM. |
||
02-16-2013, 06:33 PM | #5 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I.E: Code:
core2quad tmp # dig google.com ; <<>> DiG 9.7.3 <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3927 ;; flags: qr rd ra; QUERY: 1, ANSWER: 11, AUTHORITY: 4, ADDITIONAL: 4 ;; QUESTION SECTION: ;google.com. IN A ;; ANSWER SECTION: google.com. 300 IN A 74.125.228.5 - - - - - Now try that with **your** dyna-dns name using the DNS server that your ISP provides you. The lifetime field may not be what dyna-dns claims it is, or it may be getting re-written somewhere. |
|
Advert | |
|
02-16-2013, 06:35 PM | #6 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Like so...
Quote:
|
|
02-16-2013, 06:38 PM | #7 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
You know....
I kind of recall this being a problem... but IIRC the kindle does actually return the right IP if you ping from the command. It's the browser that caches the IP I think. hmm. I might be remembering that wrong. but I think I am right. perhaps a lateral solution is required. simply inject the CORRECT IP for the URLs:80 into the browser? somehow? every 5 mins? something like that. |
02-16-2013, 06:40 PM | #8 |
Junior Member
Posts: 4
Karma: 10
Join Date: Feb 2013
Device: Kindle 4 NT
|
Ping works well, but the browser is not able to connect to the server:
[root@kindle /]# ping example.homeftp.net PING example.homeftp.net (79.217.45.123): 56 data bytes 64 bytes from 79.217.45.123: seq=0 ttl=63 time=2.111 ms 64 bytes from 79.217.45.123: seq=1 ttl=63 time=5.714 ms 64 bytes from 79.217.45.123: seq=2 ttl=63 time=5.166 ms 64 bytes from 79.217.45.123: seq=3 ttl=63 time=5.034 ms (URL and IP changed for privacy reasons) |
02-16-2013, 06:56 PM | #9 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Now please answer my question about what dig returns. This problem would get solved faster if you would share what you already know about the problem, without us having to pull each fact out of you, one post at a time. |
|
02-16-2013, 06:58 PM | #10 |
Junior Member
Posts: 4
Karma: 10
Join Date: Feb 2013
Device: Kindle 4 NT
|
Thanks for your quick help.
dig returns a lifetime of "60" in the ANSWER SECTION |
02-16-2013, 08:11 PM | #11 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
|
|
Tags |
kindle 4 nt browser |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue with Browser | Skyde | Kindle Fire | 2 | 12-21-2011 04:16 AM |
Calibre-server port not open issue on Fedora server | stueyboy | Devices | 0 | 08-17-2011 04:57 PM |
Browser issue with PB 903 | Edria | PocketBook | 0 | 06-29-2011 02:51 AM |
Calibre server on DSL with dynamic IP | Hamlet53 | Library Management | 13 | 06-01-2011 10:23 AM |
Browser issue | niceguyeddy | enTourage Archive | 4 | 04-30-2010 07:23 PM |