How do get a domainname for my peertube server

I was thinking of creating my own peertube server. I looked on the installation page and I found that I need a domain. I thought I could buy one on but then I remembered that you have to set dns for it. How to do that for peertube or is there another way to get a domainname.