April 25, 2024, 02:26:31 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: restrict dns look up  (Read 3459 times)

Offline sunlinux

  • Tux Awared
  • **
  • Posts: 30
restrict dns look up
« 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)

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: restrict dns look up
« Reply #1 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

You can also use iptabls to drop that domain request..
Code: [Select]
iptables -A FORWARD -d domain.com -j DROP