Creating a domain pointer automatically at user creation

thomasdk81

Verified User
Joined
Oct 3, 2010
Messages
56
Location
Denmark
Is it possible to create a domain pointer automatically when I create a user.
The domain pointer would be something like {username}.{server-url}

Thanks in advance,
Thomas
 
Hello Thomas,

No need to use API, just update virtual hosts templates and add |USER|.|HOSTNAME| as alias. Then make sure to update DNS zone for your hostname to have a wildcard:

Code:
*.server.domain.com. IN A 11.22.33.44

related: http://help.directadmin.com/item.php?id=2

Is it possible to create a domain pointer automatically when I create a user.
The domain pointer would be something like {username}.{server-url}

With this approach such a name won't work for emails. If you need it for emails as well then use API as Andrea suggested.
 
Back
Top