summarylogtreecommitdiffstats
path: root/configuration
blob: f8f3a96f0dd208be7f7a849dc3e4282c77405549 (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
Pi-hole Archlinux configuration instructions
Standalone version
rev. 0.2

It is possible to add custom ad-list server in /etc/pihole/adlists.list

Instructions below assume ArchLinux default system config files are untouched


1) edit your /etc/resolvconf.conf and uncomment name_servers line (last line), update resolvconf:

# sed -i 's|#name_servers=127.0.0.1|name_servers=127.0.0.1|' /etc/resolvconf.conf
# resolvconf -u



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

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

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

3) 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

4) 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



5) enable and start dnsmasq service

# systemctl enable dnsmasq.service
# systemctl restart dnsmasq.service



UNINSTALL steps

# systemctl stop dnsmasq.service
# systemctl disable dnsmasq.service
# sed -i 's|name_servers=127.0.0.1|#name_servers=127.0.0.1|' /etc/resolvconf.conf
# resolvconf -u
# [ -f /etc/dnsmasq.d/pihole.conf ] && rm /etc/dnsmasq.d/pihole.conf
# [ -f /etc/dnsmasq.orig ] && cp /etc/dnsmasq.orig /etc/dnsmasq.conf