

I use Trilium and I like it. The first thing I would like to mention: Trilium is stale and there is Trilium Next the official successor… More or less… If you choose to try, start with the one that is still in development.
But to be fair, I does not use it as I wanted to. My plan was to use it completly with markdown but I am to dumb or ignorant to do it right. So I simply use the wysiwig style integration to style my texts.
I will watch a video that shows me how to properly use markdown in there.
On the other hand, actually I think about switching to some AsciiDoc Notes/Wiki stuff. Simply because I like the way AsciiDoc works…
And the last to mention: I have no experience with Authelia.
Well my first reply is: setting up yor own router is like to learn driving with a touring car. You just need to know a lot to set up/handle everything properly. Its just not easy and in m opinion the most wrong point to start.
DNS-wise I would like to recommend something like pihole. To me it was my first thing I installed and used until this day and also the handling of DNS is quite easy. Maybe you should consider lerning other things before setting up your own router.