added env var support for a default domain name