I've noticed that Hubitat is using Google's DNS (eg. 8.8.8.8) even when it's configured to use a different, local & router-based, service for DNS.
Is this expected?
It seems a odd for a disconnected device not to observe the environment-spec'd DNS server. The A
and PTR
lookups are resolving out to calls to a 3rd party, and local DNS names aren't being honored.
Version/Config information
- Hubitat Elevation, C-5 2.0.6.112
- Ubiquiti ER-12, issuing static IP addresses to Hubitat (via MAC:IP map)
- DNS Provider: Localized behind router (
dnsmasq
on192.168.6.1
) ultimately through 1.1.1.1
Background
I was debugging my Harmony integration config, and had tcpdump
open on my Router. I noticed explicit calls to 8.8.8.8 coming from my Hubitat Elevation (C5)
Samples
- Harmony using
initialize()
:
18:34:09.405163 IP 192.168.6.200.43751 > 8.8.8.8.53: 15595+ A? harmony-hub.<...mydomain...>. (48)
18:34:09.405259 IP 192.168.6.200.43751 > 8.8.8.8.53: 36046+ AAAA? harmony-hub.<...mydomain...>. (48)
18:34:09.405422 IP 8.8.8.8.53 > 192.168.6.200.43751: 15595* 1/0/0 A 192.168.6.132 (64)
18:34:09.405595 IP 8.8.8.8.53 > 192.168.6.200.43751: 36046 0/0/0 (48)
- Wemo using
refresh()
:
18:01:20.880261 IP 8.8.8.8.53 > 192.168.6.200.36443: 57875* 1/0/0 PTR wemo-family-cabinets.<...mydomain...>. (97)
18:01:24.623003 IP 192.168.6.200.49738 > 8.8.8.8.53: 17412+ PTR? 197.6.168.192.in-addr.arpa. (44)
18:01:24.623356 IP 8.8.8.8.53 > 192.168.6.200.49738: 17412 NXDomain 0/0/0 (44)
- Some background Google account stuff:
18:14:20.063142 IP 192.168.6.200.44190 > 8.8.8.8.53: 51764+ A? accounts.google.com. (37)
18:14:20.063233 IP 192.168.6.200.44190 > 8.8.8.8.53: 42849+ AAAA? accounts.google.com. (37)
18:14:20.072571 IP 8.8.8.8.53 > 192.168.6.200.44190: 51764 1/0/0 A 172.217.164.109 (53)
18:14:20.077758 IP 8.8.8.8.53 > 192.168.6.200.44190: 42849 1/0/0 AAAA 2607:f8b0:4005:809::200d (65)
18:14:23.349720 IP 192.168.6.200.43892 > 8.8.8.8.53: 25913+ A? homegraph.googleapis.com. (42)
18:14:23.349822 IP 192.168.6.200.43892 > 8.8.8.8.53: 56682+ AAAA? homegraph.googleapis.com. (42)
18:14:23.359714 IP 8.8.8.8.53 > 192.168.6.200.43892: 25913 7/0/0 CNAME googleapis.l.google.com., A 172.217.0.42, A 172.217.5.106, A 172.217.6.42, A 172.217.6.74, A 172.217.164.106, A 216.58.195.74 (172)
18:14:23.364324 IP 8.8.8.8.53 > 192.168.6.200.43892: 56682 2/0/0 CNAME googleapis.l.google.com., AAAA 2607:f8b0:4005:80b::200a (104)
I've checked my Router config, along with the DHCP-based DNS advertisements made to the Hubitat, and I can't see any references to 8.8.8.8
.
I'm assuming these are hard-wired inside Hubitat itself somewhere.
There are loose mentions in the Forums about DNS Resolvers, but I couldn't find anything that explicitly asked why an external service is being used, and why it appears to be wired up to Google.
Did I miss some piece of configuration?
Work-around
I've configured my Router to DNAT these calls back to where they should be. In my case, these first go through a local DNS service, provided by the Router (dnsmasq
).
These all resolve locally first, and pickup the correct DNS names for my local/LAN home-automation devices.