Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Niech mi ktos pomoze bo zaraz wyp******* tego kompa przez okno.
Proboje od jakiegos czasu zrobic ProxyDNS mianowicie PDNSD. Czytalem o konfiguracji na roznych stronkach, wszedzie opisuja to tak banalnie i wogule wszystko latwe i zadnych problemow.
Zainstalowalem PDNSD. Zmieniłem config na
global { perm_cache=512; cache_dir="/var/cache/pdnsd"; max_ttl=604800; run_as="pdnsd"; paranoid=on; status_ctl=on; # server_port=53; server_ip="127.0.0.1"; } server { ip="194.204.152.34"; ip="194.204.159.1"; timeout=30; interval=30; ping_timeout=50; purge_cache=off; caching=on; } source { ttl=86400; owner="localhost."; serve_aliases=on; file="/etc/hosts"; }
Potem standardowo restart:
# /etc/init.d/pdnsd restart
W syslog:
Feb 22 14:10:44 localhost pdnsd[29940]: Caught signal 15. Exiting. Feb 22 14:10:44 localhost pdnsd[29972]: pdnsd-1.1.11-par starting.
No i wporzo niby smiga.
# netstat -l -n Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN udp 0 0 0.0.0.0:3093 0.0.0.0:* udp 0 0 127.0.0.1:53 0.0.0.0:* udp 0 0 0.0.0.0:3130 0.0.0.0:* udp 0 0 0.0.0.0:67 0.0.0.0:* udp 0 0 0.0.0.0:111 0.0.0.0:* raw 0 0 0.0.0.0:1 0.0.0.0:* 7 Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 2645 /var/run/apache2/cgisock unix 2 [ ACC ] STREAM LISTENING 2410 /dev/printer unix 2 [ ACC ] STREAM LISTENING 69991 /var/cache/pdnsd/pdnsd.status Active IPX sockets Proto Recv-Q Send-Q Local Address Foreign Address State
Czyli wszystko powinno byc wporzadku. W resolv.conf jeden wpis:
nameserver 127.0.0.1
Ale...
# dig wp.pl ; <<>> DiG 9.2.4 <<>> wp.pl ;; global options: printcmd ;; connection timed out; no servers could be reached
Ktos wie o co chodzi?
Z góry dzieki za pomoc
Offline
global { perm_cache=512; cache_dir="/var/cache/pdnsd"; max_ttl=604800; run_as="pdnsd"; paranoid=off; status_ctl=on; verbosity=3; debug=off; linkdown_kluge=on; } server { ip="198.41.0.4"; caching=on; } server { ip="192.228.79.201"; caching=on; } server { ip="192.33.4.12"; caching=on; } server { ip="128.8.10.90"; caching=on; } server { ip="192.203.230.10"; caching=on; } server { ip="192.5.5.241"; caching=on; } server { ip="192.112.36.4"; caching=on; } server { ip="128.63.2.53"; caching=on; } server { ip="192.36.148.17"; caching=on; } server { ip="192.58.128.30"; caching=on; } server { ip="193.0.14.129"; caching=on; } server { ip="198.32.64.12"; caching=on; } server { ip="202.12.27.33"; caching=on; } server { label="resolvconf"; } source { ttl=86400; owner="localhost."; file="/etc/hosts"; }
a wynik
ls -al /var/cache/pdnsd total 12 drwxr-xr-x 2 pdnsd proxy 4096 Feb 23 11:27 . drwxr-xr-x 10 root root 4096 Feb 23 11:18 .. -rw-r--r-- 1 pdnsd proxy 8 Feb 23 11:23 pdnsd.cache srw------- 1 pdnsd proxy 0 Feb 23 11:27 pdnsd.status
i dziala calkiem ok
Offline
No i zrobilem ... i rozwiazanie jak zwykle bylo banalne ...
$IPTABLES -A INPUT -i lo -j ACCEPT
:/
Offline
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00097 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.139.108.48' WHERE u.id=1 |
0.00056 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.139.108.48', 1732684408) |
0.00052 | SELECT * FROM punbb_online WHERE logged<1732684108 |
0.00048 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=6955 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00134 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=6955 ORDER BY p.id LIMIT 0,25 |
0.00113 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=6955 |
Total query time: 0.00519 s |