squid error : The DNS server returned

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
golann
Posts: 42
Joined: 21 Aug 2013, 10:05

squid error : The DNS server returned

Postby golann » 11 Nov 2013, 20:41

Halo semua saya ada masalah dengan squid saya. ketika browsing dari browser client ada tulisan.

The following error was encountered while trying to retrieve the URL: http://www.googl*.com/

Unable to determine IP address from host name "www.googl*.com"

The DNS server 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.

tapi kalo coba di ping http://www.googl*.com ada reply.


satu lagi kalau di coba pake ip googl* di browser bisa terbuka.
tapi waktu di coba ip youtub* di browser kenapa halaman googl* yang terbuka ya??

kira-kira ini kenapa ya? Mohon bantuan nya?
User avatar
golann
Posts: 42
Joined: 21 Aug 2013, 10:05

SQUID PROXY : DNS RETURNED

Postby golann » 12 Nov 2013, 22:39

Halo semua. kenapa ya squid saya selalu DNS RETURNED TIMEOUT kalo dari browser, padahal kalo di ping di cmd dia reply.
Ini Squid.conf saya. Mohon Koreksi nya.

# NETWORK OPTIONS
http_port 3128 transparent
icp_port 3130
udp_incoming_address 0.0.0.0
udp_outgoing_address 255.255.255.255
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?

# OPTIONS WHICH AFFECT THE CACHE SIZE
no_cache deny QUERY
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 95
cache_mgr crisnainggolan@yahoo.com
connect_timeout 1 minutes
negative_ttl 5 minutes
read_timeout 15 minutes
request_timeout 5 minutes

# LOGFILE PATHNAMES AND CACHE DIRECTORIES
maximum_object_size 30096 KB
cache_dir aufs /cache 200 16 256
cache_access_log /var/log/squid3/access.log
cache_log /var/log/squid3/cache.log
cache_store_log /var/log/squid3/store.log
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

#acl
acl ditutup url_regex "/etc/squid3/ditutup.txt"
acl manager proto cache_object
acl localhost src 192.168.1.0/24
acl local_net src 192.168.1.0/24 #LAN
acl to_localhost dst 127.0.0.0/8
dns_nameservers 222.124.194.11
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 563 # snews
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 CONNECT method CONNECT

http_access deny ditutup
http_access allow manager
http_access allow localhost
http_access allow local_net
http_reply_access allow all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_reply_access allow all
icp_access allow all
cache_mgr webmaster
cache_effective_user proxy
cache_effective_group proxy
visible_hostname datacomm.co.id
memory_pools on
log_icp_queries on

# cache replacement
cache_replacement_policy lru
memory_replacement_policy lru

# MISCELLANEOUS
coredump_dir /var/spool/squid3
User avatar
Mr12uD1
Posts: 130
Joined: 12 May 2013, 07:05
Location: kediri, Indonesia
Contact:

Re: SQUID PROXY : DNS RETURNED

Postby Mr12uD1 » 13 Nov 2013, 07:51

klo squid.conf saya tuk bagian dns_nameserver tu saya sesuaikan dengan resolv.conf om....
mungkin ada kendala disitu..

CMIIW....
User avatar
golann
Posts: 42
Joined: 21 Aug 2013, 10:05

Re: SQUID PROXY : DNS RETURNED

Postby golann » 13 Nov 2013, 08:48

Sudah saya sama kan dengan di resolv.conf dan di /etc/network/interfaces. sudah saya buat nameservernya tapi tetap aja.
User avatar
sr_aja
Posts: 602
Joined: 10 Dec 2012, 11:21
Location: Jakarta

Re: SQUID PROXY : DNS RETURNED

Postby sr_aja » 13 Nov 2013, 11:09

dns_nameservers 222.124.194.11 << ini DNS provider yak?

apakah pad mesin squidnya di install DNS server juga, jika ya.. coba di rubah jadi begini;

dns_nameservers 127.0.0.1 8.8.8.8 222.124.194.11

sebenarnya, saya tidak pernah melakukan pointing parameter dns_nameservers yang ada di squid ke privider langsung, tapi saya merujuk ke DNS lokal atau ke diri sendiri yang ada pada network saya :D

jadi yang ada di squdi.conf saya biasanya seperti ini;
dns_nameservers 127.0.0.1 192.168.x.x

note;
192.168.x.x adalah DNS lokal yang melayani menajemen DNS di LAN
sebenarnya DNS ini hanya untuk mendefenisikan ke squid alamat2 ip server yang ada di lokal, sedangkan 127.0.0.1 itu melayani penerjemahan DNS ke internet
User avatar
golann
Posts: 42
Joined: 21 Aug 2013, 10:05

Re: SQUID PROXY : DNS RETURNED

Postby golann » 13 Nov 2013, 16:52

Sudah saya coba dengan saran diatas tapi tetap aja ga konek.

dns juga sudah saya ganti dengan dns googl*

nameserver 8.8.8.8
nameserver 8.8.4.4

tetap aja tidak bisa. tapi kalau dari server Ubuntunya memang konek dari browser tapi kalau dari klien tidak konek.

Atau mungkin dari squid.conf nya. mohon Bantuan nya para master squid.conf saya. Help
User avatar
sr_aja
Posts: 602
Joined: 10 Dec 2012, 11:21
Location: Jakarta

Re: SQUID PROXY : DNS RETURNED

Postby sr_aja » 19 Nov 2013, 14:07

bisa copas log squid ke sini tidak?
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: SQUID PROXY : DNS RETURNED

Postby q_p » 19 Nov 2013, 14:54

Ini yang melakukan dial ke inet siapa ? modem atau mesin proxy anda ?
Baikknya anda sertakan topologinya mas ...

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 5 guests