I have a CentOS server and only want to allow outgoing connections to specific domains. (allowlist) My thought was to have a DNS proxy which adds the allowed ips (only ipv4 needed) to nftable named sets. Is there an easy solution for this already?
Edit: Alternatively I would create a script which would update the entries in /etc/hosts and nftables, but it seams a bit error-prone to me, if the server-ip changes.