Answer the question
In order to leave comments, you need to log in
Ubuntu 13.10: why is /etc/hosts being ignored again?
This topic has already been raised, I studied many options for resolving the issue, but none of them gave a result, the file is ignored.
So the key files are:
andre@Andre-PC:~$ sudo cat /etc/hosts
127.0.0.1 localhost test.local test.localdomain
127.0.1.1 Andre-PC
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
andre@Andre-PC:~$ sudo cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
andre@Andre-PC:~$ sudo cat /etc/host.conf
# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on
andre@Andre-PC:~$
andre@Andre-PC:~$ ping Andre-PC
ping: unknown host Andre-PC
andre@Andre-PC:~$ ping test.local
ping: unknown host test.local
andre@Andre-PC:~$ ping test.localdomain
ping: unknown host test.localdomain
andre@Andre-PC:~$
dns=dnsmasq
in NetworkManager.conf. dnsmasq doesn't start, but the result is the same./etc/avahi/hosts
, stopping avahi-daemon. To no avail.Answer the question
In order to leave comments, you need to log in
Why do you have dnsmasq installed?
Delete and everything will work.
While it should work, it just needs a (maybe) restart of dnsmasq.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question