LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2008, 05:57 AM   #1
bhargavbhai
LQ Newbie
 
Registered: Jul 2008
Posts: 10

Rep: Reputation: 0
How to redirect some sites to othere site in my network


Hello every one,

I want to redirect some sites to othere site in my network.

I have local dns configured and want to set some rules such that when any one tries to open mail.google.com then it redirects to mail.aspl.in site.

For this set up what changes should i need to make.
If i need to create iptable rules then how to create it and also specify how to flush it?

If any body knows how to balance the usage of two brodband line then plz specify it too.

-Bhargav
 
Old 08-12-2008, 01:00 AM   #2
darthaxul
Member
 
Registered: Aug 2008
Distribution: Devuan; Gentoo; FreeBSD
Posts: 236

Rep: Reputation: 19
dn redirect

you can add a alias or cname of that gmail server to also be your local server. also you might have to make that server a tld so that "com" doesnt look for google. you shouldnt have to do anything with iptables with that as the name resolution is what the dns server does. just specify the name and the ip address in the configuration.
 
Old 08-13-2008, 04:47 AM   #3
bhargavbhai
LQ Newbie
 
Registered: Jul 2008
Posts: 10

Original Poster
Rep: Reputation: 0
I want to block file of the site.

Hello

Actually i want to block only some file of particular site but bot the whole site.
For example I want to block www.google.com/accounts/ and I should be able to access www.google.com/a/aum.bz .
This is bcoz we are using google mail service.
And I want to configure this setup with local dns so plz paste here whole zone file content if possible.

Thanx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(IPTABLES) redirect web site to a file? dmane15 Linux - Newbie 9 08-11-2008 05:53 AM
How can i redirect a site? ZAMO Linux - Software 5 07-06-2007 02:03 AM
redirect site from apache to tomcat carlainz Linux - Server 1 12-09-2006 03:41 AM
no trailing slash -> apache redirect to microsoft site? SerfurJ Linux - Software 6 03-15-2005 06:25 AM
This site vs Other sites... Thymox LQ Suggestions & Feedback 15 06-14-2001 05:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration