You have a local DNS server (e.g. your UniFi router) and want all your devices to use it, even though some don't care which server your router specifies in DHCP replies (e.g. IoT devices)? You can use DNAT to redirect all requests ment for external DNS servers to your local (or favourite remote) DNS server.
I guess you know what port forwarding is: you have a single public IP address shared by 10s of devices. In order for devices on the internet (e.g. your friends) to be able to access a device on your local network (e.g. your Jellyfin server) you need to tell your router to forward incoming traffic for a port to a local IP