-1

I have two droplets on DigitalOcean. I want example.com to point to droplet1 and *.example.com to point to droplet2. Is this possible?

Radu Dragomir
  • 660
  • 2
  • 9
  • 35

1 Answers1

1

You'd edit the zone file. Let's say Droplet1's IP address is 192.168.0.1 and Droplet2's IP address is 192.168.0.2

*            IN A    192.168.0.2
example.com. IN A    192.168.0.1

So the wildcard points at Droplet2's IP address as a wildcard and example.com points as Droplet1's IP address. Does this help?

I'm using DigitalOcean but I'm running my own DNS servers but I think the syntax would be the same using Digital Ocean's name servers.

Neil Anuskiewicz
  • 478
  • 2
  • 12