Can I start multiple processes(named) in a server?

ShanyiWan wsy at 114.com.cn
Thu Jul 1 08:21:03 UTC 2010


bind-dlz(mysql)
Single process(named):
Jul  1 16:06:42 flyinweb named[10474]: starting BIND 9.7.0-P2 -u named -c /usr/local/bind/etc/named.conf
Jul  1 16:06:42 flyinweb named[10474]: built with '--prefix=/usr/local/bind' '--with-dlz-mysql=/usr/local/mysql' '--enable-threads=no' '--enable-largefile'
Jul  1 16:06:42 flyinweb named[10474]: using up to 4096 sockets
Jul  1 16:06:42 flyinweb named[10474]: loading configuration from '/usr/local/bind/etc/named.conf'
Jul  1 16:06:42 flyinweb named[10474]: reading built-in trusted keys from file '/usr/local/bind/etc/bind.keys'
Jul  1 16:06:42 flyinweb named[10474]: using default UDP/IPv4 port range: [1024, 65535]
Jul  1 16:06:42 flyinweb named[10474]: using default UDP/IPv6 port range: [1024, 65535]
Jul  1 16:06:42 flyinweb named[10474]: listening on IPv4 interface lo, 127.0.0.1#53
Jul  1 16:06:42 flyinweb named[10474]: listening on IPv4 interface eth0, 192.168.146.155#53
Jul  1 16:06:42 flyinweb named[10474]: generating session key for dynamic DNS
Jul  1 16:06:42 flyinweb named[10474]: Loading 'Mysql zone' using driver mysql
Jul  1 16:06:42 flyinweb named[10474]: command channel listening on 127.0.0.1#953

Multiple processes(named):
Can I start multiple processes(named) in a server and each process can provide services normally?			
See information so that on the internet(I think this may be wrong).How can i do to maximize the ability of concurrent queries(named) ?
All the name.conf is the same:
//
// named.conf for nameserver 
//
options {
        directory "/usr/local/bind/";
        allow-query { any; };
        allow-query-cache { any; };
        recursion no;
        pid-file "/usr/local/bind/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;
        };
};

dlz "Mysql zone" {
   database "mysql
   {host=localhost dbname=mydns_data ssl=false port=3306 user=root pass=sok12345}
   {select zone from dns_records where zone = '%zone%'}
   {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"')
        else data end from dns_records where zone = '%zone%' and host = '%record%'
        and not (type = 'SOA' or type = 'NS')}
   {select ttl, type, mx_priority, data, resp_person, serial, refresh, retry, expire, minimum
        from dns_records where zone = '%zone%' and (type = 'SOA' or type='NS')}
   {select ttl, type, host, mx_priority, data, resp_person, serial, refresh, retry, expire,
        minimum from dns_records where zone = '%zone%' and not (type = 'SOA' or type = 'NS')}";
#   {select zone from xfr_table where zone = '%zone%' and client = '%client%'}
#   {update data_count set count = count + 1 where zone ='%zone%'}";
};

include "etc/rndc.key";

/var/log/messages as follow:
Jul  1 15:32:02 flyinweb named[9788]: starting BIND 9.7.0-P2 -c /usr/local/bind/etc/named.conf.1 -u named
Jul  1 15:32:02 flyinweb named[9788]: built with '--prefix=/usr/local/bind' '--with-dlz-mysql=/usr/local/mysql' '--enable-threads=no' '--enable-largefile'
Jul  1 15:32:02 flyinweb named[9788]: using up to 4096 sockets
Jul  1 15:32:02 flyinweb named[9788]: loading configuration from '/usr/local/bind/etc/named.conf.1'
Jul  1 15:32:02 flyinweb named[9788]: reading built-in trusted keys from file '/usr/local/bind/etc/bind.keys'
Jul  1 15:32:02 flyinweb named[9788]: using default UDP/IPv4 port range: [1024, 65535]
Jul  1 15:32:02 flyinweb named[9788]: using default UDP/IPv6 port range: [1024, 65535]
Jul  1 15:32:02 flyinweb named[9788]: listening on IPv4 interface lo, 127.0.0.1#53
Jul  1 15:32:02 flyinweb named[9788]: listening on IPv4 interface eth0, 192.168.146.155#53
Jul  1 15:32:02 flyinweb named[9788]: generating session key for dynamic DNS
Jul  1 15:32:02 flyinweb named[9788]: Loading 'Mysql zone' using driver mysql
Jul  1 15:32:02 flyinweb named[9788]: command channel listening on 127.0.0.1#953
Jul  1 15:32:02 flyinweb named[9788]: running
Jul  1 15:32:02 flyinweb named[9791]: starting BIND 9.7.0-P2 -c /usr/local/bind/etc/named.conf.2 -u named
Jul  1 15:32:02 flyinweb named[9791]: built with '--prefix=/usr/local/bind' '--with-dlz-mysql=/usr/local/mysql' '--enable-threads=no' '--enable-largefile'
Jul  1 15:32:02 flyinweb named[9791]: using up to 4096 sockets
Jul  1 15:32:02 flyinweb named[9791]: loading configuration from '/usr/local/bind/etc/named.conf.2'
Jul  1 15:32:02 flyinweb named[9791]: reading built-in trusted keys from file '/usr/local/bind/etc/bind.keys'
Jul  1 15:32:02 flyinweb named[9791]: using default UDP/IPv4 port range: [1024, 65535]
Jul  1 15:32:02 flyinweb named[9791]: using default UDP/IPv6 port range: [1024, 65535]
Jul  1 15:32:02 flyinweb named[9791]: listening on IPv4 interface lo, 127.0.0.1#53
Jul  1 15:32:02 flyinweb named[9791]: binding TCP socket: 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




More information about the bind-users mailing list