Hacker News new | ask | show | jobs
by luch 1298 days ago
because firewalls filter at the IP/port level, not at DNS level
2 comments

There are firewalls with those features.
Depending on what you want to do it's not applicable. You can only easily guess the domain from HTTP connections and maybe from other tcp stuff if you have TLS + SNI in front.

For example, you can't guess the target domain for an ssh connection.

But some routers will let you set a rule on a domain name. They will then resolve that domain name to an IP and use that internally, and do periodic lookups to refresh the IP they're referring to.
Thing is, if you're sharing that IP with several different domains, then you can't route properly :(
Use one domain.
No. They do a dns lookup and allow the IP addresses returned.
The DNS server should return the IP.