initial commit

This commit is contained in:
2025-12-15 11:07:55 -06:00
commit b9de99ab6f
3 changed files with 47 additions and 0 deletions

25
README.MD Normal file
View File

@@ -0,0 +1,25 @@
# DNSMASQ
Service Criticality: Low
## Description
DNSmasq is a lightweight, open-source service that provides DNS (Domain Name System) and DHCP (Dynamic Host Configuration Protocol) services to a network.
## Use
We use dnsmasq to resolve hosts within the home network. This allows us to use the same URLs both inside and outside the network. Inside the network, the hosts resolve to an internal network address using dnsmasq.
## Installation/Recovery
Pre-requisites
* Portainer
* Gitlab
Create a new stack named dnsmasq
Choose *Repository* for the Build Method
Enable the authentication slider
The repository URL is https://gitlab.speerfam.net/mattspeer/dnsmasq
## Backup
The one file that should be backed up is 'dnsmasq.conf'. It is mounted on the host in '/home/mattspeer/docker/dnsmasq'
https://hub.docker.com/r/strm/dnsmasq

11
docker-compose.yaml Normal file
View File

@@ -0,0 +1,11 @@
services:
dnsmasq:
restart: always
image: strm/dnsmasq
container_name: dnsmasq
volumes:
- /home/mattspeer/docker/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf
ports:
- "192.168.4.20:53:53/udp"
cap_add:
- NET_ADMIN

11
etc/dnsmasq.conf Normal file
View File

@@ -0,0 +1,11 @@
#log all dns queries
log-queries
#dont use hosts nameservers
no-resolv
#use Cloudflare for families (malware blocking) as default nameservers
server=1.1.1.2
server=1.0.0.2
#explicitly define host-ip mappings
address=/speerfam.net/192.168.4.20
#Baylor's domain DNS forwarding
server=/netx/192.168.4.64