'AWS'에 해당되는 글 1건

  1. 2020.05.21 :: ubuntu AWS resolvconf 설정 내부 도메인
카테고리 없음 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 finejin
TAG

댓글을 달아 주세요