How to add a PTR record to my VM instance on gcp?

0 votes
I want to add a PTR record for reverse the DNS lookup, to my already existing VM instance. How do I go about doing this,? I am using gcloud tool.
Sep 26 in GCP by Karan
• 6,670 points
62 views

1 answer to this question.

0 votes

If your VM instance uses the primary network interface, you can enable or disable PTR records by updating the access configuration on the primary network interface, 'nic0', for the VM instance.

If your network access is not configured, add the access config, then enable PTR records within the network interface menu.

Use the gcloud compute instance update-access-config command to add a PTR record to an existing access configuration.

gcloud compute instances update-access-config [INSTANCE_NAME]
    --public-ptr --public-ptr-domain [DOMAIN_NAME]
answered Sep 26 by Sirajul
• 40,990 points
How do I add the access config for my Linux VM instance?

Related Questions In GCP

0 votes
1 answer
0 votes
1 answer

Cannot connect to my VM instance on GCP via SSH.

This might be because UFW is installed. ...READ MORE

answered Sep 27 in GCP by Sirajul
• 40,990 points
122 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 40,990 points
62 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 40,990 points
74 views
0 votes
1 answer