You do not buy a domain forever; you lease it on an annual basis and must renew it to keep it.
You buy them through a "Domain Registrar" (such as Namecheap, Google Domains/Squarespace, or Porkbun). do i have to buy a domain name
Ad networks and affiliate programs often require a custom domain for approval. You do not buy a domain forever; you