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, 2019 in GCP by Karan
• 15,680 points
423 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, 2019 by Sirajul
• 57,750 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
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, 2019 in GCP by Sirajul
• 57,750 points
1,427 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 57,750 points
451 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 57,750 points
321 views
0 votes
1 answer

How to add a regional persistent disk to a VM instance on GCP?

You must first create the regional persistent ...READ MORE

answered Oct 18, 2019 in GCP by Sirajul
• 57,750 points
495 views
0 votes
1 answer