From 46541751ed1c3bc051d78217543d5fc76733e212 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 25 Dec 2014 20:47:01 +0100 Subject: [PATCH] replace dots in hostname by underscores for carbon reporting, and document this. --- pdns/auth-carbon.cc | 1 + pdns/docs/markdown/common/logging.md | 13 ++++++++++++- pdns/docs/markdown/recursor/settings.md | 6 +++++- pdns/rec-carbon.cc | 1 + 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/pdns/auth-carbon.cc b/pdns/auth-carbon.cc index a1811fbaa..5b87f04d0 100644 --- a/pdns/auth-carbon.cc +++ b/pdns/auth-carbon.cc @@ -39,6 +39,7 @@ try char *p = strchr(tmp, '.'); if(p) *p=0; hostname=tmp; + boost::replace_all(hostname, ".", "_"); } BOOST_FOREACH(const string& entry, entries) { str<<"pdns."<