-
Notifications
You must be signed in to change notification settings - Fork 1
/
01-conf-dnsmasq.sh
24 lines (22 loc) · 1.13 KB
/
01-conf-dnsmasq.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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