Cloud DNS Flashcards
What is Cloud DNS?
high availability, low latency service for mapping domain names to IP addresses
What are key points of Cloud DNS?
- 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
What zone types are available for Cloud DNS?
- 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
How do you create a DNS managed zone via shell?
gcloud beta dns manage-zones create [ZONE NAME] —dns-name=[DNS SUFFIX] –visibility=[private|public]
How do you add a record to a DNS managed zone via shell?
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}