How do I get the current Salesforce domain?

@AndyONE have you been able to find a solution for this?

Can you share more about your specific use case (site or community vs internal Salesforce, iframe, etc)?