how to disable dns
by KatrinAlec from LinuxQuestions.org on (#59D0G)
I want to disable dns, and I think I did because I stopped systemd-resolved
and I deleted anything in /etc/resolv.conf.
Code:ystemctl status systemd-resolved
systemd-resolved.service - Network Name Resolution
Loaded: loaded (/lib/systemd/system/systemd-resolved.service; disabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-resolved.service.d
resolvconf.conf
Active: inactive (dead)
Docs: man:systemd-resolved.service(8)
http://www.freedesktop.org/wiki/Software/systemd/resolved
http://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
http://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clientsThere still seems to be DNS going on, because when I use a name anywhere
e.g. ping www.google.de it takes quite a while before it says
ping: www.google.de: Temporary failure in name resolution
On other systems I use without DNS that answer comes immediately.
How is dns still active?
Or is it?
The system isn't slow in other ways.
top says: %Cpu(s): 0.7 us, 0.2 sy, 0.0 ni, 99.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st


and I deleted anything in /etc/resolv.conf.
Code:ystemctl status systemd-resolved
systemd-resolved.service - Network Name Resolution
Loaded: loaded (/lib/systemd/system/systemd-resolved.service; disabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-resolved.service.d
resolvconf.conf
Active: inactive (dead)
Docs: man:systemd-resolved.service(8)
http://www.freedesktop.org/wiki/Software/systemd/resolved
http://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
http://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clientsThere still seems to be DNS going on, because when I use a name anywhere
e.g. ping www.google.de it takes quite a while before it says
ping: www.google.de: Temporary failure in name resolution
On other systems I use without DNS that answer comes immediately.
How is dns still active?
Or is it?
The system isn't slow in other ways.
top says: %Cpu(s): 0.7 us, 0.2 sy, 0.0 ni, 99.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st