Skip to content

Instantly share code, notes, and snippets.

@kincl
Last active November 28, 2023 21:59
Show Gist options
  • Save kincl/6ff8cd97df8997bcf609492ab5be652f to your computer and use it in GitHub Desktop.
Save kincl/6ff8cd97df8997bcf609492ab5be652f to your computer and use it in GitHub Desktop.
dnsmasq config with upstream dns
dhcp-range=192.168.10.100,192.168.10.150
dhcp-option=option:router,192.168.10.3
dhcp-option=option:dns-server,192.168.10.3
log-dhcp
server=10.0.0.1 # upstream DNS
no-resolv
host-record=api.hattrick.redhat.com,192.168.10.98
host-record=api-int.hattrick.redhat.com,192.168.10.98
address=/apps.hattrick.redhat.com/192.168.10.99
firewall-cmd --add-service=dns --permanent
firewall-cmd --add-service=dhcp --permanent
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment