Why does updating /etc/hosts no longer work?

How can I debug and get it to work?

cat /etc/hosts:   localhost
::1     localhost

# I added this line   kakfa

cat /etc/nsswitch.conf:

hosts:          files mdns4_minimal [NOTFOUND=return] dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

cat /etc/resolv.conf:

options edns0 trust-ad
search lan

systemd-resolve --status:

       Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub

Link 2 (enp3s0)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 3 (wlp0s20f3)
    Current Scopes: DNS
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server:
       DNS Servers:
        DNS Domain: lan


  • 1
    You have not adequately asked any question. What did you add to your hosts file? What was the expected result? What was the eventual incorrect result?
    – chili555
    Apr 29 at 0:58
  • 1
    Read man systemd-dnsmasq and man 5 hosts
    – waltinator
    Apr 29 at 1:10

1 Answer 1


I put two lines for

It should have been   localhost     kakfa
::1     localhost

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.