Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is mine so I would suggest you need to put another 1 in your hana-009 line.
Code:
127.0.0.1 localhost
127.0.1.1 michael-laptop
It doesn't work.
I have another kind of problem. The problem is that /etc/hosts didn't affected at all. Even if remove locahost. ping localhost works.
It seems that there is a different file.
#
# /etc/host.conf - resolver configuration file
#
# Please read the manual page host.conf(5) for more information.
#
#
# The following option is only used by binaries linked against
# libc4 or libc5. This line should be in sync with the "hosts"
# option in /etc/nsswitch.conf.
#
order hosts, bind
#
# The following options are used by the resolver library:
#
multi on
You may want to add "order hosts, bind" to /etc/host.conf
Also, do you have an /etc/nsswitch file?
It should include lines
Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files dns
You can run "getent hosts www.google.con" to test if host resolution is running.
#
# /etc/host.conf - resolver configuration file
#
# Please read the manual page host.conf(5) for more information.
#
#
# The following option is only used by binaries linked against
# libc4 or libc5. This line should be in sync with the "hosts"
# option in /etc/nsswitch.conf.
#
order hosts, bind
#
# The following options are used by the resolver library:
#
multi on
You may want to add "order hosts, bind" to /etc/host.conf
Also, do you have an /etc/nsswitch file?
It should include lines
Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files dns
You can run "getent hosts www.google.con" to test if host resolution is running.
It seems the distributive has non standard configuration.
Also there is a strange thing that if I remove localhost entry from /etc/hosts; ping localhost works. On my another board it doesn't.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.