You can use noip.com for free dynamic DNS
And if you're concerned about whoever finding out you're hosting illegal content you can have a WireGuard server and have everything go through it instead of being open to the web. This also has the advantage of being essentially undetectable from the outside