Changes

Jump to navigation Jump to search
136 bytes added ,  11:29, 31 May 2024
m
no edit summary
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

Navigation menu