I would like to restrict the outbound access of my device to a single domain name, let's say abc.com. How can I do that?
Device needs to resolve the domain name to an IP address which might change depending on the server load. I am ok with allowing DNS access + a single domain.
Seems like iptables can accept hostname but that wouldn't be dynamic in case the IP address of the hostname changes. I don't even know if there is a hostname support in nftables.
I was wondering what options do I have.