How can I improve the startup speed of named
I have 40+ domains, how to improve the startup speed of named。 The first startup took more than 3 hours. named version:bind-9.7.0-P1 To build with --enable-threads Cent OS 5.4(64Bit) Intel(R) Xeon(R) CPU E5405 @ 2.00GHz(4*2 cores) Memory: 16G -- ShanyiWan 2010-03-26 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
why dig +trace does not working?
[r...@flyinweb ~]# dig @ns1.dns-diy.com 35.com +trace ; DiG 9.7.0-P2 @ns1.dns-diy.com 35.com +trace ; (1 server found) ;; global options: +cmd ;; Received 17 bytes from 218.85.139.33#53(218.85.139.33) in 2 ms [r...@flyinweb ~]# dig @ns1.dns-diy.com 35.com ; DiG 9.7.0-P2 @ns1.dns-diy.com 35.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 17492 ;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;35.com.IN A ;; ANSWER SECTION: 35.com. 100 IN A 210.75.241.83 ;; Query time: 2 msec ;; SERVER: 218.85.139.33#53(218.85.139.33) ;; WHEN: Sat Jun 12 11:34:14 2010 ;; MSG SIZE rcvd: 40 [r...@flyinweb ~]# dig @8.8.8.8 35.com +trace ; DiG 9.7.0-P2 @8.8.8.8 35.com +trace ; (1 server found) ;; global options: +cmd . 55672 IN NS m.root-servers.net. . 55672 IN NS k.root-servers.net. . 55672 IN NS g.root-servers.net. . 55672 IN NS c.root-servers.net. . 55672 IN NS d.root-servers.net. . 55672 IN NS a.root-servers.net. . 55672 IN NS i.root-servers.net. . 55672 IN NS h.root-servers.net. . 55672 IN NS j.root-servers.net. . 55672 IN NS l.root-servers.net. . 55672 IN NS b.root-servers.net. . 55672 IN NS e.root-servers.net. . 55672 IN NS f.root-servers.net. ;; Received 228 bytes from 8.8.8.8#53(8.8.8. in 97 ms com.172800 IN NS c.gtld-servers.net. com.172800 IN NS j.gtld-servers.net. com.172800 IN NS i.gtld-servers.net. com.172800 IN NS m.gtld-servers.net. com.172800 IN NS f.gtld-servers.net. com.172800 IN NS b.gtld-servers.net. com.172800 IN NS k.gtld-servers.net. com.172800 IN NS g.gtld-servers.net. com.172800 IN NS h.gtld-servers.net. com.172800 IN NS a.gtld-servers.net. com.172800 IN NS d.gtld-servers.net. com.172800 IN NS l.gtld-servers.net. com.172800 IN NS e.gtld-servers.net. ;; Received 512 bytes from 192.228.79.201#53(b.root-servers.net) in 194 ms 35.com. 172800 IN NS ns1.dns-diy.com. 35.com. 172800 IN NS ns2.dns-diy.com. ;; Received 164 bytes from 192.35.51.30#53(f.gtld-servers.net) in 196 ms 35.com. 100 IN A 210.75.241.83 ;; Received 40 bytes from 218.107.207.23#53(ns2.dns-diy.com) in 208 ms 2010-06-12 ShanyiWan ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Forwarding DNS Server can not resolved alias records(CNAME)?
Forwarding DNS Server can not resolved alias records(CNAME)? here: 211.99.204.77 Forwarding DNS Master Zone (another ip address) [r...@flyinweb data]# vi 01cool.com.dom $TTL 7200 ; 2 hours @IN SOA ns1.mymaster.com. root.mymaster.com. ( 5; serial 10800; refresh 3600; retry 604800; expire 86400; mininum ) NS ns1.mymaster.com. NS ns2.mymaster.com. MX 10 mail.01cool.com. @ A 218.246.85.101 mailA 218.246.85.199 www CNAME 218.246.85.101. www1CNAME 517sou.net. A Record is correct,but CNAME Record is incorrect! [r...@flyinweb data]# dig @211.99.204.77 01cool.com ; DiG 9.7.0-P2 @211.99.204.77 01cool.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 17293 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;01cool.com.IN A ;; ANSWER SECTION: 01cool.com. 7200IN A 218.246.85.101 ;; AUTHORITY SECTION: 01cool.com. 7200IN NS ns1.cnolnic.com. 01cool.com. 7200IN NS ns2.cnolnic.com. ;; ADDITIONAL SECTION: ns2.cnolnic.com.6523IN A 59.151.23.112 ;; Query time: 108 msec ;; SERVER: 211.99.204.77#53(211.99.204.77) ;; WHEN: Fri Jun 25 19:00:35 2010 ;; MSG SIZE rcvd: 104 [r...@flyinweb ~]# dig @211.99.204.77 www.01cool.com ; DiG 9.7.0-P2 @211.99.204.77 www.01cool.com ; (1 server found) ;; global options: +cmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: SERVFAIL, id: 25575 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;www.01cool.com.IN A ;; Query time: 108 msec ;; SERVER: 211.99.204.77#53(211.99.204.77) ;; WHEN: Fri Jun 25 18:57:27 2010 ;; MSG SIZE rcvd: 32 ~ -- ShanyiWan 2010-06-25 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
BIND 9.7.1 with dlz(mysql)
Cent OS 5.4(32bit) +mysql 5.1.48 # /usr/local/bind/sbin/named -c /usr/local/bind/etc/named.conf -u named -g -d 1 30-Jun-2010 10:16:39.071 starting BIND 9.7.1 -c /usr/local/bind/etc/named.conf -u named -g -d 1 30-Jun-2010 10:16:39.071 built with '--prefix=/usr/local/bind' '--with-dlz-mysql=/usr/local/mysql' '--enable-threads=no' '--enable-largefile' 30-Jun-2010 10:16:39.071 using up to 4096 sockets 30-Jun-2010 10:16:39.077 loading configuration from '/usr/local/bind/etc/named.conf' 30-Jun-2010 10:16:39.078 reading built-in trusted keys from file '/usr/local/bind/etc/bind.keys' 30-Jun-2010 10:16:39.079 using default UDP/IPv4 port range: [1024, 65535] 30-Jun-2010 10:16:39.080 using default UDP/IPv6 port range: [1024, 65535] 30-Jun-2010 10:16:39.081 listening on IPv4 interface lo, 127.0.0.1#53 30-Jun-2010 10:16:39.082 listening on IPv4 interface eth0, 192.168.146.155#53 30-Jun-2010 10:16:39.082 generating session key for dynamic DNS 30-Jun-2010 10:16:39.082 Loading 'Mysql zone' using driver mysql 30-Jun-2010 10:16:39.082 Required token $zone$ not found. 30-Jun-2010 10:16:39.082 Could not build find zone query list 30-Jun-2010 10:16:39.082 mysql driver could not create database instance object. Segmentation fault named.conf : options { directory /usr/local/bind/; allow-query { any; }; allow-query-cache { any; }; recursion no; pid-file var/run/named.pid; }; logging { channel query_log { file query.log versions 3 size 20m; severity info; print-time yes; print-category yes; }; category queries { query_log; }; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; }; }; dlz Mysql zone { database mysql {host=localhost dbname=mydns_data ssl=false ssl=false port=3306 user=root pass=password} {select zone from dns_records where zone = '%zone%'} {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\', data, '\') when lower(type) = 'soa' then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end from dns_records where zone = '%zone%' and host = '%record%'}; }; include etc/rndc.key; -- ShanyiWan 2010-06-30 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
bind dlz(mysql)
SOA Record query : 01-Jul-2010 12:00:09.121 dns_rdata_fromtext: buffer-0xbff9b414:1: near '20100701000': out of range 01-Jul-2010 12:00:09.121 dns_sdlz_putrr returned error. Error code was: out of range What is the scope of the serial field values? and data fields(table:dns_records) cannot be empty,which is the value of primary name server= in a SOA query? -- ShanyiWan 2010-07-01 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Can I start multiple processes(named) in a server?
: address in use Jul 1 15:32:02 flyinweb named[9791]: listening on IPv4 interface eth0, 192.168.146.155#53 Jul 1 15:32:02 flyinweb named[9791]: binding TCP socket: address in use Jul 1 15:32:02 flyinweb named[9791]: generating session key for dynamic DNS Jul 1 15:32:02 flyinweb named[9791]: Loading 'Mysql zone' using driver mysql Jul 1 15:32:03 flyinweb named[9791]: /usr/local/bind/etc/named.conf.2:91: couldn't add command channel 127.0.0.1#953: address in use Jul 1 15:32:03 flyinweb named[9791]: running Jul 1 15:32:03 flyinweb named[9794]: starting BIND 9.7.0-P2 -c /usr/local/bind/etc/named.conf.3 -u named Jul 1 15:32:03 flyinweb named[9794]: built with '--prefix=/usr/local/bind' '--with-dlz-mysql=/usr/local/mysql' '--enable-threads=no' '--enable-largefile' Jul 1 15:32:03 flyinweb named[9794]: using up to 4096 sockets Jul 1 15:32:03 flyinweb named[9794]: loading configuration from '/usr/local/bind/etc/named.conf.3' Jul 1 15:32:03 flyinweb named[9794]: reading built-in trusted keys from file '/usr/local/bind/etc/bind.keys' Jul 1 15:32:03 flyinweb named[9794]: using default UDP/IPv4 port range: [1024, 65535] Jul 1 15:32:03 flyinweb named[9794]: using default UDP/IPv6 port range: [1024, 65535] Jul 1 15:32:03 flyinweb named[9794]: listening on IPv4 interface lo, 127.0.0.1#53 Jul 1 15:32:03 flyinweb named[9794]: binding TCP socket: address in use Jul 1 15:32:03 flyinweb named[9794]: listening on IPv4 interface eth0, 192.168.146.155#53 Jul 1 15:32:03 flyinweb named[9794]: binding TCP socket: address in use Jul 1 15:32:03 flyinweb named[9794]: generating session key for dynamic DNS Jul 1 15:32:03 flyinweb named[9794]: Loading 'Mysql zone' using driver mysql Jul 1 15:32:03 flyinweb named[9794]: /usr/local/bind/etc/named.conf.3:91: couldn't add command channel 127.0.0.1#953: address in use Jul 1 15:32:03 flyinweb named[9794]: running Jul 1 15:32:03 flyinweb named[9797]: starting BIND 9.7.0-P2 -c /usr/local/bind/etc/named.conf.4 -u named Jul 1 15:32:03 flyinweb named[9797]: built with '--prefix=/usr/local/bind' '--with-dlz-mysql=/usr/local/mysql' '--enable-threads=no' '--enable-largefile' Jul 1 15:32:03 flyinweb named[9797]: using up to 4096 sockets Jul 1 15:32:03 flyinweb named[9797]: loading configuration from '/usr/local/bind/etc/named.conf.4' Jul 1 15:32:03 flyinweb named[9797]: reading built-in trusted keys from file '/usr/local/bind/etc/bind.keys' Jul 1 15:32:03 flyinweb named[9797]: using default UDP/IPv4 port range: [1024, 65535] Jul 1 15:32:03 flyinweb named[9797]: using default UDP/IPv6 port range: [1024, 65535] Jul 1 15:32:03 flyinweb named[9797]: listening on IPv4 interface lo, 127.0.0.1#53 Jul 1 15:32:03 flyinweb named[9797]: binding TCP socket: address in use Jul 1 15:32:03 flyinweb named[9797]: listening on IPv4 interface eth0, 192.168.146.155#53 Jul 1 15:32:03 flyinweb named[9797]: binding TCP socket: address in use Jul 1 15:32:03 flyinweb named[9797]: generating session key for dynamic DNS Jul 1 15:32:03 flyinweb named[9797]: Loading 'Mysql zone' using driver mysql Jul 1 15:32:03 flyinweb named[9797]: /usr/local/bind/etc/named.conf.4:91: couldn't add command channel 127.0.0.1#953: address in use -- ShanyiWan 2010-07-01 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Bind dlz(mysql) with SRV Record
How to store SRV records in the database(mysql)? PRI、weight、port、target can be stored in data field? mysql select zone,host,type,data from dns_records where zone='zzz.cn' and type='srv'; +++--+-+ | zone | host | type | data| +++--+-+ | zzz.cn | _ldap._tcp | SRV | 5 30 5060 ldap2.zzz.cn. | | zzz.cn | _ldap._tcp | SRV | 10 30 5060 ldap.zzz.cn. | +++--+-+ 2 rows in set (0.00 sec) C:\Users\Administratornslookup 默认服务器: google-public-dns-a.google.com Address: 8.8.8.8 server 192.168.146.155 默认服务器: [192.168.146.155] Address: 192.168.146.155 set type=srv _ldap._tcp.zzz.cn 服务器: [192.168.146.155] Address: 192.168.146.155 _ldap._tcp.zzz.cn SRV service location: priority = 5 weight = 30 port = 5060 svr hostname = ldap2.zzz.cn zzz.cn nameserver = ns2.mynameserver.com zzz.cn nameserver = ns1.mynameserver.com _ldap._tcp.zzz.cn 服务器: [192.168.146.155] Address: 192.168.146.155 _ldap._tcp.zzz.cn SRV service location: priority = 10 weight = 30 port = 5060 svr hostname = ldap.zzz.cn _ldap._tcp.zzz.cn SRV service location: priority = 5 weight = 30 port = 5060 svr hostname = ldap2.zzz.cn zzz.cn nameserver = ns1.mynameserver.com zzz.cn nameserver = ns2.mynameserver.com C:\Users\Administratordig @192.168.146.155 _ldap._tcp.zzz.cn srv ; DiG 9.3.2 @192.168.146.155 _ldap._tcp.zzz.cn srv ; (1 server found) ;; global options: printcmd ;; Got answer: ;; -HEADER- opcode: QUERY, status: NOERROR, id: 1656 ;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 0 ;; QUESTION SECTION: ;_ldap._tcp.zzz.cn. IN SRV ;; ANSWER SECTION: _ldap._tcp.zzz.cn. 0 IN SRV 10 30 5060 ldap.zzz.cn. _ldap._tcp.zzz.cn. 0 IN SRV 5 30 5060 ldap2.zzz.cn. ;; AUTHORITY SECTION: zzz.cn. 0 IN NS ns1.mynameserver.com. zzz.cn. 0 IN NS ns2.mynameserver.com. ;; Query time: 49 msec ;; SERVER: 192.168.146.155#53(192.168.146.155) ;; WHEN: Tue Jul 27 14:38:34 2010 ;; MSG SIZE rcvd: 145 Do this correct? -- ShanyiWan 2010-07-27 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
bind-dlz don't work
-2010 15:42:42.045 listening on IPv4 interface eth0, 192.168.146.148#53 29-Sep-2010 15:42:42.055 generating session key for dynamic DNS 29-Sep-2010 15:42:42.056 Loading 'bdbhpt zone' using driver bdbhpt 29-Sep-2010 15:42:42.057 bdbhpt driver using private mode. 29-Sep-2010 15:42:42.084 set up managed keys zone for view _default, file 'managed-keys.bind' 29-Sep-2010 15:42:42.108 command channel listening on 127.0.0.1#953 29-Sep-2010 15:42:42.109 ignoring config file logging statement due to -g option 29-Sep-2010 15:42:42.110 load_configuration: success 29-Sep-2010 15:42:42.111 managed-keys-zone ./IN: starting load 29-Sep-2010 15:42:42.111 managed-keys-zone ./IN: loading from master file managed-keys.bind failed: file not found 29-Sep-2010 15:42:42.112 managed-keys-zone ./IN: creating SOA 29-Sep-2010 15:42:42.112 managed-keys-zone ./IN: journal rollforward completed successfully: no journal 29-Sep-2010 15:42:42.113 managed-keys-zone ./IN: loaded 29-Sep-2010 15:42:42.113 managed-keys-zone ./IN: synchronizing trusted keys 29-Sep-2010 15:42:42.114 zone_settimer: managed-keys-zone ./IN: enter 29-Sep-2010 15:42:42.114 managed-keys-zone ./IN: loaded serial 0 29-Sep-2010 15:42:42.115 zone authors.bind/CH: starting load 29-Sep-2010 15:42:42.115 zone authors.bind/CH: loaded 29-Sep-2010 15:42:42.116 zone_settimer: zone authors.bind/CH: enter 29-Sep-2010 15:42:42.117 zone hostname.bind/CH: starting load 29-Sep-2010 15:42:42.117 zone hostname.bind/CH: loaded 29-Sep-2010 15:42:42.118 zone_settimer: zone hostname.bind/CH: enter 29-Sep-2010 15:42:42.118 zone version.bind/CH: starting load 29-Sep-2010 15:42:42.118 zone version.bind/CH: loaded 29-Sep-2010 15:42:42.119 zone_settimer: zone version.bind/CH: enter 29-Sep-2010 15:42:42.119 zone id.server/CH: starting load 29-Sep-2010 15:42:42.120 zone id.server/CH: loaded 29-Sep-2010 15:42:42.121 zone_settimer: zone id.server/CH: enter 29-Sep-2010 15:42:42.121 dns_zone_maintenance: managed-keys-zone ./IN: enter 29-Sep-2010 15:42:42.121 zone_settimer: managed-keys-zone ./IN: enter 29-Sep-2010 15:42:42.122 dns_zone_maintenance: zone version.bind/CH: enter 29-Sep-2010 15:42:42.122 zone_settimer: zone version.bind/CH: enter 29-Sep-2010 15:42:42.123 dns_zone_maintenance: zone hostname.bind/CH: enter 29-Sep-2010 15:42:42.123 zone_settimer: zone hostname.bind/CH: enter 29-Sep-2010 15:42:42.123 dns_zone_maintenance: zone authors.bind/CH: enter 29-Sep-2010 15:42:42.124 zone_settimer: zone authors.bind/CH: enter 29-Sep-2010 15:42:42.124 dns_zone_maintenance: zone id.server/CH: enter 29-Sep-2010 15:42:42.124 zone_settimer: zone id.server/CH: enter 29-Sep-2010 15:42:42.125 running 29-Sep-2010 15:42:42.126 zone_timer: zone version.bind/CH: enter 29-Sep-2010 15:42:42.126 zone_maintenance: zone version.bind/CH: enter 29-Sep-2010 15:42:42.127 zone_settimer: zone version.bind/CH: enter 29-Sep-2010 15:42:42.127 zone_timer: zone authors.bind/CH: enter 29-Sep-2010 15:42:42.128 zone_maintenance: zone authors.bind/CH: enter 29-Sep-2010 15:42:42.128 zone_settimer: zone authors.bind/CH: enter 29-Sep-2010 15:42:42.129 zone_timer: zone hostname.bind/CH: enter 29-Sep-2010 15:42:42.129 zone_maintenance: zone hostname.bind/CH: enter 29-Sep-2010 15:42:42.130 zone_settimer: zone hostname.bind/CH: enter 29-Sep-2010 15:42:42.131 zone_timer: zone id.server/CH: enter 29-Sep-2010 15:42:42.131 zone_maintenance: zone id.server/CH: enter 29-Sep-2010 15:42:42.132 zone_settimer: zone id.server/CH: enter 29-Sep-2010 15:49:11.409 client 192.168.146.155#49251: query: test.com IN A + (192.168.146.148) -- ShanyiWan 2010-09-29 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
rndc: 'reload' failed: not found
Cent OS+BIND 9.7.3+DLZ(BDB as backend) # rndc reload 2mysite.net rndc: 'reload' failed: not found rndc reload not work correctly,why? -- ShanyiWan 2011-03-08 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
A large number of ANY query type queries
On the DNS server, a large number of ANY type queries occur,why? The same IP address, produced a large number of requests within a very short period of time. Can I block these IPs? ShanyiWan___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
How to check data file's content in DNS secondary server?
Zone data file's file type has changed in DNS secondary server, how to check the date file's content? After upgrade to Bind V9.9.1-P2: [root@localhost ~]# file /var/named/zzy4.com.dom /var/named/zzy4.com.dom: data Before upgrade to Bind V9.9.1-P2: [root@localhost ~]# file /var/named/zzz4.com.dom /var/named/zzz4.com.dom: ASCII text BTW: Bind's version in primary and secondary servers is different -- ShanyiWan ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
How to avoid a second-level domain name random query
: client 110.52.62.60#42432 (nsli.x.com): query: nsli.x.com IN A + (21.5.79.20) 15-Jun-2013 14:34:45.411 queries: client 125.93.48.11#1620 (pvvrx.x.com): query: pvvrx.x.com IN A + (21.5.79.20) -- ShanyiWan ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
BIND 9.9.4 compile error
[root@localhost bind-9.9.4]# uname -a Linux localhost.localdomain 2.6.18-274.el5PAE #1 SMP Fri Jul 22 05:34:36 EDT 2011 i686 i686 i386 GNU/Linux [root@localhost bind-9.9.4]# lsb_release -a LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description:CentOS release 5.9 (Final) Release:5.9 Codename: Final # ./configure --enable-threads --enable-rrl --with-dlz-bdb=/usr/local/BerkeleyDB.5.1/ cofigure is ok. # make ... ranlib liblwres.a touch timestamp make[2]: Leaving directory `/usr/local/src/bind-9.9.4/lib/lwres' making all in /usr/local/src/bind-9.9.4/lib/tests make[2]: Entering directory `/usr/local/src/bind-9.9.4/lib/tests' making all in /usr/local/src/bind-9.9.4/lib/tests/include make[3]: Entering directory `/usr/local/src/bind-9.9.4/lib/tests/include' making all in /usr/local/src/bind-9.9.4/lib/tests/include/tests make[4]: Entering directory `/usr/local/src/bind-9.9.4/lib/tests/include/tests' make[4]: Leaving directory `/usr/local/src/bind-9.9.4/lib/tests/include/tests' make[3]: Leaving directory `/usr/local/src/bind-9.9.4/lib/tests/include' gcc -I/usr/local/src/bind-9.9.4 -I/usr/local/src/bind-9.9.4/lib/dns/include -I../../lib/dns/include -I/usr/local/src/bind-9.9.4/lib/isc/include -I../../lib/isc -I../../lib/isc/include -I../../lib/isc/unix/include -I../../lib/isc/pthreads/include -I../../lib/isc/x86_32/include -I../../lib/tests/include -D_REENTRANT -D_GNU_SOURCE -g -O2 -I/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c t_api.c /usr/bin/ar cruv libt_api.a t_api.o a - t_api.o ranlib libt_api.a touch timestamp make[2]: Leaving directory `/usr/local/src/bind-9.9.4/lib/tests' make[1]: Leaving directory `/usr/local/src/bind-9.9.4/lib' making all in /usr/local/src/bind-9.9.4/bin make[1]: Entering directory `/usr/local/src/bind-9.9.4/bin' making all in /usr/local/src/bind-9.9.4/bin/named make[2]: Entering directory `/usr/local/src/bind-9.9.4/bin/named' making all in /usr/local/src/bind-9.9.4/bin/named/unix make[3]: Entering directory `/usr/local/src/bind-9.9.4/bin/named/unix' gcc -I/usr/local/src/bind-9.9.4 -I./include -I./../include -I/usr/local/src/bind-9.9.4/lib/isccfg/include -I../../../lib/isccfg/include -I/usr/local/src/bind-9.9.4/lib/isccc/include -I../../../lib/isccc/include -I/usr/local/src/bind-9.9.4/lib/dns/include -I../../../lib/dns/include -I/usr/local/src/bind-9.9.4/lib/isc/include -I../../../lib/isc -I../../../lib/isc/include -I../../../lib/isc/unix/include -I../../../lib/isc/pthreads/include -I../../../lib/isc/x86_32/include -D_REENTRANT -D_GNU_SOURCE -g -O2 -I/usr/include/libxml2 -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -c os.c os.c:166: error: expected ‘)’ before ‘caps’ os.c: In function ‘linux_initialprivs’: os.c:242: error: ‘cap_t’ undeclared (first use in this function) os.c:242: error: (Each undeclared identifier is reported only once os.c:242: error: for each function it appears in.) os.c:242: error: expected ‘;’ before ‘caps’ os.c:244: error: expected ‘;’ before ‘curcaps’ os.c:245: error: ‘cap_value_t’ undeclared (first use in this function) os.c:245: error: expected ‘;’ before ‘capval’ os.c:255: error: ‘caps’ undeclared (first use in this function) os.c:255: warning: implicit declaration of function ‘cap_init’ os.c:255: error: ‘curcaps’ undeclared (first use in this function) os.c:255: warning: implicit declaration of function ‘cap_get_proc’ os.c:260: error: ‘capval’ undeclared (first use in this function) os.c:260: error: ‘cap_flag_value_t’ undeclared (first use in this function) os.c:260: error: expected ‘;’ before ‘curval’ os.c:260: warning: implicit declaration of function ‘cap_get_flag’ os.c:260: error: ‘CAP_PERMITTED’ undeclared (first use in this function) os.c:260: error: ‘curval’ undeclared (first use in this function) os.c:260: warning: implicit declaration of function ‘cap_set_flag’ os.c:260: error: ‘CAP_EFFECTIVE’ undeclared (first use in this function) os.c:260: error: ‘CAP_SET’ undeclared (first use in this function) os.c:265: error: expected ‘;’ before ‘curval’ os.c:274: error: expected ‘;’ before ‘curval’ os.c:280: error: expected ‘;’ before ‘curval’ os.c:286: error: expected ‘;’ before ‘curval’ os.c:295: error: expected ‘;’ before ‘curval’ os.c:301: error: expected ‘;’ before ‘curval’ os.c:303: warning: implicit declaration of function ‘linux_setcaps’ os.c:306: warning: implicit declaration of function ‘cap_free’ os.c: In function ‘linux_minprivs’: os.c:312: error: ‘cap_t’ undeclared (first use in this function) os.c:312: error: expected ‘;’ before ‘caps’ os.c:314: error: expected ‘;’ before ‘curcaps’ os.c:315: error: ‘cap_value_t’ undeclared (first use in this function) os.c:315: error: expected ‘;’ before ‘capval’ os.c:320: error: ‘caps’ undeclared (first use in this function)
BIND 9.10 dlz(BDB): slow query times
# lsb_release -a LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch Distributor ID: CentOS Description: CentOS release 5.8 (Final) Release: 5.8 Codename: Final # named -V BIND 9.10.1 id:fe66c6b1 built by make with '--enable-threads' '--with-dlz-bdb=/usr/local/BerkeleyDB.5.1/' compiled by GCC 4.1.2 20080704 (Red Hat 4.1.2-52) using OpenSSL version: OpenSSL 0.9.8e-rhel5 01 Jul 2008 using libxml2 version: 2.6.26 10+ domains, 50 records, Most of the query time in 1-3 seconds, is this normal? ShanyiWan ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: Re: BIND 9.10 dlz(BDB): slow query times
Tested and found that the Buffer is full(udp Recv-Q full)! A large number of requests generate a lot of logs, resulting in heavy disk IO. So modify logging: channel bind_log { file /var/log/named/bind.log versions 3 size 50m; severity warning; #severity info; print-time yes; print-severity yes; print-category yes; }; category default{ bind_log; }; And now,works fine! ShanyiWan From: Evan Hunt Date: 2014-11-07 01:22 To: ShanyiWan CC: bind-users Subject: Re: BIND 9.10 dlz(BDB): slow query times On Fri, Nov 07, 2014 at 12:27:55AM +0800, ShanyiWan wrote: 10+ domains, 50 records, Most of the query time in 1-3 seconds, is this normal? DLZ is slow, but it's not that slow. I would guess the delay you're seeing is due to the time it takes to retrieve data from the berkeley DB. How long does it take to query the database directly? Turning on minimal-responses reduces the number of database lookups required for each query, which might help if the database is slow. There may also be a bdb mailing list that can recommend database optimizations. -- Evan Hunt -- e...@isc.org Internet Systems Consortium, Inc. ___ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users