Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved pihole's dnsmasq conf setup into container via script for s6 ov…
…erlay
- Loading branch information
Cielquan
committed
Nov 17, 2019
1 parent
c8703e4
commit 0971352
Showing
4 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/with-contenv bash | ||
|
||
# ============================================================================== | ||
# Copyright (c) 2019 Christian Riedel | ||
# | ||
# This file 'custom-init.bash' created 2019-11-17 is part of the project/program 'DoTH-DNS'. | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the MIT License as published by | ||
# the Massachusetts Institute of Technology. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# MIT License for more details. | ||
# | ||
# You should have received a copy of the MIT License | ||
# along with this program. If not, see <https://opensource.org/licenses/MIT>. | ||
# | ||
# Github: https://github.com/Cielquan/ | ||
# ============================================================================== | ||
|
||
# Script gets called by s6 overlay which setups pihole inside docker container. | ||
# Appends DoTH-DNS' DOMAIN to dnsmasq's configuration file for wildcard use of domain. | ||
printf "\naddress=/%s/%s" "${DOMAIN}" "${HOST_IP}" >> /etc/dnsmasq.d/02-custom.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addn-hosts=/etc/pihole/lan.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters