Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1688  / 2 Years ago, mon, september 19, 2022, 2:01:45

I am trying to configure Hadoop and have problems configuring it. One doubt I have about network config and it's related to host info.



In /etc/hosts second line is like 127.0.1.1 slave1-machine and I know it is related to machine name. But the thing I do not know, is that what is the purpose for this line and if I remove it from the file, what will happen?


More From » networking

 Answers
2

When you remove the line you can't resolve the Hostname slave1-machine to a IP Address anymore.
Linux looks into the /etc/hosts before triyng to resolve a hostname via a DNS Query.
So if you remove the Line. Linux try to resolve the Hostname slave1-machine via DNS and get a negative response.


[#27595] Tuesday, September 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leadprogres

Total Points: 298
Total Questions: 114
Total Answers: 139

Location: Samoa
Member since Mon, Nov 8, 2021
3 Years ago
;