I don't understand when named/bind is needed on (Debian) Linux systems. I understand it's related to domain name resolution but I don't understand by what it is called.
Is there any relation between named / bind9 and /etc/resolv.conf?
I'm using Linux on my desktop: do I need to run named?
I'm using Linux on servers, do I need to run named?
What if I've got a server which has no domain name attached to it and to which I only SSH in using it's IP: can I safely turn off / remove named?
What if I've got a server which has a domain name attached to its IP and is only running a webserver on port 443 / https, do I need named/bind9?
lsof says bind is listening on ports 53 (I think) and 953, but I don't know if it's externally listening or only locally:
~# lsof -i -n
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
named 2488 bind 20u IPv4 8189 0t0 TCP 127.0.0.1:domain (LISTEN)
named 2488 bind 21u IPv6 8191 0t0 TCP [::1]:domain (LISTEN)
named 2488 bind 22u IPv4 10931 0t0 TCP 127.0.0.1:953 (LISTEN)
named 2488 bind 23u IPv6 10932 0t0 TCP [::1]:953 (LISTEN)
named 2488 bind 512u IPv4 8188 0t0 UDP 127.0.0.1:domain
named 2488 bind 513u IPv4 8188 0t0 UDP 127.0.0.1:domain
named 2488 bind 514u IPv4 8188 0t0 UDP 127.0.0.1:domain
named 2488 bind 515u IPv4 8188 0t0 UDP 127.0.0.1:domain
named 2488 bind 516u IPv6 8190 0t0 UDP [::1]:domain
named 2488 bind 517u IPv6 8190 0t0 UDP [::1]:domain
named 2488 bind 518u IPv6 8190 0t0 UDP [::1]:domain
named 2488 bind 519u IPv6 8190 0t0 UDP [::1]:domain
If I ask which package it belongs to, it tells me:
~# apt-file search /usr/sbin/named
bind9: /usr/sbin/named
If I try to apt-get remove bind9, it tells me the following packages are no longer needed:
... ~# apt-get remove bind9
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bind9utils libexpat1 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib mime-support python python-minimal python2.7 python2.7-minimal
So I take so far they rely on bind9 / named.
Is it safe to remove named / bind9? What do I risk breaking by removing it?
nscd
is employed. – thrig Feb 17 '16 at 21:05