Allow setting IP address of NTP server(s) via DHCP Option

Per the topic heading, an enhancement to allow users to configure the Hubitat NTP server IP address via DHCP Option.

1 Like

as far as i know (could be wrong) that is not part of the dhcp protocols .. at least no routers or devices i have , have the option for that.. most devices i have that allow setting it have a separate interface for it.

i assume hubitat would also have to add it to the network settings or create an access point for that.

DHCP option 42 sets the NTP server. A quick web search indicates it may not be well supported by client devices.

6 Likes

I, too, would love this setting added as I host my own NTP server. It is set up in my DHCP scope to push it to clients but, but it is true that the option isn't widely supported so it would be real nice to have an option to set it manually.

1 Like

The DHCP option to provide NTP servers is pretty standard these days. The main issues are IoT devices… too many of these treat NTP as an afterthought.

1 Like

You can force the NTP server, if desired, using an endpoint. See the following:

4 Likes

Thanks. That's super handy to know!

1 Like

My old Asus router using Merlin firmware had a built in NTP server and it would route all requests to it. I lost this feature when I transitioned to Unifi equipment. I don’t believe Unifi offers such a feature, at least I haven’t been able to find it, and curious where folks are running local NTP servers.

1 Like

It doesn't.

Windows or Linux server, router, Raspberry Pi. There are numerous options.

1 Like

I run mine on my router (pfSense)

2 Likes

Domain server.

1 Like

Options are part of DHCP but are not supported on most consumer level devices. Run bind 9 on a linux platform. A raspberry pi can run it. Not only can options hold the address for NTP but also assign VoIP vlan and things like smtp (email) relay, and where the directory server is. Many details pertaining to the network environment can be defined. Thing is the client must request what option it needs before the data will be delivered. So even if the DHCP service has all those options the client must ask and Hubitat does not.

1 Like