Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I would like to access some URLs through Curl on my GCP VM which isn't exposed to external traffic(It doesn't have an external IP too). I would like to know how can I set this up with nameservers 8.8.8.8 and 8.8.4.4.

Any help here is highly appreciated.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.9k views
Welcome To Ask or Share your Answers For Others

1 Answer

To add name servers for most Linux operating systems on Google Cloud, modify /etc/dhcp/dhclient.conf.

For example, add the following line:

prepend domain-name-servers 8.8.8.8, 8.8.4.4;

Do not forget the trailing semicolon.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...