IPTables and DNS don't match?
When I use dig to resolve a hostname to IP (ex. www.hotmail.com), I get a list of ips belonging to that domain. When I add the hostname to the firewall:
iptables -A FORWARD -j DROP -d www.hotmail.com
and look at the firewall list:
target prot opt source destination
DROP all -- 0.0.0.0/0 126.96.36.199
DROP all -- 0.0.0.0/0 188.8.131.52
DROP all -- 0.0.0.0/0 184.108.40.206
I see the related IPs.
Then when I go to test the connection on a client entering:
I am still able to access the website. However, the IP used to access the site is different than the ones listed above.
There are no proxy servers in my domain, nor is the client configured to use any proxy server.
My logic is that if the DNS server lists the above IPs, and the firewall is blocking them, then the client should not be able to connect. How is this not so?
- Throughly frustrated! :oops: