Am 25.04.2016 um 19:23 schrieb Sean Son:
Thank you for your reply.
The issue is, I do not know what other services/targets will need to be
started prior to BIND starting. In other words, I have no idea how to
set up the unit file for BIND.
none - just none
and even if - how would a blind script at startup solve that question - if it don't (and it really don't) what's your exactly problem?
_______________________________________________
[Unit]
Description=DNS Server
[Service]
Type=simple
ExecStart=/usr/sbin/named -f -u named
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/kill -TERM $MAINPID
Restart=always
RestartSec=1
[Install]
WantedBy=multi-user.target
_______________________________________________
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
bind-users mailing list
bind-...@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users
Thank you for your response. Basically what I am trying to do is migrate the BIND server from a Centos 5.11 machine to a CentOS 7.2 machine. The BIND on CentOS 5.11 was compiled manually by source and its named.conf file looks very different than what CentOS/Red Hat provides in the RPM package named.conf file. Any tips on how I should go about migrating successfully from the 5.11 machine to the 7.2 machine?
As for the named.service unit file that Reindl provided, will I need to call upon any RNDC services? I saw that in the named.service file that comes with the RPM/YUM package contains a call to some RNDC service which calls up some generate-rndc-key.sh script.. I am not too sure of what the names of the files are.
Am 27.04.2016 um 17:45 schrieb Matthew Pounsett:
rndc is the command line interface to a running BIND server. (BIND ==
berkeley internet name domain, rndc == remote name domain controller (or
something to that effect)). The rndc.conf file must agree with the
named.conf file on where BIND's controller interface is (the controls{};
clause in named.conf) and what key to use for authentication, if any.
For example, named.conf might have something like this:
controls {
inet 192.0.2.1 port 953 allow { 192.0.2.100; } keys {"rndc-key"; };
};
While your rndc.conf might have:
options {
default-key "rndc-key";
default-server 192.0.2.1;
default-source-address 192.0.2.100;
default-port 953;
};
It sounds to me like the named.service file you mention is probably
generating a default rndc.conf file if one doesn't already exist
no it don't and you don't need to setup rndc at all just for start/stop/reload named, systemd knows the PID and so can send a SIGHUP, works like a charme for many year on nameservers hosting hundrets of zones and running with controls { }; since nobody but the maintaining scripts have a business mangle with named and after that issue "systemctl reload"
ExecStart=/usr/sbin/named -4 -f -u named
Thank you for your responses guys. Here is a n00b question: Because this new server will be a slave DNS server, do I have to manually copy the zone files from the current slave DNS server (The CentOS 5.11) one, or does the new server automatically get the zones from the master DNS server?Thanks again!
On Wed, Apr 27, 2016 at 11:50 AM, Reindl Harald <h.re...@thelounge.net> wrote:
Am 27.04.2016 um 17:45 schrieb Matthew Pounsett:
rndc is the command line interface to a running BIND server. (BIND ==
berkeley internet name domain, rndc == remote name domain controller (or
something to that effect)). The rndc.conf file must agree with the
named.conf file on where BIND's controller interface is (the controls{};
clause in named.conf) and what key to use for authentication, if any.
For example, named.conf might have something like this:
controls {
inet 192.0.2.1 port 953 allow { 192.0.2.100; } keys {"rndc-key"; };
};
While your rndc.conf might have:
options {
default-key "rndc-key";
default-server 192.0.2.1;
default-source-address 192.0.2.100;
default-port 953;
};
It sounds to me like the named.service file you mention is probably
generating a default rndc.conf file if one doesn't already exist
no it don't and you don't need to setup rndc at all just for start/stop/reload named, systemd knows the PID and so can send a SIGHUP, works like a charme for many year on nameservers hosting hundrets of zones and running with controls { }; since nobody but the maintaining scripts have a business mangle with named and after that issue "systemctl reload"
ExecStart=/usr/sbin/named -4 -f -u named
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/kill -TERM $MAINPID