softypit / esp32_mqtt_eq3

esp32-based mqtt node to control EQ-3 BLE TRVs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DNS queries are failing with a fixed ip address schema

Ysbrand opened this issue · comments

commented

It seems to be that there is no defined DNS server when one is using a static ip (instead of DHCP).

So when I put a ntp server in (like nl.pool.ntp.org) the name doesn't get resolved and the timestamps are stuck in 1970's.

I've worked around this by putting in a fixed ip address but obviously that is more as a workaround, and now my timestamps are indeed working.

Suggestion: either put in a hardcoded, well known, DNS server like 8.8.8.8 or add an extra field for the DNS server.

thanks Ysbrand saved me hours of googling..