There is, in fact, excellent documentation on their site for this https://libera.chat/guides/cloaks.
Of course, it's not as much of a free-for-all as some other networks (I recall Rizon lets you set whatever cloak you want), but it should hide hostnames.