116 reputation
5
bio website nader.co
location San Francisco, CA
age
visits member for 4 years, 9 months
seen Feb 1 '13 at 0:08

cto @ kapost

husband & father

traveller & photographer


Sep
24
awarded  Autobiographer
Feb
21
awarded  Popular Question
Mar
19
revised Dynamic subdomain routing
added 331 characters in body
Mar
19
awarded  Scholar
Mar
19
comment Dynamic subdomain routing
Hi Jeff. So I'm going down this route. I've setup external wildcard DNS to point at my reverse proxy server and have PowerDNS setup with a db backend with the mappings. I'm currently trying HAProxy as the proxy server. Do you know a way to get it to use the DNS server for the IP to route to? Seems like most proxies rely on an access list. And I don't really want to have to do something like run cron to update the access list every x seconds. I checked out lighttpd, but it looks like it just allows for dynamic docroots, not IPs
Feb
19
revised Dynamic subdomain routing
clarification
Feb
19
comment Dynamic subdomain routing
Jeff, I will be adding entries frequently, and periodically changing entries (moving sites to different servers to rebalance). So two questions. 1) What's the benefit of using internal DNS? Seems like I would have the same problems as I described above as I would with external DNS. 2) Regardless of whether I use internal or external DNS how would I dynamically update it in real time? Seems like I would still need something like PowerDNS or some DNS that has an API. Proxy servers have other benefits like caching, etc. but that's not the problem I'm trying to solve right now.
Feb
19
awarded  Editor
Feb
19
revised Dynamic subdomain routing
added 363 characters in body
Feb
19
comment Dynamic subdomain routing
Thank for the suggestion Alnitak. All the application servers are in the EC2 cloud. I'm not very familiar with reverse proxies. I've used Apache, but that's about it. My app servers are running drupal, and folks have recommended Squid and Varnish as reverse proxy servers. What would you recommend? And how would those RP servers access the customer->server mapping table? This data doesn't change very often, so I'd probably want to cache it for performance
Feb
19
awarded  Student
Feb
19
comment Dynamic subdomain routing
How would I dynamically assign new subdomains/reassign existing subdomains to different servers with this setup?
Feb
18
comment Dynamic subdomain routing
Thanks mat. I've heard of PowerDNS, but haven't checked it out in detail yet. I am a little hesitant to run my own DNS, because I would need to set it up for failover, worry about performance, etc. (We're running all our hardware on EC2). I believe PowerDNS uses a MySQL backend, so I could also just write to that right?
Feb
18
asked Dynamic subdomain routing