How to create a DNS
You can create a Domain Name Service so that users can access your compute via the domain name instead of a floating IP address.
1. Steps
- Connect a Compute to the Public network.
- Put the component DNSEndpoint on the Compute.
- Input
myexample.com
in the dns_name field of the DNSEndpoint.
2. Expect result
- One DNS public zone
myexample.com.
with 2 record sets type Amyexample.com.
andwww.myexample.com.
will be created on Open Telekom Cloud. - The record sets point to the floating IP of the public compute, which hosts the DNSEndpoint component (e.g.,
80.158.62.203
).
3. Test
- Update your domain name at the registration service to the nameservers of Open Telekom Cloud:
ns1.open-telekom-cloud.com
andns2.open-telekom-cloud.com
. - Test your domain is resolved to the floating IP:
$ dig myexample.com
...
;; ANSWER SECTION:
myexample.com. 300 IN A 80.158.62.203
;; AUTHORITY SECTION:
myexample.com.. 172800 IN NS ns1.open-telekom-cloud.com.
myexample.com.. 172800 IN NS ns2.open-telekom-cloud.com.
;; ADDITIONAL SECTION:
ns2.open-telekom-cloud.com. 300 IN A 93.188.242.252
ns1.open-telekom-cloud.com. 300 IN A 80.158.48.19
note
- The DNS zone takes effect only after you update the nameservers of your domain at the domain registrar to:
ns1.open-telekom-cloud.com
andns2.open-telekom-cloud.com
- This feature is not yet supported for Google Cloud. Contact us for feature request.