# Work with DHCP address instead of static IP address configuration

**URL:** <https://discourse.pi-hole.net/t/work-with-dhcp-address-instead-of-static-ip-address-configuration/561>\
**Category:** Implemented\
**Created:** [November 12, 2016, 7:17pm UTC](https://discourse.pi-hole.net/t/work-with-dhcp-address-instead-of-static-ip-address-configuration/561 "2016-11-12T19:17:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [November 12, 2016, 7:17pm UTC](https://discourse.pi-hole.net/t/work-with-dhcp-address-instead-of-static-ip-address-configuration/561/1 "2016-11-12T19:17:48Z")

</div>

Transporting [from GitHub](https://github.com/pi-hole/pi-hole/issues/629):

A lot of networks prefer DHCP addresses that are fixed by MAC over individual hard-coded static IP addresses. This can make central maintenance of IP addresses a lot easier. Another benefit is that it would allow to configure a machine in one network, then move it over to another network and it would "just work".

The feature request is for pi-hole to be able to work with DHCP provided IP-addresses. Upon boot/dhcp-change any configuration file that now has the fixed IP address would then need to be changed.

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [May 1, 2017, 11:06pm UTC](https://discourse.pi-hole.net/t/work-with-dhcp-address-instead-of-static-ip-address-configuration/561/2 "2017-05-01T23:06:15Z")

</div>

You can use `pihole -r` to do this. It's not automatic, but you can change the settings using this command.

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [May 1, 2017, 11:06pm UTC](https://discourse.pi-hole.net/t/work-with-dhcp-address-instead-of-static-ip-address-configuration/561/3 "2017-05-01T23:06:21Z")

</div>


