Cloud DNS Flashcards
1
Q
What is Cloud DNS?
A
high availability, low latency service for mapping domain names to IP addresses
2
Q
What are key points of Cloud DNS?
A
- automatically scales
- provides private zones to use custom names for VMs
- NS and SOA records are added when a zone is created.
NS -name server record
SOA -start of authority record - You can add other records such as A and CNAME
3
Q
What zone types are available for Cloud DNS?
A
- public - accessible from internet, provide name servers that respond to queries from any source
- private - provide name services to your GCP resources, only respond to queries that originate from resources in the same project
4
Q
How do you create a DNS managed zone via shell?
A
gcloud beta dns manage-zones create [ZONE NAME] —dns-name=[DNS SUFFIX] –visibility=[private|public]
5
Q
How do you add a record to a DNS managed zone via shell?
A
You start a transaction, add the record then execute the transaction
gcloud dns record-sets transaction start –zone=[ZONE]
gcloud dns record-sets transaction add [IP or NAME] –name=[NAME] -ttl=[TTL] –type=[TYPE] –zone=[ZONE]
gcloud dns record-sets transaction execute –zone=[ZONE}