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
posted by 수수 파인진
TAG

댓글을 달아 주세요