Strona 1 z 1

Squid i nieznany IP

: 18 sierpnia 2009, 10:15
autor: qwerty
Witam,
W sieci lokalnej działa DHCP, który jako serwer DNS podaje serwery TP 194.204.159.1 i 194.204.152.34. Na stacji klienckiej można pobrać stronę www po nazwie i IP. Ale jak uruchomię Squid`a to dostaję komunikat, że nieznany jest IP dla podanej strony. Jak podam IP w przeglądarkę to stronka się otworzy.

Mój plik nsswitch.conf

Kod: Zaznacz cały

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis
Plik resolv.conf

Kod: Zaznacz cały

nameserver 194.204.159.1
nameserver 194.204.152.34
Zainstalowałem też pakiet resolvconf i też nie pomogło. Nie wiem czy to jest w ogóle potrzebne.

Jeżeli ustawię serwer DNS na interfejs lokalny serwera to w ogóle nie działa rozwijanie nazw na IP na stacji klienckiej. Czy muszę instalować binda?

Z serwera jak próbuję się łączyć ze stronami to wszystko działa dobrze.

Dzięki za pomoc!

: 18 sierpnia 2009, 12:17
autor: kayo
Zapodaj squid.conf

: 18 sierpnia 2009, 12:27
autor: qwerty

Kod: Zaznacz cały

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet_eth1 src 10.0.1.0/24
acl localnet_eth2 src 10.0.2.0/24
acl SSL_ports port 443          # https
acl SSL_ports port 563          # snews
acl SSL_ports port 873          # rsync
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 Safe_ports port 631         # cups
acl Safe_ports port 873         # rsync
acl Safe_ports port 901         # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet_eth1
http_access allow localnet_eth2
http_access allow localhost
http_access deny all
icp_access allow localnet_eth1
icp_access allow localnet_eth2
icp_access deny all
http_port 127.0.0.1:3128 transparent
http_port 10.0.1.1:8080 transparent
http_port 10.0.2.1:8080 transparent
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Package(.gz)*)$        0       20%     2880
refresh_pattern .               0       20%     4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid


[ Dodano: 2009-08-18, 22:38 ]
Dziwne, po ponownym uruchomieniu serwera działa już dobrze.