AWS
2020. 5. 21. 13:04
반응형
#!/bin/bash
sudo apt update
sudo apt install resolvconf
cat > /etc/resolvconf/resolv.conf.d/tail<<EOL
nameserver 172.31.0.2
search ap-northeast-2.compute.internal
# Google IPv4 nameservers
nameserver 8.8.8.8
nameserver 8.8.4.4
# Google IPv6 nameservers
nameserver 2001:4860:4860::8888
nameserver 2001:4860:4860::8844
EOL
#restart
sudo systemctl enable resolvconf
sudo systemctl restart resolvconf
반응형
'AWS' 카테고리의 다른 글
과거데이터로 인스턴스가 올라 올경우 대처법 (0) | 2020.06.21 |
---|---|
unattended-upgrade 을 써보자. (0) | 2020.06.21 |
[ubuntu] aws KO time zone set (0) | 2020.05.21 |
[ubuntu] aws spark-install (0) | 2020.05.21 |