How-to: Custom entries for named.conf.samba4 - update resistance

How to

Samba uses /etc/bind/named.conf.samba4 for the named configuration, but what if you want to add custom entries for the named and make it update resistant? In UCS you will find the following information in several config files.
Screenshot from 2024-03-12 16-07-36

Step 1: Add custom entries for configuration.

You can add the entries in the template file, you will find under the following path.

Step 2: UCR Commit

Make a commit on the main config to adopt the entries.
ucr commit /etc/bind/named.conf.samba4

Step 3: Restart the service

To use the new settings in the config, restart the service.
systemctl restart bind9

1 Like