Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
userdoc:guest_lxc_container_pihole [2020/05/31 22:12] abelbeck |
userdoc:guest_lxc_container_pihole [2020/06/07 08:13] abelbeck |
The [[https://pi-hole.net/|Pi-hole]] project is a "DNS sinkhole" that protects your devices from unwanted content, without installing any client-side software. | The [[https://pi-hole.net/|Pi-hole]] project is a "DNS sinkhole" that protects your devices from unwanted content, without installing any client-side software. |
| |
Pi-hole is a perfect example to use with AstLinux within a LXC. Begin as with the "Quick Start Guide" but use the name ''pi-hole''. | Pi-hole is a perfect example to use with AstLinux within a LXC. |
| |
| **Resource Usage:** (minimum) |
| * Memory: 50 MB |
| * Storage: 0.7 GB |
| \\ |
| |
First, it is assumed the ''lxcbr0'' interface is setup per the **[[userdoc:guest_lxc_container#quick_start_guide|Quick Start Guide]]** -> Enable LXC Support. | First, it is assumed the ''lxcbr0'' interface is setup per the **[[userdoc:guest_lxc_container#quick_start_guide|Quick Start Guide]]** -> Enable LXC Support. |
# choose "Update" | # choose "Update" |
| |
The Pi-hole LXC container uses about 40-50 MB of RAM. | |
| |
\\ | \\ |
!!Related Info ->!! **[[userdoc:guest_lxc_container|LXC container in AstLinux]]** | !!Related Info ->!! **[[userdoc:guest_lxc_container|LXC container in AstLinux]]** |
| |
| \\ |
| **Override default DHCP dns-server option** |
| |
| By default, dnsmasq offers the ''dns-server'' IP address using the gateway address for that subnet. In the case when you want all clients in a subnet to use the Pi-hole server you can override the default settings by editing your ''/mnt/kd/dnsmasq.static'' file with the following: |
| |
| ## Override default dns-server option |
| dhcp-option=lan,option:dns-server,192.168.200.10 |
| #dhcp-option=lan2,option:dns-server,192.168.200.10 |
| #dhcp-option=lan3,option:dns-server,192.168.200.10 |
| #dhcp-option=lan4,option:dns-server,192.168.200.10 |
| #dhcp-option=dmz,option:dns-server,192.168.200.10 |
| |
| Replace the ''192.168.200.10'' IP address with your Pi-hole server's static address and uncommnet for each subnet you want it to apply. In the web interface, select "Restart DNS & DHCP" to apply the change to the dnsmasq configuration. |
| |