-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathDNS_NOTES.txt
66 lines (53 loc) · 2.27 KB
/
DNS_NOTES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
DNS problems
[UPDATE: there is now an option in the Config>Charts tab. Select "Home" and save the chart config. Reload the browser.]
There is a dns related problem that occurs if you dont connect via the pi's built-in WIFI.
If you connect over the pi's own wifi net, it provides dns name resolution as well.
But if you are connecting over your inhouse wifi/ethernet(?) the dns doesnt
resolve the pi's address properly.
To explain in more detail (I use my boat name as the pi's hostname):
The chart widget needs to open lots of tiles as you pan and zoom. But browsers only allow
2 x TCP/IP connections per host, so its slow going. So we cheat by
defining a.motu, b.motu, c.motu, d.motu as subdomains.
Then we get 8 connections at a time, 2 each.
The pi does this, and expects it, but your home network just
has the one address (motu). So the browser tries to get a chart
from a.motu, get a dns time-out, and so on - endless 'processing'
while nothing is found.
The quick and dirty fix is to add the extra hostnames to your dns,
but that may not be possible easily depending on your setup. You
could add them to the hosts file on your PC, that will work. So
my pi's /etc/hosts looks like:
+++++++++++++++++++++++++++
127.0.0.1 localhost www.zkoss.org
#use YOUR boats name here!
#wifi
#192.168.0.1 motu a.motu b.motu c.motu d.motu
#home
10.1.1.3 motu a.motu b.motu c.motu d.motu
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 raspberrypi
+++++++++++++++++++++++
And on my laptop I put:
+++++++++++++++++++++++++
127.0.0.1 localhost.localdomain localhost a.localhost b.localhost c.localhost d.localhost
::1 rth localhost6.localdomain6 localhost6
#10.1.1.5 spartar
127.0.1.1 rth
#Temp fix for freeboard
10.1.1.3 motu a.motu b.motu c.motu d.motu
#10.1.1.128 www www.42.co.nz
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
++++++++++++++++++++++++++++
And it works!
I'll need to find a better way for non-pi networks I think :-)
Robert