Add pre-testing content for DNS.

This commit is contained in:
2023-07-29 10:49:53 -07:00
parent 26dfb608c4
commit a36060b459
5 changed files with 32 additions and 0 deletions

19
Config/DNS/Dockerfile Normal file
View File

@@ -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

View File

View File

View File

View File

@@ -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