mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-22 19:18:16 +00:00
Updated Add new dns hostnames (markdown)
parent
4b3f892331
commit
32f4b394f6
1 changed files with 10 additions and 2 deletions
|
@ -10,10 +10,12 @@ Based on:
|
|||
|
||||
* `pihole -a hostrecord home.mydomain.de {Router's-WAN-IP}`
|
||||
*e.g. `pihole -a hostrecord home.mydomain.de 192.168.1.15`
|
||||
* can only do this for one record
|
||||
* add additional urls `vi /etc/hosts`
|
||||
|
||||
### To make sure .local machine works:
|
||||
|
||||
* `vi /etc/dnsmasq.d/01-pihole.conf`
|
||||
* `vi /etc/pihole/setupVars.conf`
|
||||
|
||||
Add:
|
||||
`server=/domain.lan/10.10.10.10` where the end number is the ip of your router e.g. 192.168.1.1
|
||||
|
@ -28,6 +30,12 @@ Test
|
|||
|
||||
* `ping home.mydomain.de` will only work if ip 192.168.1.15 is a machine that accepts pings
|
||||
|
||||
A dns flush may be needed to check for the new ip.
|
||||
## A dns flush may be needed to check for the new ip.
|
||||
|
||||
* mac/linux flush https://help.dreamhost.com/hc/en-us/articles/214981288-Flushing-your-DNS-cache-in-Mac-OS-X-and-Linux
|
||||
|
||||
## Notes
|
||||
|
||||
* vi shortcuts
|
||||
* type `a` to start typing
|
||||
* to exit type `esc` then `:wq` to write change or just `:q` leave without saving
|
||||
|
|
Loading…
Add table
Reference in a new issue