도메인과 관련된 테스트에서 여러 도메인이 필요할 때가 있다.
hosts 파일에 직접 도메인을 추가한다.
hosts 파일은 운영 체제가 호스트 이름을 IP 주소에 매핑할 때 사용하는 컴퓨터 파일이다.
개인 DNS 서비스역할을 하며, 특정 도메인/IP 차단 역할 및 개인 IP 등록 역할을 한다.
[ 윈도우 기준 ]
메모장 우클릭 < 관리자 권한으로 열기 < 열기 < C:\Windows\System32\drivers\etc
컴퓨터를 재부팅하거나 캐시 flush
※ hosts 파일이 적용이 안될 경우 참고
https://www.codns.com/b/B05-119
고정IP가 필요했던 모든 서비스에 속도제한 없는 무료 DDNS서비스
고정ip,고정아이피,아이피,ip,무료DNS,무료DDNS,DDNS서버개발,유동아이피,유동ip,무료도메인,서버구축,원격제어,DVR,CCTV,IOT
www.codns.com
https://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot
hosts file ignored, how to troubleshoot?
The hosts file on Windows computers is used to bind certain name strings to specific IP addresses to override other name resolution methods. Often, one decides to change the hosts file, and discov...
serverfault.com
'Settings' 카테고리의 다른 글
[Windows] 환경변수 변경하지 않고, 외부 jar 파일 포함해 컴파일하기 (0) | 2020.02.27 |
---|---|
[Windows] cmd에서 Junit 사용하기 (0) | 2020.02.18 |