Changes
Jump to navigation
Jump to search
← Older edit
PiHole
(edit)
Revision as of 11:29, 31 May 2024
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
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version