inc/iSchedule.php domain lookup a bit simplistic
In the function getServer there is logic to look for _ischedules._tcp. in the DNS for a domain. The logic currently splits up the domain and queries based on an arbitrary number of parts, with special casing for 'nz' and 'uk'. I feel this could be better, but would like to hear from others.
My thinking is it should work from the most specific to the most general, until it finds a result, or runs out of parts. For example, in order:
- team.unit.example.com
- unit.example.com
- example.com
- com
This would handle where companies have per team setups, right up to gTLDs (think vanity brand ones).