Difference between revisions of "PiHole"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "== Using pi-hole as LAN DNS server == echo "addn-hosts=/etc/pihole/lan.list" | sudo tee /etc/dnsmasq.d/02-lan.conf After this, create a “hosts file” for your network /etc...") |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| Line 1: | Line 1: | ||
| − | == Using pi-hole as LAN DNS server == | + | == Commands == |
| + | |||
| + | ==== Change Admin Password ==== | ||
| + | <syntaxhighlight lang="bash"> | ||
| + | pihole -a -p yournewsuperstrongpassword | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==Using pi-hole as LAN DNS server== | ||
echo "addn-hosts=/etc/pihole/lan.list" | sudo tee /etc/dnsmasq.d/02-lan.conf | echo "addn-hosts=/etc/pihole/lan.list" | sudo tee /etc/dnsmasq.d/02-lan.conf | ||
After this, create a “hosts file” for your network /etc/pihole/lan.list with the format ipaddress fqdn hostname, eg | After this, create a “hosts file” for your network /etc/pihole/lan.list with the format ipaddress fqdn hostname, eg | ||
Latest revision as of 11:29, 31 May 2024
Commands[edit]
Change Admin Password[edit]
pihole -a -p yournewsuperstrongpassword
Using pi-hole as LAN DNS server[edit]
echo "addn-hosts=/etc/pihole/lan.list" | sudo tee /etc/dnsmasq.d/02-lan.conf
After this, create a “hosts file” for your network /etc/pihole/lan.list with the format ipaddress fqdn hostname, eg
192.168.1.40 marvin.your.lan marvin 192.168.1.41 eddie.your.lan eddie 192.168.1.42 hactar.your.lan hactar
Finally, restart your name server:
sudo pihole restartdns