If You want to buy a domain name
First you need to found a Domain Service Provider...
Then you have to search your domain name in their website
If it Available to Register for you you have to Register your domain name for you
and Payment to Domain Provider to complete registration your domain.