summarylogtreecommitdiffstats
path: root/configuration
blob: 564b45bf0fcdd6342b5bfbaeafd66d009151b49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Pi-hole Archlinux configuration instructions
Server version
rev. 0.3

Pi-Hole Web server admin page: http://<server-ip>/admin
It is possible to add custom ad-list server in /etc/pihole/adlists.list


Instructions below assume ArchLinux default system config files are untouched or modified only by removing comments (#)



*** if you already use dnsmasq and it's functional

1) copy pi-hole include config lines in right place

# mkdir /etc/dnsmasq.d
# cp /etc/pihole/configs/dnsmasq.include /etc/dnsmasq.d/pihole.conf

2) edit your /etc/dnsmasq.conf to uncomment last line (including new pi-hole config lines)

# sed -i 's|#conf-dir=/etc/dnsmasq.d/,\*.conf|conf-dir=/etc/dnsmasq.d/,\*.conf|' /etc/dnsmasq.conf

*** end if



*** if you installed dnsmasq with this package for the first time

3) backup original dnsmasq config file and copy pi-hole one

# cp /etc/dnsmasq.conf /etc/dnsmasq.orig
# cp /etc/pihole/configs/dnsmasq.complete /etc/dnsmasq.conf

*** end if



4) lighttpd need port 80 to be free. backup original config file and copy pi-hole one

# cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.orig
# cp /etc/pihole/configs/lighttpd.conf /etc/lighttpd/lighttpd.conf

5) enable and start dnsmasq service

# systemctl reenable dnsmasq.service
# systemctl restart dnsmasq.service

6) enable and start lighttpd service

# systemctl reenable lighttpd.service
# systemctl restart lighttpd.service

7) FUNDAMENTAL: point dns resolution of your lan clients to this machine


UNINSTALL steps

# systemctl stop dnsmasq.service
# systemctl disable dnsmasq.service
# systemctl stop lighttpd.service
# systemctl disable lighttpd.service
# [ -f /etc/dnsmasq.d/pihole.conf ] && rm /etc/dnsmasq.d/pihole.conf
# [ -f /etc/dnsmasq.orig ] && cp /etc/dnsmasq.orig /etc/dnsmasq.conf
# [ -f /etc/lighttpd/lighttpd.orig ] && cp /etc/lighttpd/lighttpd.orig /etc/lighttpd/lighttpd.conf