Question

One of your competitors offers automatically created sub-domains for each VM

Posted March 29, 2021 199 views
DNSConfiguration ManagementInitial Server SetupDigitalOcean Droplets

One of your competitors automatically creates sub-domains for each VM created through their service.

For example: https://example2226-199.members.digitalocean-competitor.com/

Do you already do this? I’ve been searching the docs and and questions and I cannot find any information about this, if so. Is there some API method which I need to invoke, or some setting I need to toggle to accomplish this?

This isn’t particularly useful for a long-term component, but it’s great for developing and testing SSL certificate configuration management automation, and so I’ve been spending money on your competitor’s service spinning these VMs up and down. Obviously I’d rather be giving you this business, because I like y'all.

$ dig example2226-199.members.digitalocean-competitor.com

; <<>> DiG 9.10.6 <<>> -x example2226-199.members.digitalocean-competitor.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 14426
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;com.digitalocean-competitor.members.example2226-199.in-addr.arpa. IN PTR

;; AUTHORITY SECTION:
in-addr.arpa.       3600    IN  SOA b.in-addr-servers.arpa. nstld.iana.org. 2021031589 1800 900 604800 3600

;; Query time: 125 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Sun Mar 28 23:06:23 CDT 2021
;; MSG SIZE  rcvd: 139

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hey @nelsnelson
DO doesn’t do this as far as I know.

However, you can do it yourself.
It’s not harder than creating a A record with your DNS server and pointing it towards your main IP address.