how can we restart bind-9.14.11

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

how can we restart bind-9.14.11

ShubhamGoyal
 Dear sir,
                           I installed bind version 9.14.11 by tar file . it is working okk.
                            i tried
                            1. systemctl restart named
                             2.  /etc/rc.d/init.d/bind restart
                             3.  service named restart
 
                            But I do not able to restart service.
                              please tell me how can i restart bind 9.14.11
Best Regards,
Shubham Goyal
Cyber Security Group
Centre for Development of Advanced Computing
Bangalore

150th Anniversary Mahatma Gandhi

------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
------------------------------------------------------------------------------------------------------------
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: how can we restart bind-9.14.11

Reindl Harald


Am 16.03.20 um 14:48 schrieb ShubhamGoyal:

>  Dear sir,
>                            I installed bind version 9.14.11 by tar file
> . it is working okk.
>                             i tried
>                             1. systemctl restart named
>                              2.  /etc/rc.d/init.d/bind restart
>                              3.  service named restart
>  
>                             But I do not able to restart service.
>                               please tell me how can i restart bind 9.14.11

by write a simple systemd-unit and forget about /etc/rc.d and most
important: by not start it by hand to begin with because systemd has no
clue about random processes

[root@srv-rhsoft:~]$ cat /etc/systemd/system/named.service
[Unit]
Description=DNS Server

[Service]
Type=simple
ExecStart=/usr/sbin/named -4 -f -u named -t /var/named/chroot
ExecReload=/usr/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/kill -TERM $MAINPID
TimeoutSec=25
Restart=always
RestartSec=1

PrivateTmp=yes
ReadOnlyPaths=/etc
ReadOnlyPaths=/usr


[Install]
WantedBy=multi-user.target
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: how can we restart bind-9.14.11

Reindl Harald


Am 16.03.20 um 14:58 schrieb Reindl Harald:

>
>
> Am 16.03.20 um 14:48 schrieb ShubhamGoyal:
>>  Dear sir,
>>                            I installed bind version 9.14.11 by tar file
>> . it is working okk.
>>                             i tried
>>                             1. systemctl restart named
>>                              2.  /etc/rc.d/init.d/bind restart
>>                              3.  service named restart
>>  
>>                             But I do not able to restart service.
>>                               please tell me how can i restart bind 9.14.11
>
> by write a simple systemd-unit and forget about /etc/rc.d and most
> important: by not start it by hand to begin with because systemd has no
> clue about random processes
>
> [root@srv-rhsoft:~]$ cat /etc/systemd/system/named.service
> [Unit]
> Description=DNS Server
>
> [Service]
> Type=simple
> ExecStart=/usr/sbin/named -4 -f -u named -t /var/named/chroot
> ExecReload=/usr/bin/kill -HUP $MAINPID
> ExecStop=/usr/bin/kill -TERM $MAINPID
> TimeoutSec=25
> Restart=always
> RestartSec=1
>
> PrivateTmp=yes
> ReadOnlyPaths=/etc
> ReadOnlyPaths=/usr
>
>
> [Install]
> WantedBy=multi-user.target

adjust "ExecStart=/usr/sbin/named -4 -f -u named -t /var/named/chroot"
to match your path and most likely remove the "-t" (chroot) option
unless you provide ExecStartPre stuff is stripped out by purpose

a simple systemd unit looks like below

 -f Run the server in the foreground (i.e. do not daemonize)

foreground is needed for "Type=simple" so that the process don't fork -
no need to do so unless you have services strictly ordered after
named.service

--------------------------------------

[Unit]
Description=DNS Server

[Service]
Type=simple
ExecStart=/path/your-binary

[Install]
WantedBy=multi-user.target

--------------------------------------
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: how can we restart bind-9.14.11

Matus UHLAR - fantomas
In reply to this post by ShubhamGoyal
On 16.03.20 19:18, ShubhamGoyal wrote:
>                           I installed bind version 9.14.11 by tar file .

why tar file?

> it is
>working okk.

>                            i tried
>                            1. systemctl restart named
>                             2.  /etc/rc.d/init.d/bind restart
>                             3.  service named restart
>
>                            But I do not able to restart service.
>                              please tell me how can i restart bind 9.14.11

maybe your OS distribution provides debian that is maintained by their
mainrainers.

When you install from tar file, you must maintain it yourself (fix security
bugs etc).

I recommend installing from distro.
--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Chernobyl was an Windows 95 beta test site.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: how can we restart bind-9.14.11

Chuck Aurora
In reply to this post by ShubhamGoyal
On 2020-03-16 08:48, ShubhamGoyal wrote:
> I installed bind version 9.14.11 by tar file . it is working okk.
>  i tried
>   1. systemctl restart named
>   2.  /etc/rc.d/init.d/bind restart
>   3.  service named restart
>
> But I do not able to restart service.

systemctl / service and friends are questions for your OS/distro, not
for here so much.  And as you saw in other replies, that brings up
other questions, such as why are you using a source build rather than
what the distro provides?

> please tell me how can i restart bind 9.14.11

This gets to be more relevant for this list.  But again it brings up
questions, to wit: why are you wanting to restart?

I suggest that you become acquainted with BIND's control utility,
rndc(8), and use that.  Usually there is need for restarting named(8)
in normal operation.

See also rndc-confgen(8) for a quick start.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: how can we restart bind-9.14.11

Chuck Aurora
On 2020-03-16 10:50, I wrote the opposite of what I meant:
> Usually there is need for restarting named(8)
------------------^ no
> in normal operation.

I mean, typically anything you will want/need to do is best done by
means of rndc commands.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users