Grzegorz Piotr Jaskiewicz | 1 Aug 2005 12:20
Picon

Re: Re: memory managment in dlz-bind and bind 9.3

On completly different subject. What is ISC doing with bind, do they have
some community development process, or is it in house development, and when
they are bored enough, they release version ? Are they open for
suggestions, patches, etc ?

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Eric Bus | 1 Aug 2005 12:22
Picon

[LDAP] "LDAP no entries to process."

Hi,

I am currently implementing the LDAP driver into our main DNS system.
Everything works flawlessly, but I'm seeing the following message in the
log files over and over again:

"LDAP no entries to process."

It happens everything I request a non-existing record. I suspect
something is wrong, because this type of queries happen a lot :) Maybe
the function shouldn't be called at all when there are no results?

It also happens when I request a non-existing record for a domain that
has a wildcard-record. All in all, it kind of adds up in the logfiles ;)

Any ideas?

Kind regards,
Eric

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Graeme Fowler | 1 Aug 2005 12:29

Re: Re: Re: memory managment in dlz-bind and bind 9.3

On Mon 01 Aug 2005 11:20:31 BST , Grzegorz Piotr Jaskiewicz 
<gj <at> pointblue.com.pl> wrote:
> On completly different subject. What is ISC doing with bind, do they have
> some community development process, or is it in house development, and when
> they are bored enough, they release version ? Are they open for
> suggestions, patches, etc ?

<URL:mailto:bind-suggest <at> isc.org>
<URL:http://www.isc.org/ops/lists/>

Those might help you out a bit.

Graeme

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Eric Bus | 1 Aug 2005 14:22
Picon

Re: [LDAP] "LDAP no entries to process."

Eric Bus wrote:
> Any ideas?

To reply to my own post... :)

I suspect line 400 in dlz_ldap_driver.c should read:

	DNS_LOGMODULE_DLZ, ISC_LOG_DEBUG(1),

Instead of:

	DNS_LOGMODULE_DLZ, ISC_LOG_INFO,

I don't think "LDAP no entries to process." should be a normal INFO
message, because it happens to often. DEBUG(1) (or some other level)
would be a better place for it.

Just my 2 cents ;)

Eric

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Rob Butler | 1 Aug 2005 14:37
Picon
Favicon

Re: Re: [LDAP] "LDAP no entries to process."

Eric,

Feel free to change that in your local source.  I will
try and remember to make that change for the next
release of DLZ.

Rob

--- Eric Bus <mail <at> ilovelinda.nl> wrote:

> Eric Bus wrote:
> > Any ideas?
> 
> To reply to my own post... :)
> 
> I suspect line 400 in dlz_ldap_driver.c should read:
> 
> 	DNS_LOGMODULE_DLZ, ISC_LOG_DEBUG(1),
> 
> Instead of:
> 
> 	DNS_LOGMODULE_DLZ, ISC_LOG_INFO,
> 
> I don't think "LDAP no entries to process." should
> be a normal INFO
> message, because it happens to often. DEBUG(1) (or
> some other level)
> would be a better place for it.
> 
> Just my 2 cents ;)
(Continue reading)

Eric Bus | 1 Aug 2005 14:52
Picon

Re: [LDAP] "LDAP no entries to process."

Rob Butler wrote:
> Feel free to change that in your local source.  I will
> try and remember to make that change for the next
> release of DLZ.

Great, thanks.

It works much cleaner now ;)

Eric

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Jordan | 1 Aug 2005 15:07
Picon

Data Structure Problem...I think

GDay all,
      As far as I can tell I have everything installed and configured correctly, I think the problem is with the way I've entered the data into the database, I couldn't find any info about this and just kinda guessed.

I downloaded the performance testing data and had a look at that for help, I changed swapped around the data and host column names, but it made no difference, I don't know where I'm going wrong.

The problem I am having is that whenever I do a dig eg: ns2.mydomain.com.au or www.mydomain.com.au I get:
; <<>> DiG 9.2.2 <<>> ns2.mydomain.com.au
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 19358
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ns2.mydomain.com.au.          IN      A

;; Query time: 6 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Aug  1 21:42:21 2005
;; MSG SIZE  rcvd: 38

