2023년 5월 3일 수요일

리눅스 hostname (호스트 이름) domainname (도메인 이름)

 호스트_이름/도메인_이름을 완전 기본으로 정했다가 바꾸고 싶게 되었는데, 

_( howto change linux uname information - Google 검색 )_

처음 찾은 자료에는 /etc/hosts 파일에 설정하는 것이라고 해서 이 파일을 바꾸고 재부팅해 봤는데도 안되어서 더 찾게 되었다. 

https://www.redhat.com/sysadmin/set-hostname-linux

새로 찾게 된 곳은... 아래와 같다.

https://unix.stackexchange.com/questions/322883/how-to-correctly-set-hostname-and-domain-name

 -

여기에서 찾은 방법대로 

$       sudo hostname   my_new_hostname

-

했더니 재부팅 필요 없이 컴퓨터 이름이 바뀌어 있었다.

도메인_이름은 귀찮아서 그냥  localdomain 그대로 놔 두기로 했다.

-

좀 더 찾은 참고 자료는 아래에 있다.

https://www.geeksforgeeks.org/creating-custom-domain-name-instead-of-localhost-in-ubuntu/-

 

댓글 없음:

댓글 쓰기