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

Title: restrict dns look up
Post 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)
Title: Re: restrict dns look up
Post by: Ricky on August 11, 2007, 12:01:19 AM
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..
Code: [Select]
iptables -A FORWARD -d domain.com -j DROP