The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Squid dns beardiebeardie UNIX for Dummies Questions & Answers 1 02-25-2008 12:19 AM
squid anonymizer globalvpn Shell Programming and Scripting 0 02-09-2008 06:20 AM
USN-565-1: Squid vulnerability iBot Security Advisories (RSS) 0 01-09-2008 04:00 PM
Squid 2.6STABLE1 and IE6 SP2 deckard Linux 2 07-27-2006 01:42 PM
Problem with SQUID chanfle Linux 1 05-03-2006 09:37 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-02-2008
Registered User
 

Join Date: Jun 2008
Posts: 8
Squid+DNS

Dear All

I have Squid 2.6 running on RHEL4. Actually we have our companys portal and Sun communication suit for Mail Service. Squid uses live DNS for resolving sites. I want to resolve Intranet address without by passing the proxy in the browser. I mean every user have to by pass proxy in the browser to open the company's e.g mail.abc.com. I need to know how our users can resolve local address with out by passing the proxy. Is it possible with Squid or Linux IPtables. Any assistance will by highly appreciable.

Regards
Iftikhar
Reply With Quote
Forum Sponsor
  #2  
Old 06-02-2008
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Quote:
Originally Posted by surfer24 View Post
Dear All

I have Squid 2.6 running on RHEL4. Actually we have our companys portal and Sun communication suit for Mail Service. Squid uses live DNS for resolving sites. I want to resolve Intranet address without by passing the proxy in the browser. I mean every user have to by pass proxy in the browser to open the company's e.g mail.abc.com. I need to know how our users can resolve local address with out by passing the proxy. Is it possible with Squid or Linux IPtables. Any assistance will by highly appreciable.

Regards
Iftikhar
Hi,
Here's what i would do, not sure if it will do the trick though :
- in your /etc/nsswitch.conf at the line beginning with hosts: put "files" before the word dns if its not already there
- add all your intranet addresses in /etc/hosts
You may need to restart squid, hope this helps ...
Reply With Quote
  #3  
Old 06-02-2008
Registered User
 

Join Date: Dec 2007
Location: Virginia, USA.
Posts: 250
Why don't you add the internal domain to your dns. Seems the easiest solution.
Reply With Quote
  #4  
Old 06-02-2008
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,644
You could just use a proxy auto configuration file then the browser would just load the configuration once on load and use the proxy for external and you could use direct connection for internal stuff.
Reply With Quote
  #5  
Old 06-03-2008
Registered User
 

Join Date: Jun 2008
Posts: 8
Local address resolution with Linus + Squid

Quote:
Originally Posted by andryk View Post
Hi,
Here's what i would do, not sure if it will do the trick though :
- in your /etc/nsswitch.conf at the line beginning with hosts: put "files" before the word dns if its not already there
- add all your intranet addresses in /etc/hosts
You may need to restart squid, hope this helps ...
Dear andryk
this trick didnt work my problem is still there. Actually we have a windows based DNS. Squid uses DNS of ISP from where we r getting internet service. Can it be done through IPtables bcz our mail service uses port 8843. I ill b waiting for ur reply

Regards
Reply With Quote
  #6  
Old 06-05-2008
Registered User
 

Join Date: Jun 2008
Posts: 8
Quote:
Originally Posted by surfer24 View Post
Dear andryk
this trick didnt work my problem is still there. Actually we have a windows based DNS. Squid uses DNS of ISP from where we r getting internet service. Can it be done through IPtables bcz our mail service uses port 8843. I ill b waiting for ur reply

Regards
Dear All

my problem is solved the trick told by andryk worked very well. i changed "nsswitch.conf" file, entered local addresses in the /etc/hosts file and also uncommented "hosts_file /etc/hosts" entry in the Squid.

Thnx all of u for ur cooperation
Reply With Quote
  #7  
Old 06-05-2008
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Glad to hear that.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0