Here is the entire /etc/dnsmasq.conf file (with minor private data removed):
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at https://dev.nethesis.it/projects/nethserver/wiki/NethServer
# original work from http://www.contribs.org/development/
#
# Copyright (C) 2013 Nethesis S.r.l.
# http://www.nethesis.it - support@nethesis.it
#
#
# 10base
#
# Set the domain for dnsmasq. this is optional, but if it is set, it
# does the following things.
# 1) Allows DHCP hosts to have fully qualified domain names, as long
# as the domain part matches this setting.
# 2) Sets the "domain" DHCP option thereby potentially setting the
# domain of all systems configured by DHCP
# 3) Provides the domain part for "expand-hosts"
domain=(domainname).int
#
# 20dns
#
# Never forward plain names (without a dot or domain part)
domain-needed
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Domain is automatically added to simple names in a hosts-file.
expand-hosts
cache-size=4000
#
# 25NameServers
#
# Don't read /etc/resolv.conf. Get upstream servers only from the
# command line or the dnsmasq configuration file.
no-resolv
# Specify IP address of upstream servers directly. Setting this flag
# does not suppress reading of /etc/resolv.conf, use "no-resolv" to do
# that.
server=192.168.1.1 (this should be our red interface static IP I believe)
server=8.8.8.8
server=192.168.2.2 (this is no longer in the network, this should be the new internal (green) IP, 192.168.1.1)
# By default, dnsmasq will send queries to any of the upstream
# servers it knows about and tries to favour servers to are known
# to be up. Uncommenting this forces dnsmasq to try each query
# with each server strictly in the order they appear in
# /etc/resolv.conf
strict-order
#
# 30dhcp
#
# Enable the DHCP server. Addresses will be given out from the range
# <start-addr> to <end-addr> and from statically defined addresses
# given in dhcp-host options.
# See db configuration getprop dnsmasq DhcpStatus
dhcp-range=set:br0,192.168.1.100,192.168.1.180,255.255.255.0,86400
dhcp-option=tag:br0,option:router,192.168.1.1
dhcp-lease-max=82
# Should be set when dnsmasq is definitely the only DHCP server on a
# network.
dhcp-authoritative
# Read dhcp reservations from dhcp-hostsfile.
# See dhcp-hosts option for more informations.
dhcp-hostsfile=/etc/dnsmasq-dhcp-hosts
#
# 35NetbiosNameServers
#
# disabled
#
# 40bind
#
except-interface=enp2s0
except-interface=virbr0
#
# 50sssd -- the Samba Domain controller is
# the authoritative DNS for our realm/domain
#
server=/(domainname).int/192.168.2.10 (this should be 192.168.1.5)
#
# 80tftp
#
enable-tftp
tftp-root=/var/lib/tftpboot
dhcp-option=66,"192.168.1.1"
#
# 80xmpp_srv_records
#
srv-host=_xmpp-client._tcp.(domainname).int,dc2.(domainname).int,5222,0,5
srv-host=_xmpp-server._tcp.(domainname).int,dc2..(domainname).int,5269,0,5
So I how do I get the proper changes stick here. Yes, know about the custom template , but given this should be the BASE configuration, is there another more straightforward/intuitive way to get this settings to be properly generated in this file?