Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 10-28-2006, 03:07 AM   #1
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Rep: Reputation: 30
Squid Error I Think...

This is my squid.conf

http_port 80

cache_mem 32 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 64 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 8 MB
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
cache_replacement_policy lru
memory_replacement_policy lru

cache_effective_user administrator
cache_dir ufs /usr/local/squid/var/cache 800 16 256
access_log /usr/local/squid/var/logs/access.log squid
cache_log /usr/local/squid/var/logs/cache.log
cache_store_log /usr/local/squid/var/logs/store.log

ftp_list_width 32

ftp_sanitycheck on
ftp_telnet_protocol on
check_hostnames on
allow_underscore on
dns_timeout 2 minutes
authenticate_ttl 1 hour

request_header_max_size 2 MB
request_body_max_size 8 MB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
read_ahead_gap 16 KB
negative_ttl 5 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 1 minute
range_offset_limit 0 KB

forward_timeout 4 minutes
connect_timeout 120 seconds
peer_connect_timeout 30 seconds
request_timeout 30 seconds
persistent_request_timeout 1 minute
client_lifetime 1 day
half_closed_clients off
pconn_timeout 120 seconds

acl all src
acl manager proto cache_object
acl localhost src
acl to_localhost dst

acl myclients src

acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 22
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777

acl allowedsites dstdomain "/usr/local/squid/etc/allowedsites.txt"

http_access allow myclients allowedsites
http_access deny !Safe_ports

http_reply_access allow all
http_access allow manager localhost
http_access deny manager
http_access deny CONNECT !SSL_ports
http_access deny all

icp_access allow all
miss_access allow all
reply_header_max_size 20 KB

visible_hostname administrator

memory_pools off
forwarded_for on
store_avg_object_size 13 KB
store_objects_per_bucket 20
netdb_low 900
netdb_high 1000
netdb_ping_period 5 minutes

and this is the error that is showing up when i access a particular website like google.

The requested URL could not be retrieved

While trying to retrieve the URL:

The following error was encountered:

Unable to determine IP address from host name for

The dnsserver returned:

Refused: The name server refuses to perform the specified operation.

This means that:

The cache was not able to resolve the hostname presented in the URL.
Check if the address is correct.

- can anyone help me about this problem pls...
Old 10-28-2006, 06:15 AM   #2
Registered: Oct 2006
Location: JNB, SA
Posts: 33

Rep: Reputation: 15

The squid.conf seems OK to me, the error you posted looks like that your network DNS is unable to resolve IP Address for so , first confirm with $nslookup ,check whether DNS is able to resolve this url or not? as squid has nothing to do with URL resolution, it will pass the query to its DNS and will get the IP to get the page.

Old 10-29-2006, 06:58 PM   #3
Registered: Jul 2006
Distribution: UBUNTU, CentOS, FEDORA 8
Posts: 474

Original Poster
Rep: Reputation: 30
-thanks for the seems you have a goode knowledge on squid configuration maybe you can help me setup a good configuration for our small network in our office which consist of 16 units 3 servers and 13 clients. the 13 clients is only used for web browsing which has a access control to monitor the websites these clients visit. the 3 servers however has full access to the internet. i have read a lot of squid howtos but there is no detailed explanation . hope you can help me thanks...
Old 11-04-2006, 03:15 PM   #4
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

The discussion continues here.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Squid Error? r_emu Linux - Newbie 8 08-09-2006 05:05 PM
Getting Error in Squid rovergenius Linux - Networking 0 12-24-2004 05:02 AM
squid error cranium2004 Linux - Networking 1 10-27-2004 03:25 AM
Squid Error kemplej Linux - Software 1 12-17-2003 06:22 PM
squid error... anoop_chandran Linux - Networking 0 11-27-2001 05:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:41 PM.

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