And named reports:
Aug 01 21:42:21.318 dns_rdata_fromtext: buffer-0xfee67d60:1: near '0': extra input text
Aug 01 21:42:21.319 dns_sdlz_putrr returned error. Error code was: extra input text

named.conf
options {
   directory "/var/named";
   };

key rndc_key {
   algorithm hmac-md5;
   secret "not giving that one away";
   };

controls {
       inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
};

zone "." {
   type hint;
   file "root.hints";
   };

zone  "0.0.127.in-addr.arpa" {
   type master;
   notify no;
   file  "pz/127.0.0";
};

zone  "1.168.192.in-addr.arpa" {
   type master;
   notify no;
   file "pz/192.168.1";
};

zone  "2.168.192.in-addr.arpa" {
   type master;
   notify no;
   file "pz/192.168.2";
};

zone "34.6.58.in-addr.arpa" {
   type master;
   file "pz/58.6.33";
};

dlz "Mysql zone" {
  database "mysql
     {host=localhost dbname=named}
       {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')}";
   };



sample of data in database
zone    data    type      host    ttl    mx_priority    refresh    retry    expire    minimum    serial    resp_person    primary_ns

mydomain.com.au     <at>      SOA     ns1     3600           28800     7200     604800     86400     1 admin     ns2.mydomain.com.au
mydomain.com.au     1.2.3.4     NS     ns1     3600           0     0     0     0     0           
mydomain.com.au     127.0.0.1     NS     ns2     3600           0     0     0     0     0           
mydomain.com.au     ns2     CNAME     www     3600           0     0     0     0     0           
mydomain.com.au     ns2     CNAME     ftp     3600           0     0     0     0     0           
mydomain.com.au     ns2     CNAME     webstats     3600           0     0     0     0     0           
mydomain.com.au     ns2     CNAME     webmail     3600           0     0     0     0     0           
mydomain.com.au     ns2     CNAME     mail     3600           0     0     0     0     0           
mydomain.com.au     <at>      MX     mail     3600     20     0     0     0     0     0           

Server details:
Fedora Core 2 with all updates
Bind 9.2.2
MySQL 3.23.58

Any help greatly appreciated,
thanks,
Jordan.

Rob Butler | 1 Aug 2005 16:55
Picon
Favicon

Re: Data Structure Problem...I think

Jordan,

The problem is definetly your data.  For SOA records
you need refresh, retry, expire, minimum, serial,
resp_person and primary_ns.  For all other record
types these fields should be NULL not 0.  Similarly,
for MX records, you need the mx_priority, but for all
other record types mx_priority should be NULL.

Fix those items in your database and everything should
work fine.

Rob

--- Jordan <stuff <at> fusionnet.com.au> wrote:

> GDay all,
>       As far as I can tell I have everything
> installed and configured 
> correctly, I think the problem is with the way I've
> entered the data 
> into the database, I couldn't find any info about
> this and just kinda 
> guessed.
> 
> I downloaded the performance testing data and had a
> look at that for 
> help, I changed swapped around the data and host
> column names, but it 
> made no difference, I don't know where I'm going
> wrong.
> 
> The problem I am having is that whenever I do a dig
> eg: 
> ns2.mydomain.com.au or www.mydomain.com.au I get:
> ; <<>> DiG 9.2.2 <<>> ns2.mydomain.com.au
> ;; global options:  printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id:
> 19358
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY:
> 0, ADDITIONAL: 0
> 
> ;; QUESTION SECTION:
> ;ns2.mydomain.com.au.          IN      A
> 
> ;; Query time: 6 msec
> ;; SERVER: 127.0.0.1#53(127.0.0.1)
> ;; WHEN: Mon Aug  1 21:42:21 2005
> ;; MSG SIZE  rcvd: 38
> 
> And named reports:
> Aug 01 21:42:21.318 dns_rdata_fromtext:
> buffer-0xfee67d60:1: near '0': 
> extra input text
> Aug 01 21:42:21.319 dns_sdlz_putrr returned error.
> Error code was: extra 
> input text
> 
> named.conf
> options {
>    directory "/var/named";
>    };
> 
> key rndc_key {
>    algorithm hmac-md5;
>    secret "not giving that one away";
>    };
> 
> controls {
>        inet 127.0.0.1 allow { localhost; } keys {
> rndc_key; };
> };
> 
> zone "." {
>    type hint;
>    file "root.hints";
>    };
> 
> zone  "0.0.127.in-addr.arpa" {
>    type master;
>    notify no;
>    file  "pz/127.0.0";
> };
> 
> zone  "1.168.192.in-addr.arpa" {
>    type master;
>    notify no;
>    file "pz/192.168.1";
> };
> 
> zone  "2.168.192.in-addr.arpa" {
>    type master;
>    notify no;
>    file "pz/192.168.2";
> };
> 
> zone "34.6.58.in-addr.arpa" {
>    type master;
>    file "pz/58.6.33";
> };
> 
> dlz "Mysql zone" {
>   database "mysql
>      {host=localhost dbname=named}
>        {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')}";
>    };
> 
> 
> 
> sample of data in database
> zone    data    type      host    ttl    mx_priority
>    refresh    
> retry    expire    minimum    serial    resp_person 
>   primary_ns
> 
> mydomain.com.au      <at>      SOA     ns1     3600      
>     28800     
> 7200     604800     86400     1 admin    
> ns2.mydomain.com.au
> mydomain.com.au     1.2.3.4     NS     ns1     3600 
>          0     
> 0     0     0     0           
> mydomain.com.au     127.0.0.1     NS     ns2    
> 3600           0     
> 0     0     0     0           
> mydomain.com.au     ns2     CNAME     www     3600  
>         0     0     
> 0     0     0           
> mydomain.com.au     ns2     CNAME     ftp     3600  
>         0     0     
> 0     0     0           
> mydomain.com.au     ns2     CNAME     webstats    
> 3600           0     
> 0     0     0     0           
> mydomain.com.au     ns2     CNAME     webmail    
> 3600           0     
> 0     0     0     0           
> mydomain.com.au     ns2     CNAME     mail     3600 
>          0     
> 0     0     0     0           
> mydomain.com.au      <at>      MX     mail     3600    
> 20     0     0     
> 0     0     0           
> 
> Server details:
> Fedora Core 2 with all updates
> Bind 9.2.2
> MySQL 3.23.58
> 
> Any help greatly appreciated,
> thanks,
> Jordan.
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
th | 3 Aug 2005 11:14
Picon
Favicon

unknown option 'dlz'

Hi all !
I try start named and have this problem
-----
# named-checkconf
/etc/namedb/named.conf:30: unknown option 'dlz'
#
-----
my named.conf
===
# cat named.conf
key "rndc-key" {
      algorithm hmac-md5;
      secret "SW8ldl5IOMfhvlqxyRuRVw==";
};
controls {
      inet 127.0.0.1 port 953
              allow { 192.168.0.0/24; 127.0.0.1; } keys { "rndc-key"; };
};

acl "mynets" { 192.168.0.0/24; 127.0.0.1; };
options {
        directory       "/etc/namedb";
        pid-file        "/var/run/named/pid";
        dump-file       "/var/dump/named_dump.db";
        statistics-file "/var/stats/named.stats";

        listen-on       { 127.0.0.1; };
        allow-query { "mynets"; };
};

zone "." {
     type hint;
     file "named.root"; };

zone "0.0.127.in-addr.arpa" {
     type master;
     file "localhost.rev";
     notify no; };

dlz "Mysql zone" {
   database "mysql
   {host=localhost dbname=DNS ssl=false}
   {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%'}
   {}
   {select ttl, type, host, mx_priority, case when lower(type)='txt' then
        concat('\"', data, '\"') else data end, resp_person, serial, refresh, 
retry, expire,
        minimum from dns_records where zone = '%zone%'}
   {select zone from xfr_table where zone = '%zone%' and client = 
'%client%'}";
};
-----
I use bind9-dlz port
OS FreeBSD 5.4
-----
# ls /var/db/pkg
...
bind9-dlz+mysql-9.3.1+0.7.0

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
François Conil | 3 Aug 2005 11:13
Picon
Favicon

Re: unknown option 'dlz'

th wrote:
> Hi all !
> I try start named and have this problem
> -----
> # named-checkconf
> /etc/namedb/named.conf:30: unknown option 'dlz'
> #

Check that you're using the good bind.

FreeBSD came with its own bind preinstalled by default, iirc.

F.

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

Gmane