Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Сетевые технологии > у меня не правильно настроен Squid. не резолвятся


Автор: zammar 29.6.2010, 23:30
Только начинаю изучать Squid. (Squid стоит на windows XP)
Настроил браузер для работы с ним, а он мне выдет:

Цитата

While trying to retrieve the URL: http://forum.vingrad.ru/forum/network_technologies.html

The following error was encountered:

Unable to determine IP address from host name for forum.vingrad.ru
The dnsserver returned:

Timeout
This means that:

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

Your cache administrator is webmaster. 


Я так понял не резолвиться домен? А почему?

Это мой squid.conf
Код


acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32

#acl localhost src 127.0.0.1-127.0.0.254

acl to_localhost dst 127.0.0.0/8 0.0.0.0/32

acl localnet src 10.0.0.0/8    # RFC1918 possible internal network
acl localnet src 172.16.0.0/12    # RFC1918 possible internal network
acl localnet src 192.168.0.0/16    # RFC1918 possible internal network

acl SSL_ports port 443
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
acl Safe_ports port 70        # gopher
acl Safe_ports port 210        # wais
acl Safe_ports port 1025-65535    # unregistered ports
acl Safe_ports port 280        # http-mgmt
acl Safe_ports port 488        # gss-http
acl Safe_ports port 591        # filemaker
acl Safe_ports port 777        # multiling http
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost


http_access allow localnet
http_access deny all

icp_access allow localnet
icp_access deny all


http_port 3128


hierarchy_stoplist cgi-bin ?
access_log c:/squid/var/logs/access.log squid
unlinkd_program c:\squid\libexec\unlinkd.exe


refresh_pattern ^ftp:        1440    20%    10080
refresh_pattern ^gopher:    1440    0%    1440
refresh_pattern -i (/cgi-bin/|\?) 0    0%    0
refresh_pattern .        0    20%    4320

acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast


acl apache rep_header Server ^Apache
broken_vary_encoding allow apache

coredump_dir c:/squid/var/cache





Автор: marykone 30.6.2010, 08:23
Цитата

пуск --- выполниить --- cmd --- nslookup ya.ru


вывод команды сюда выложите. 

Автор: ChihPih 30.6.2010, 11:21
Странно, а почему у вас в конфиге не указана опция cache_dir?
Нужно ее указать, а потом инициализировать кэш командой squid -z.

Автор: zammar 30.6.2010, 21:05
команда nslookup ya.ru выдает это:

Цитата

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  78.111.240.2

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.



что касается опции cache_dir, то не знаю почему нету. вроде сформировал структуру кеша вот так:

c:\squid\sbin\squid -z -f C:\squid\etc\squid.conf

Ошибок не было.

Автор: ChihPih 30.6.2010, 21:57
Странно на счет опции cache_dir, на никсах она обязательно, может на винде по другому о собран...
Судя по результатам команды nslookup запрос к днс серверу (провайдера или еще кого, смотря как соединение настроено) не проходит. Какое у вас подключение к интернету?

Автор: zammar 1.7.2010, 21:04
У меня подключение к локальной сети провайдера, через сетевую карту и ветую пару

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)