Fixed the domain creation code for domains without an extension. For local development for example.