You can easily enable this by telling your customers to configure CNAME to point to your domain.
So, if your server is located at www.example.com, you report "david" to configure www.exampledavid.com to have a CNAME record pointing to www.example.com
On the server side, you will have a configuration that detects the domain that was requested and redirected and served the appropriate content in "david"
If your clients want to use the bare domain ie exampledavid.com on their servers, you will need to provide them with an IP address, however before that you will need to make sure that your IP address will not be changed and probably have a contract with who supplies it to provide this.
source share