(In reply to André Werlang from comment #3) > $ getent hosts > 127.0.0.1 localhost > 127.0.0.1 localhost.localdomain What do you want to tell us with this? That listening the file line by line works? This does say nothing about if the syntax is correct or if the name is resolveable. And as I did show, 127.0.0.1 is not correct solveable. And if you look at the glibc source code, you will see that for resolving a host, the code does not go through every line, but stops at the first matching line. So your second line is not reached.