Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others


0 votes
in Technique[技术] by (71.8m points)

google cloud platform - How can I permanently set up resolv.conf in GCP VMs with nameservers and

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 and

Any help here is highly appreciated.

Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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,;

Do not forget the trailing semicolon.

Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share