Ask HN: How to distribute wildcard subdomains to different servers

https://news.ycombinator.com/item?id=9103609
by NameNickHN • 11 years ago
2 2 11 years ago

I have a list of subdomains pointing to one server (1.2.3.4) right now.

1001.example.com 1002.example.com 1003.example.com 1004.example.com 1005.example.com 1006.example.com

I want to run the next set of subdomains on a different server (9.8.7.6):

2001.example.com 2002.example.com 2003.example.com 2004.example.com 2005.example.com 2006.example.com

I don't want configure each individual subdomain. I'd rather do configuration for a range, like:

[1000-1999].example.com => 1.2.3.4 [2000-2999].example.com => 9.8.7.6 [3000-3999].example.com => 2.4.6.8

I tried to search for answers to this problem but I'm not even sure for what to search. Has anyone done this kind of thing?

Related Stories

Loading related stories...

Source preview

news.ycombinator.com