download unbound 1.4.17 and compile it on Fedora 17
[root@fc17 unbound-1.4.17]# cat /etc/fedora-release Fedora release 17 (Beefy Miracle) [root@fc17 unbound-1.4.17]# uname -ri 3.4.0-1.fc17.x86_64 x86_64 |
before compiling unbound , install ldns-devel if you have not installed it
# yum install ldns-devel |
compile
495 ./configure --sysconfdir=/etc/ --disable-gost --disable-ecdsa;make;make install 497 make 498 make install |
# unbound-control status version: 1.4.17 verbosity: 1 threads: 1 modules: 2 [ validator iterator ] uptime: 47 seconds unbound (pid 786) is running... |
[ rrset-roundrobin ]
unbound.conf
add “rrset-roundrobin: yes” in server section
server: rrset-roundrobin: yes |
reload
# unbound-control reload ok |
it works well
# dig @127.1 unbound.net +short 213.248.210.39 213.154.224.1 # dig @127.1 unbound.net +short 213.154.224.1 213.248.210.39 |
[ minimal-responses ]
add “minimal-responses: yes” in server section and issue “unbound-control reload”
server: minimal-responses: yes |
before
# dig @127.1 unbound.net ; <<>> DiG 9.9.1-RedHat-9.9.1-1.fc17 <<>> @127.1 unbound.net ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13942 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 3, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;unbound.net. IN A ;; ANSWER SECTION: unbound.net. 7200 IN A 213.154.224.1 unbound.net. 7200 IN A 213.248.210.39 ;; AUTHORITY SECTION: unbound.net. 7200 IN NS open.nlnetlabs.nl. unbound.net. 7200 IN NS nom-ns1.nominet.org.uk. unbound.net. 7200 IN NS ns.secret-wg.org. |
after
no auth section.
# dig @127.1 unbound.net ; <<>> DiG 9.9.1-RedHat-9.9.1-1.fc17 <<>> @127.1 unbound.net ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19704 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;unbound.net. IN A ;; ANSWER SECTION: unbound.net. 7200 IN A 213.154.224.1 unbound.net. 7200 IN A 213.248.210.39 ;; Query time: 1012 msec |
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.