Daily Develope

[Linux] Ubuntu DNS Nameserver 설정 본문

OS/Linux

[Linux] Ubuntu DNS Nameserver 설정

noggame 2024. 4. 30. 22:09

임시적용

특징 : 임시적용이기 때문에 재부팅이나 resolvconf 서비스를 재시작 하는 경우 해당 파일에 설정된 정보가 초기화
적용방법 : /etc/resolv.conf 파일 수정

nameserver 8.8.8.8 # Google Nameserver
nameserver 8.8.4.4 # Google Nameserver

영구적용

특징 : 시스템 재부팅 이후에도 지속 유지
적용절차

  1. /etc/resolvconf/resolv.conf.d/head 파일 수정

    nameserver 8.8.8.8 # Google Nameserver
    nameserver 8.8.4.4 # Google Nameserver
  2. 서비스 재시작

    systemctl restart resolvconf.service

서비스 재시작 후, /etc/resolv.conf 파일을 확인하면 head의 내용이 반영된 것을 확인 가능

'OS > Linux' 카테고리의 다른 글

[Linux] UFW 설정 및 사용법  (0) 2024.09.25
[Linux] CentOS repository 설정  (0) 2024.04.30
[Linux] openssl 수동 업데이트 / 설치  (0) 2024.04.30
[Linux] 패키지 저장소 정리  (0) 2023.09.05
[Linux] tar 압축 / 압축 해제  (0) 2023.03.15
Comments