Show
Ignore:
Timestamp:
01/06/11 21:27:06 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1294349226 +0000
git-parent:

[c80f4383dc54e913ae5331613ee5aab403047ad7]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1294349226 +0000
Message:

fixes #338

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/dns.c

    rc80f438 rae6a9eb  
    510510      } 
    511511      else { 
    512         noitL(nldeb, "%s.\n", dns_dntosp(dn)); 
    513         noitL(nldeb, " CNAME %s.\n", dns_dntosp(p.dnsp_dnbuf)); 
     512        int32_t on = 1; 
     513        /* This actually updates what we're looking for */ 
     514        dns_dntodn(p.dnsp_dnbuf, ci->dn, sizeof(dn)); 
     515        noit_stats_set_metric(&ci->current, "cname", METRIC_INT32, &on); 
     516 
     517        /* Now follow the leader */ 
     518        noitL(nldeb, "%s. CNAME %s.\n", dns_dntosp(dn), 
     519              dns_dntosp(p.dnsp_dnbuf)); 
    514520        dns_dntodn(p.dnsp_dnbuf, dn, sizeof(dn)); 
    515         noitL(nldeb, " ---> '%s'\n", dn); 
     521        noitL(nldeb, " ---> '%s'\n", dns_dntosp(dn)); 
    516522      } 
    517523    }