From a36060b459e1a53df20d239a21e96e8b1d1fbde4 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 29 Jul 2023 10:49:53 -0700 Subject: [PATCH] Add pre-testing content for DNS. --- Config/DNS/Dockerfile | 19 +++++++++++++++++++ Config/DNS/config/dnsmasq.conf.example | 0 Config/DNS/config/hosts.example | 0 Config/DNS/config/resolv.conf.example | 0 Config/DNS/docker-compose.yml.tbd | 13 +++++++++++++ 5 files changed, 32 insertions(+) create mode 100644 Config/DNS/Dockerfile create mode 100644 Config/DNS/config/dnsmasq.conf.example create mode 100644 Config/DNS/config/hosts.example create mode 100644 Config/DNS/config/resolv.conf.example diff --git a/Config/DNS/Dockerfile b/Config/DNS/Dockerfile new file mode 100644 index 0000000..8445267 --- /dev/null +++ b/Config/DNS/Dockerfile @@ -0,0 +1,19 @@ +# 2023-07-29 +# Create website in node container and run it. + +# Using Debian testing so that we use PHP >8. Otherwise the shebangs from +# the include files (#!/usr/bin/php) show up on the website. +FROM debian:testing + +# Install Dependencies +RUN apt update && apt install -y dnsmasq + +# Remove Existing Config +RUN systemctl stop dnsmasq +RUN rm -rfv /etc/{hosts,resolv.conf,dnsmasq.conf} + +# Copy Configuration Files +COPY ./config/{hosts,resolv.conf,dnsmasq.conf} /etc/ + +# Start Container +CMD systemctl restart dnsmasq diff --git a/Config/DNS/config/dnsmasq.conf.example b/Config/DNS/config/dnsmasq.conf.example new file mode 100644 index 0000000..e69de29 diff --git a/Config/DNS/config/hosts.example b/Config/DNS/config/hosts.example new file mode 100644 index 0000000..e69de29 diff --git a/Config/DNS/config/resolv.conf.example b/Config/DNS/config/resolv.conf.example new file mode 100644 index 0000000..e69de29 diff --git a/Config/DNS/docker-compose.yml.tbd b/Config/DNS/docker-compose.yml.tbd index e69de29..86b71b3 100644 --- a/Config/DNS/docker-compose.yml.tbd +++ b/Config/DNS/docker-compose.yml.tbd @@ -0,0 +1,13 @@ +# 2023-07-29 +# Local DNS server which properly handles DNS splitting. +# Necessary when using junk ISP gateways and running a domain. +# https://wiki.debian.org/dnsmasq + +version: '3' + +services: + app: + restart: always + build: ./ + ports: + - 8317:8080