I’m trying to install BIND to use as the DNS backend to a samba AD DC. The BIND version that ships with openSUSE does not contain the correct options so I have two questions:
If I install from source, how to I add the named service to systemd? or
Is there a version of BIND in some alternate repo that has all the options enabled? I need it built with
What guide are you following to set up your SAMBA Domain with DNS?
Pls provide a link or reference to whatever online or offline procedure you are following.
The documentation is unclear whether compiling your BIND server automatically creates a systemd Unit file. If you don’t have one, I’m sure a suitable file is available somewhere online, but if you can’t find one, post and one will be provided for you.
The links you provided are the guide I’ve been following. Compiling BIND from source does not provide a systemd unit file. I’ve never manually added a service to systemd, so I’m not sure exactly how to go about it. I did some online searching, but all I found were guides on how to automatically run a simple script file with systemd.
Taking a closer look at a system with BIND installed (from the OSS),
It looks like a Unit file does not exist,
So,
Assuming that your compiled BIND is installed similar to the openSUSE version, you may be able to just execute the standard systemctl commands to start|stop|restart
systemctl start|stop|restart|status named.service
And, to configure your BIND to start automatically on boot
If you run the following in a command line console (eg konsole), do you then return a usage?
Note, I’m now specifying “named” and not “named.service”
# /etc/init.d/named
If the above doesn’t work,
Then you should start your DNS as described in the SAMBA documentation and run the following command. If the following doesn’t work, then you didn’t compile succussfully.
# named -u named
If the above SAMBA documentation command works but the /etc/init.d/named command doesn’t work, then someone will have to build the DNS server and figure out what is going on… the /etc/init.d/named command is pretty universal across all Linux distros.