DEV Community

Discussion on: Error: getaddrinfo ENOTFOUND localhost.localdomain

Collapse
 
protocod profile image
Maximilien Di Dio

Oh no that's a terrible idea ! This file must be owned by root to keep you away from security issues.

You can simply add this line to your /etc/host file:

127.0.0.1        localhost.localdomain
Enter fullscreen mode Exit fullscreen mode

Best regards.