I am using Linux as a router in my environment. I have to restrict outgoing traffic to only certain domains on certain port and block the rest.
IP based filtering is also not feasible because some of the domains which we connect are using dynamic IP's and it keeps changing.
Is there a way to filter outbound traffic based on DNS name?