Hi All 
    It is working out correctly , I got help from Brad
, in dubaiLUG with this small script 

 iptables -t nat -A PREROUTING  -p tcp -d !
192.168.0.0/16 --dport 80 -j REDIRECT --to-port 80
 
      It works partially means , it get redirected for
any IP address based request , it gets the  defaullt 
page I had set 
      But for any domain name based request it s
imply , give page not found 
                  Thanks 
                    Joseph 

--- Raj shekhar <[EMAIL PROTECTED]> wrote:

> in infinite wisdom John Joseph spoke thus on
> 12/12/05 16:32:
>  > Hi All
>  >        I would like to do a dns setting , such
> that
>  > any request  gets resolved to one fixed IP
> address
>  >           ie if I give  www.google.com ,
>  > www.yahoo.com , asd.net ,lkj.ae  all this should
> get
>  > resolved to a single IP address
>  >     I am using RHEL-4
>  >             I would request guidance ,  for this
>  >                        Thanks
> 
> 
> I think what you are looking for is someway to
> blacklist certain 
> hostnames, so that they resolve to some 'You are not
> allowed to see that 
> page in your office time' .  What you need is squid.
>  Squid works as a 
> proxy and can serve dns requests as well.  Check its
> docs on how you can 
> blacklist hosts.
> 
> 
> Please use this thread for further discussions and
> don't hijack a 
> running thread.
> -- 
>           _.-,               raj shekhar
>      .--'  '-._           http://rajshekhar.net
>   _/`-  _      '.       http://rajshekhar.net/blog
> '----'._`.----. \
>            `     \;  WE APOLOGIZE FOR THE
> INCONVENIENCE
>                  ;_\    -- God's Last Message to his
> Creation
> 
> _______________________________________________
> ilugd mailinglist -- ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at:
> http://news.gmane.org/gmane.user-groups.linux.delhi
>
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
> 
> 



        
        
                
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

_______________________________________________
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/

Reply via email to