/etc/network/interfaces에 아래와 같이 dns 목록을 추가해도 되지만,
dns-nameservers 168.126.63.1 8.8.8.8
위 방법으로 dns 설정이 적용 되지 않는 경우 아래와 같이 /etc/resolvconf/resolv.conf.d/base에 추가해 주면 된다.
nameserver 168.126.63.1
만약 위와 같이 해도 안된다면 route 명령으로 gateway가 정상적으로 추가되어 있는지 확인 후, 안되어 있다면 아래와 같이 추가해 줘야 한다.
(gateway가 192.168.0.1일 경우)
sudo route add default gw 192.168.0.1 eth0
'Linux' 카테고리의 다른 글
Numix theme, source code pro 폰트, docky 설치 및 적용 (0) | 2016.01.23 |
---|---|
/etc/init.d/rc.local이 실행되지 않는다? (0) | 2016.01.15 |
SSH 연결 유지 (0) | 2016.01.11 |
우분투 리눅스 WIFI 설정 추가 (0) | 2016.01.08 |
Finding a process that is using specific network port (0) | 2014.10.27 |