# NTP Pointer in DHCP Server

**URL:** <https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588>\
**Category:** Duplicate\
**Created:** [September 15, 2019, 8:26pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588 "2019-09-15T20:26:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![afitzy](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/a/0ea827/32.png) [@afitzy](https://discourse.pi-hole.net/u/afitzy)\
**Post date:** [September 15, 2019, 8:26pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/1 "2019-09-15T20:26:44Z")

</div>

Add NTP pointer field to DHCP server in Pi-hole GUI.

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [September 15, 2019, 10:25pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/2 "2019-09-15T22:25:00Z")

</div>

Can you further explain the feature you are requesting? What does it accomplish, how, why, etc?

---

<div class="post-metadata">

**Author:** ![Stan-qaz](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/stan-qaz/32/5100_2.png) [@Stan-qaz](https://discourse.pi-hole.net/u/Stan-qaz)\
**Post date:** [January 25, 2020, 8:34pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/3 "2020-01-25T20:34:10Z")

</div>

Having the option to pass an NTP server address to clients would let the pi-hole owner specify a local or preferred server for time resolution.

Having a central setting for NTP in DHCP avoids having to change settings on each ntp client if your preferred server changes.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [January 25, 2020, 8:35pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/4 "2020-01-25T20:35:57Z")

</div>

Adding DHCP option fields for various DHCP lease payloads feels like it could get far out of hand. There are a ton of them.

---

<div class="post-metadata">

**Author:** ![Stan-qaz](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/stan-qaz/32/5100_2.png) [@Stan-qaz](https://discourse.pi-hole.net/u/Stan-qaz)\
**Post date:** [January 25, 2020, 8:39pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/5 "2020-01-25T20:39:06Z")

</div>

It could, having the most popular/useful as options and a by-number option to add the rest would be good.

See: [Dynamic Host Configuration Protocol (DHCP) and Bootstrap Protocol (BOOTP) Parameters](https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml)

---

<div class="post-metadata">

**Author:** ![Joulinar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/joulinar/32/12299_2.png) [@Joulinar](https://discourse.pi-hole.net/u/Joulinar)\
**Post date:** [February 2, 2020, 7:54pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/6 "2020-02-02T19:54:18Z")

</div>

Hi,

I created my own `42-pihole-ntp-dhcp.conf` within `/etc/dnsmasq.d` allowing me to share the NTP server

```auto
root@DietPi4:/etc/dnsmasq.d# ls -l
insgesamt 16
-rw-r--r-- 1 root root 1590 Jan 30 15:11 01-pihole.conf
-rw-r--r-- 1 root root 500 Feb 2 20:38 02-pihole-dhcp.conf
-rw-r--r-- 1 root root 1287 Jan 30 15:11 04-pihole-static-dhcp.conf
-rw-r--r-- 1 root root 362 Feb 2 20:39 42-pihole-ntp-dhcp.conf

```

The file contains a single line only `dhcp-option=option:ntp-server,192.168.0.1`. My hope is, that it will be persistent and did not get removed 🙃

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [February 2, 2020, 11:13pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/7 "2020-02-02T23:13:52Z")

</div>

> [@Joulinar](#):
>
> My hope is, that it will be persistent and did not get removed

Pi-Hole will not remove this file.

---

<div class="post-metadata">

**Author:** ![DanSchaper](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/danschaper/32/91_2.png) [@DanSchaper](https://discourse.pi-hole.net/u/DanSchaper)\
**Post date:** [February 3, 2020, 5:53am UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/8 "2020-02-03T05:53:40Z")

</div>

> [@Joulinar](#):
>
> > My hope is, that it will be persistent and did not get removed
> 
> Pi-Hole will not remove this file.

![giphy](https://discourse.pi-hole.net/uploads/default/original/2X/4/411a14b1f8365ea1329d6e72f2703ad7635f9afe.gif)

---

<div class="post-metadata">

**Author:** ![Joulinar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/joulinar/32/12299_2.png) [@Joulinar](https://discourse.pi-hole.net/u/Joulinar)\
**Post date:** [February 3, 2020, 1:49pm UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/9 "2020-02-03T13:49:01Z")

</div>

> [@jfb](#):
>
> Pi-Hole will not remove this file.

Hi Guys,  
thx for confirmation. Much appreciated.

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [June 13, 2020, 11:22am UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/10 "2020-06-13T11:22:46Z")

</div>

I'm going to close this FR and release the vote as the OP never explained what was requested in detail.  
If you would like to see "dhcp-option=42" implemented at the web interface, please vote here:

> [@Additional NTP Server UI Option for DHCP Settings](https://discourse.pi-hole.net/t/additional-ntp-server-ui-option-for-dhcp-settings/26233):
>
> The DHCP Settings page of the web GUI provides the ability to input the 'Router (gateway) IP address' to be used in a dhcp-option=3 (or dhcp-option=option:router) entry that will pass the address of the internet gateway router to dhcp clients. [image] It would be useful to have a similar mechanism to allow the administrator to provide the 'NTP Server IP address' to be used in a dhcp-option=42 (or dhcp-option=option:ntp-server) entry that would pass along the address(es) of preferred NTP server…

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [June 13, 2020, 11:22am UTC](https://discourse.pi-hole.net/t/ntp-pointer-in-dhcp-server/23588/11 "2020-06-13T11:22:48Z")

</div>


