0

I would like to create subdomains Dynamically under my domain using asp.net ,C#? I can not find good solution for this. What are the things i should do to complete this.

Scenario: 1.user register with site 2.domain name should be: http://username.domain.com

Thanks

1

1 Answer 1

2

Most DNS providers allow you to specify wildcard DNS. That means you have an entry something like "*.example.com" that maps to your IP address.

If you do this, then you do not have to modify DNS entries on the fly, you just need to add an internal mapping in your database (or whatever) saying that "user1.example.com maps to user1", etc.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.