Kod: Zaznacz cały
PING onet.pl (213.180.130.200) 56(84) bytes of data.
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=1 ttl=56 time=141 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=2 ttl=56 time=97.5 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=3 ttl=56 time=94.5 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=4 ttl=56 time=93.0 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=5 ttl=56 time=95.1 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=6 ttl=56 time=90.7 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=7 ttl=56 time=90.8 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=8 ttl=56 time=90.8 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=9 ttl=56 time=86.9 ms
64 bytes from f1virt.onet.pl (213.180.130.200): icmp_seq=10 ttl=56 time=94.0 ms
Kod: Zaznacz cały
dig wp.pl
...
;; Query time: 2173 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Aug 10 23:06:56 2008
;; MSG SIZE rcvd: 150
Dla debianowatych:
Kod: Zaznacz cały
apt-get install pdnsd (na pytanie debconf odpowiadmy manual)
vim /etc/pdnsd.conf
Kod: Zaznacz cały
global {
perm_cache=2048;
cache_dir="/var/cache/pdnsd";
run_as="pdnsd";
server_ip = 127.0.0.1;
status_ctl = on;
paranoid=on;
min_ttl=1w; // przez ile czasu maja byc cache'owane zapytania - 1 tydzien
max_ttl=4w;
timeout=10;
}
server {
label="mojdns";
ip = xxx.xxx.xxx.xxx ; // tu wstawiamy serwer dns ktory bedziemy odpytywac
}
Kod: Zaznacz cały
/etc/init.d/pdnsd restart
Kod: Zaznacz cały
nameserver 127.0.0.1
Kod: Zaznacz cały
dig wp.pl:
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Aug 10 23:06:58 2008
;; MSG SIZE rcvd: 150