Setting up fully qualified domain name in Google Compute Instances

2k views Asked by At

Many infrastructure configurations require a fully qualified domain name to set up. How do we set an FQDN on google compute instances? FQDN that can be used internally within the VPC and / or FQDN that can be used externally

1

There are 1 answers

0
miguelfrancisco85 On

Here is a documents that explain how the FQDN works in an instance of compute engine.

Maybe this solution fit your needs:

# edit the hosts file and add your FQDN
$ sudo vi /etc/hosts  
# prevent the overwrite 
$ sudo +i chattr -i /etc/hosts

Also you can use Google Cloud DNS and use it as internal DNS by editing the resolv.conf file