This seems to work, Ubuntu is hoarding port 53 though even though local services are shut off.

This commit is contained in:
2023-07-29 12:49:12 -07:00
parent bcc914d77a
commit 0915d7a018
4 changed files with 108 additions and 8 deletions

View File

@@ -6,15 +6,16 @@
FROM debian
# Remove Existing Config
RUN rm -rfv /etc/{hosts,resolv.conf,dnsmasq.conf}
# 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/
COPY ./config/hosts /etc/
COPY ./config/resolv.conf /etc/
COPY ./config/dnsmasq.conf /etc/
# Start Container
CMD systemctl restart dnsmasq
## Reload Service
RUN service dnsmasq restart