Hi there,
As far as I can tell you don't have, nor plan on having support for custom CNAME DNS support. My question is why not. I've seen some answers in the forums, but I don't see the actual problem. Let me explain how I think it could work, and you tell me why it would be really hard/difficult.
My example of how it could be done will be in PHP, but you could do it in whatever language you use.....
$calling_url = $_SERVER['SERVER_NAME'];
if(strpos($calling_url, ".timetask.com") === FALSE)
{
// might check a cache here otherwise:
$dns_records = dns_get_record($calling_url, DNS_CNAME);
if($dns_records !== FALSE && !empty($dns_records))
{
$dns_record = reset($dns_records);
if(isset($dns_record['target']) && !empty($dns_record['target'])
{
$calling_url = $dns_record['target'];
//might cache this value to skip constant lookups
}
}
}
// Do what you would normally do with $calling_url to determine the client id, etc.
Not sure why that would be too hard, then there is 0 configuration except for a CNAME entry in the DNS table to the correct subdomain as you currently already have it.
Thoughts?
Thanks for the code samples. You are absolutely correct that something like this would work. The issue isn't so much one of difficulty in developing the feature. It has more to do with time spent developing and supporting the feature. Here are some reasons why we are not pursuing this feature at this time:
1 to 2 of 2
Comments are closed.
For more Intervals help documentation, please visit help.myintervals.com