Reputation: 75
I have an AWS load balancer. AWS assigns a DNA name like: data-vm-190.eu-west-1.elb.amazonaws.com
When I try to create a DNS CNAME record in Google Cloud, I get this error: "Record data must be in the format server-1.example.com"
How can I get past this?
Upvotes: 5
Views: 1654
Reputation: 81336
The solution is to append a dot (.
) to the record name.
Adding a dot (period or .
) at the end of a domain name declares a fully qualified domain name. Without the trailing dot, some DNS servers will treat the name as relative to the zone name.
In the hierarchy of the domain name system, the root servers are named .
. The domain com
is a child of the root servers. The fully qualified name for com
is com.
. Popular usage dropped the trailing root servers (dropped the .
) but DNS still treats that character as important.
Upvotes: 5