mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-25 09:36:31 -05:00
New Post
This commit is contained in:
parent
ed63996e67
commit
5b8aee2c97
1 changed files with 26 additions and 0 deletions
26
content/blog/piholedhcpdns.md
Normal file
26
content/blog/piholedhcpdns.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
title: "Configuring DHCP DNS in Pihole"
|
||||
date: 2020-05-25T23:36:51-04:00
|
||||
draft: false
|
||||
tags: ["network"]
|
||||
---
|
||||
|
||||
There are two scenarios I can imagine in where you want to configure the DNS set by PiHole
|
||||
|
||||
1. You have multiple PiHole's in your LAN
|
||||
2. You have a multi-layer DNS setup
|
||||
|
||||
In either case, we can utilize `dnsmasq` configurations in order to set the DNS option. You should already notice `01-pihole.conf` and `02-pihole-dhcp.conf` in `/etc/dnsmasq.d`, we'll need to create one that is numbered `03-*` or greater. I'll use `/etc/dnsmasq.d/03-dhcp-dns.conf` as my example.
|
||||
|
||||
To set the initial DNS server to be from the router.
|
||||
|
||||
```
|
||||
dhcp-option=6,192.168.0.1
|
||||
```
|
||||
|
||||
To set multiple DNS servers
|
||||
|
||||
```
|
||||
dhcp-option=6,192.168.0.2,192.168.0.3
|
||||
```
|
||||
|
Loading…
Reference in a new issue