bind-dlz don't work
ShanyiWan
wsy at 114.com.cn
Wed Sep 29 08:01:18 UTC 2010
Bind-dlz(the latest Berkeley DB as a back-end),Services can start correctly, but DNS is not returned to the correct value.
Related data:
dbsql> .tables
dns_client dns_data dns_xfr dns_zone
dbsql> select * from dns_client;
test.com|192.168.146.155
test.com|127.0.0.1
dbsql> select * from dns_data;
test.com @|1 @ 86400 SOA ns1.test.com. hostmaster.test.com. 2006112401 28800 7200 604800 86400
test.com download|18 download 600 A 192.168.1.15
test.com @|3 @ 600 A 192.168.1.1
dbsql> select * from dns_xfr;
test.com|@
test.com|download
dbsql> select * from dns_zone;
moc.tset|
[root at lbbackup bdb]# dig @192.168.146.148 download.test.com
; <<>> DiG 9.7.1-P2 <<>> @192.168.146.148 download.test.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27487
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;download.test.com. IN A
;; AUTHORITY SECTION:
. 518400 IN NS H.ROOT-SERVERS.NET.
. 518400 IN NS B.ROOT-SERVERS.NET.
. 518400 IN NS E.ROOT-SERVERS.NET.
. 518400 IN NS M.ROOT-SERVERS.NET.
. 518400 IN NS I.ROOT-SERVERS.NET.
. 518400 IN NS L.ROOT-SERVERS.NET.
. 518400 IN NS A.ROOT-SERVERS.NET.
. 518400 IN NS G.ROOT-SERVERS.NET.
. 518400 IN NS K.ROOT-SERVERS.NET.
. 518400 IN NS C.ROOT-SERVERS.NET.
. 518400 IN NS D.ROOT-SERVERS.NET.
. 518400 IN NS F.ROOT-SERVERS.NET.
. 518400 IN NS J.ROOT-SERVERS.NET.
;; Query time: 0 msec
;; SERVER: 192.168.146.148#53(192.168.146.148)
;; WHEN: Wed Sep 29 15:16:23 2010
;; MSG SIZE rcvd: 246
[root at lbbackup bdb]# dig @192.168.146.148 test.com
; <<>> DiG 9.7.1-P2 <<>> @192.168.146.148 test.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40321
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;test.com. IN A
;; AUTHORITY SECTION:
. 518400 IN NS F.ROOT-SERVERS.NET.
. 518400 IN NS I.ROOT-SERVERS.NET.
. 518400 IN NS J.ROOT-SERVERS.NET.
. 518400 IN NS E.ROOT-SERVERS.NET.
. 518400 IN NS M.ROOT-SERVERS.NET.
. 518400 IN NS L.ROOT-SERVERS.NET.
. 518400 IN NS H.ROOT-SERVERS.NET.
. 518400 IN NS D.ROOT-SERVERS.NET.
. 518400 IN NS K.ROOT-SERVERS.NET.
. 518400 IN NS B.ROOT-SERVERS.NET.
. 518400 IN NS C.ROOT-SERVERS.NET.
. 518400 IN NS G.ROOT-SERVERS.NET.
. 518400 IN NS A.ROOT-SERVERS.NET.
;; Query time: 6 msec
;; SERVER: 192.168.146.148#53(192.168.146.148)
;; WHEN: Wed Sep 29 15:54:41 2010
;; MSG SIZE rcvd: 237
[root at lbbackup bdb]# cat /etc/named.conf
options {
directory "/var/named";
allow-query { any; };
allow-query-cache { any; };
recursion no;
pid-file "/var/named/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 allow { localhost; } keys { rndc-key; };
};
zone "." IN {
type hint;
file "named.ca";
};
dlz "bdbhpt zone" {
database "bdbhpt P /var/named dnsdata.db";
};
include "/etc/rndc.key";
[root at DRBD_148 named]# named -u named -c /etc/named.conf -g -d 1
29-Sep-2010 15:42:42.002 starting BIND 9.7.2-P2 -u named -c /etc/named.conf -g -d 1
29-Sep-2010 15:42:42.003 built with '--enable-threads' '--with-dlz-bdb=/usr/local/BerkeleyDB.5.1'
29-Sep-2010 15:42:42.004 adjusted limit on open files from 1024 to 1048576
29-Sep-2010 15:42:42.004 found 1 CPU, using 1 worker thread
29-Sep-2010 15:42:42.006 using up to 4096 sockets
29-Sep-2010 15:42:42.022 loading configuration from '/etc/named.conf'
29-Sep-2010 15:42:42.026 reading built-in trusted keys from file '/etc/bind.keys'
29-Sep-2010 15:42:42.028 using default UDP/IPv4 port range: [1024, 65535]
29-Sep-2010 15:42:42.030 using default UDP/IPv6 port range: [1024, 65535]
29-Sep-2010 15:42:42.038 listening on IPv4 interface lo, 127.0.0.1#53
29-Sep-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
More information about the bind-users
mailing list