본문 바로가기

Others/NODE.JS

Error: getaddrinfo ENOTFOUND domain domain:port

Check host file which like this

## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost

  •  

    This solved the problem for me! After hours of search, I found that the /etc/hosts file on my mac was empty! After you change the file on the mac, run sudo killall -HUP mDNSResponder for the changed to take effect! 

  •  

    It solved my problem, thanks! – Konrad G Dec 13 '18 at 15:35

 

/etc/hosts 파일 수정 "255.255.255.255 도메인"등록하고

sudo /etc/init.d/networking restart 다시 메모리에 올려놓기 위해서 데몬 실행

[데몬실행출처] https://storycompiler.tistory.com/118

 

[Ubuntu/Linux] /etc/hosts의 모든 것

브라우저에 도메인 이름을 치면, 네임서버를 거쳐 도메인 이름은 IP 주소로 변환이 됩니다. 그렇다면 브라우저에 "localhost"를 치면, "localhost"도 네임서버를 통해 IP 주소로 변환되는 것일까요? 레드헷/우분투..

storycompiler.tistory.com

 

모두 열어줄 때는 

255.255.255.255 broadcasthost

추가! 만능...? 

https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_hosts_%ED%8C%8C%EC%9D%BC

 

리눅스 hosts 파일 - 제타위키

zetawiki.com