unix and websites

Does Anyone know how to create domains ahead of another domain?

example

http://domain.example.com

Any Information would be of great help.

Thank you.

This is done in the DNS configuration of the primary DNS server for your example.com domain.

Thank you very much