Perspective buyers are able to directly contact domain holders in cases where the desired domain is no longer available. Most registries openly publish the names and contact data of domain holders. Once this information is gained, buyers can get in touch with domain holders and make an offer for the name. Sales are also known to occur in instances where the original domain owner had no prior commercial ambitions
For special purposes, such as network testing, documentation, and other applications, IANA also reserves a set of special-use domain names. This list contains domain names such as example, local, localhost, and test. Other top-level domain names containing trade marks are registered for corporate use. Cases include brands such as BMW, Google, and Canon.
For the most part, you can pick whichever TLD you prefer, though a few have restrictions -- you can't buy a .edu domain unless you run an accredited post-secondary school. Many, but not all, country-specific domains (.us, .uk, .jp) are restricted to citizens of the country in question. Unrestricted country domains are often used for "domain hacks," where the extension becomes part of the title, such as YouTube's alternate address, "youtu.be."
Registrars offer a wide variety of registration durations—one year, three, five, and even ten. Be careful about registering for more than a year, though. First, there might be restrictions on your ability to transfer the domain name should the registrar give poor service. Second, the registrar could go out of business, leaving your domain name without a host. Check the policies closely.
Getting a domain name involves registering the name you want with an organisation called ICANN through a domain name registrar. For example, if you choose a name like "example.com", you will have to go to a registrar, pay a registration fee that costs around US$10 to US$35 for that name. That will give you the right to the name for a year, and you will have to renew it annually for (usually) the same amount per annum.
In order to register any domain, you must provide certain personal information that you may not wish to be publically searchable in the Whois database. Signing up for WhoisGuard is a great way to keep your registration data private. WhoisGuard acts as a "shield" for your searchable information, displaying the address, phone number, and email of the domain registrar (Namecheap, e.g.) instead of your own. Keep in mind that WhoisGuard is an optional security add-on that must be renewed separately when you renew your domain.