Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => Linux Proxy Server Support => Topic started by: sunlinux on August 10, 2007, 09:08:04 AM
-
Can we restrict dns lookup for a particular domain such as chatenabled.mail.google.com(used for google chat) with iptables or somehow ?
I want to block chat using gmail.com ( gmail suggested the method to block using above method)
-
you can either drop queries on port 53 which is for dns but then everything will stop or you can block that particular domain.
See this how a person blocked yahoo messenger using squid (http://www.linuxsolved.com/linux-forums/other-devices/blocking-yahoo-messenger-on-transparent-proxy-t1363.0.html)
You can also use iptabls to drop that domain request..
iptables -A FORWARD -d domain.com -j DROP