A handful of domains will have restrictions on them, which means you can only purchase them if you meet certain criteria or have authorization (some examples are .gov, .edu. and .mil). But most extensions are available to everyone. In fact, most country code Top Level Domains (ccTLDs) are available for anyone to purchase, even if you don’t reside in the country in question.
Domain names are organized in subordinate levels (subdomains) of the DNS root domain, which is nameless. The first-level set of domain names are the top-level domains (TLDs), including the generic top-level domains (gTLDs), such as the prominent domains com, info, net, edu, and org, and the country code top-level domains (ccTLDs). Below these top-level domains in the DNS hierarchy are the second-level and third-level domain names that are typically open for reservation by end-users who wish to connect local area networks to the Internet, create other publicly accessible Internet resources or run web sites.
My personal preference is to register the name directly with a domain name registrar rather than through my web host. I've heard stories, in the past, of less-than-reputable web hosts that registered the domain under their own name, making them the owner of the domain rather than you (although I don't know if such web hosts still exist today). Registering direct with a domain name registrar allows me to make sure that I am registered as the owner, the administrative and technical contacts. Being the owner is vital — if someone else places himself as the owner (such as your web host), he can always decide to charge you some exorbitant fee for the use of the name later, and there is little you can do. The various other contacts are less vital, but may still play important roles, depending on your registrar. For example, for some registrars, the administrative contact's approval is required before a domain name is transferred out of a web host (or at least, it used to be). If he/she cannot be contacted, the technical contact is used.
1and1 have terrible customer service and billing, quite possibly the worst ever encountered. Their billing/invoice system is all over the place, their staff untrained and unwilling to resolve and their pricing is literally plucked out of thin air. Beware, pay 12 months in advance (not monthly) then cancel the direct debit or Paypal auto payment, otherwise they will rinse your pockets when you’re not looking &/or unexpectedly take an extra payment because of an ‘oversight’.