Hacker News new | ask | show | jobs
by PaulRobinson 3299 days ago
DNS is a thing. Keep a list of accepted domains. As DNS resolution occurs populate a cache of IP addresses that you can then whitelist. Not hard, a competent developer could build something solid in a week or so using existing tools.
1 comments

Dnsmasq already supports this. It can add resolved IPs of hostnames matching a pattern to ipset ("--ipset" is the option).