Changing IPs
This commit is contained in:
parent
2e3ec03edf
commit
c438bbc7cf
4 changed files with 12 additions and 11 deletions
|
@ -90,23 +90,23 @@ Test your configuration with dig
|
|||
> __Note__: change the IP to your new Pi-Hole's IP
|
||||
|
||||
```bash
|
||||
dig google.com @192.168.1.248
|
||||
dig google.com @192.168.1.5
|
||||
# Expecting "status: NOERROR"
|
||||
```
|
||||
|
||||
You can also test for DNSSEC functionality:
|
||||
|
||||
```bash
|
||||
dig sigfail.verteiltesysteme.net @192.168.1.248
|
||||
dig sigfail.verteiltesysteme.net @192.168.1.5
|
||||
# Expecting "status: SERVFAIL"
|
||||
|
||||
dig sigok.verteiltesysteme.net @192.168.1.248
|
||||
dig sigok.verteiltesysteme.net @192.168.1.5
|
||||
# Expecting "status: NOERROR"
|
||||
```
|
||||
|
||||
### Serve it!
|
||||
|
||||
If all looks good, configure your router/DHCP server to serve your new Pi-Hole IP address (`192.168.1.248`) to your clients.
|
||||
If all looks good, configure your router/DHCP server to serve your new Pi-Hole IP address (`192.168.1.5`) to your clients.
|
||||
|
||||
> Note: it may take some time for the current DHCP leases to renew and for clients to get the new DNS service info -- generally the default is 24 hours or less.
|
||||
|
||||
|
|
|
@ -14,10 +14,11 @@ services:
|
|||
- 53/udp
|
||||
# - 67/udp # Uncomment if you want to use Pi-Hole for DHCP
|
||||
- 80/tcp
|
||||
- 22/tcp
|
||||
environment:
|
||||
ServerIP: 192.168.1.248
|
||||
ServerIP: 192.168.1.5
|
||||
WEBPASSWORD: ${WEBPASSWORD}
|
||||
DNS1: 192.168.1.249
|
||||
DNS1: 192.168.1.6
|
||||
DNS2: 192.168.1.13
|
||||
volumes:
|
||||
- /volume1/docker/pihole-unbound/pihole/volume:/etc/pihole:rw
|
||||
|
@ -27,7 +28,7 @@ services:
|
|||
- /volume1/docker/pihole-unbound/pihole/config/pihole-FTL.conf:/etc/pihole/pihole-FTL.conf:ro
|
||||
networks:
|
||||
home:
|
||||
ipv4_address: 192.168.1.248
|
||||
ipv4_address: 192.168.1.5
|
||||
restart: always
|
||||
unbound:
|
||||
container_name: unbound
|
||||
|
@ -39,7 +40,7 @@ services:
|
|||
- 53/udp
|
||||
networks:
|
||||
home:
|
||||
ipv4_address: 192.168.1.249
|
||||
ipv4_address: 192.168.1.6
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
|
@ -51,4 +52,4 @@ networks:
|
|||
config:
|
||||
- subnet: 192.168.1.0/24
|
||||
gateway: 192.168.1.1
|
||||
ip_range: 192.168.1.248/30
|
||||
ip_range: 192.168.1.5/30 # 192.168.1.5 and 192.168.1.6
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
address=/gateway/192.168.1.1
|
||||
address=/pi-hole/pi-hole.local/192.168.1.248
|
||||
address=/pi-hole/pi-hole.local/192.168.1.5
|
|
@ -2,4 +2,4 @@
|
|||
::1 pi-hole
|
||||
|
||||
192.168.1.1 gateway
|
||||
192.168.1.248 pi-hole
|
||||
192.168.1.5 pi-hole
|
Loading…
Reference in a new issue