<div dir="ltr">Remi,<div><br></div><div><br></div><div>Oops, after examining my test dig script it appears the problem is due to me.</div><div><br></div><div>I suspect it was due to some cutting and pasting of text while putting together the script and getting the \013 control character in my dig command.</div><div><br></div><div>Here's the cat -v of my script:</div><div><br></div><div><div>echo "test dnsdist"^M</div><div>echo "dig @<a href="http://127.0.0.1">127.0.0.1</a> -p 5200 +nocookie <a href="http://yahoo.com">yahoo.com</a>"^M</div><div>echo ""^M</div><div>dig @<a href="http://127.0.0.1">127.0.0.1</a> -p 5200 +nocookie <a href="http://yahoo.com">yahoo.com</a>^M</div><div><br></div><div><br></div><div>Removing the \013 (^M) on the end of lines and it all works right.</div><div><br></div><div>Sorry for the confusion!</div><div><br></div><div><br></div><div><br></div><div>dnsdist 0.0.dnsdistmod.g6ff783c<br></div><div><br></div><div>Ubuntu 14.04.5 LTS</div><div><br></div><div>I built dnsdist from source dnsdist-1.1.0 using the configure option --enable-libsodium</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Seth</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 6, 2017 at 8:00 AM,  <span dir="ltr"><<a href="mailto:dnsdist-request@mailman.powerdns.com" target="_blank">dnsdist-request@mailman.powerdns.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send dnsdist mailing list submissions to<br>
        <a href="mailto:dnsdist@mailman.powerdns.com">dnsdist@mailman.powerdns.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist" rel="noreferrer" target="_blank">https://mailman.powerdns.com/<wbr>mailman/listinfo/dnsdist</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:dnsdist-request@mailman.powerdns.com">dnsdist-request@mailman.<wbr>powerdns.com</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:dnsdist-owner@mailman.powerdns.com">dnsdist-owner@mailman.<wbr>powerdns.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of dnsdist digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. why do I have to add an \0x13 to the DNS name when using the<br>
      expungeByName cache command? (Seth Orstein)<br>
   2. Re: why do I have to add an \0x13 to the DNS name when using<br>
      the expungeByName cache command? (Remi Gacogne)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Wed, 5 Apr 2017 19:49:38 -0400<br>
From: Seth Orstein <<a href="mailto:sornstein@globalcyberalliance.org">sornstein@<wbr>globalcyberalliance.org</a>><br>
To: <a href="mailto:dnsdist@mailman.powerdns.com">dnsdist@mailman.powerdns.com</a><br>
Subject: [dnsdist] why do I have to add an \0x13 to the DNS name when<br>
        using the expungeByName cache command?<br>
Message-ID:<br>
        <<a href="mailto:CAASVh0YT58c6dBBj%2BVwVefyp8a9%2B9gEbfFQyfjyxGBLtvUe1Rw@mail.gmail.com">CAASVh0YT58c6dBBj+VwVefyp8a9+<wbr>9gEbfFQyfjyxGBLtvUe1Rw@mail.<wbr>gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I find that to use the expungeByName cache command in dnsdist I have to end<br>
the name with \013,  why is this?<br>
<br>
An example that works would be:<br>
<br>
getPool("mainpool"):getCache()<wbr>:expungeByName(newDNSName("<a href="http://google.com" rel="noreferrer" target="_blank">goo<wbr>gle.com</a>\013"))<br>
<br>
If I leave out the ending \013 in the DNS name, like so:<br>
<br>
getPool("mainpool"):getCache()<wbr>:expungeByName(newDNSName("<a href="http://google.com" rel="noreferrer" target="_blank">goo<wbr>gle.com</a>"))<br>
<br>
 the entry is not deleted from the cache.<br>
<br>
The entry in the dnsdist cache was loaded by running the following dig<br>
command:<br>
<br>
dig @<a href="http://127.0.0.1" rel="noreferrer" target="_blank">127.0.0.1</a> -p 5200 +nocookie <a href="http://google.com" rel="noreferrer" target="_blank">google.com</a><br>
<br>
<br>
Thanks,<br>
<br>
Seth<br>
<br>
<br>
--<br>
• • • •<br>
Seth Ornstein<br>
Senior Application Developer<br>
Global Cyber Alliance<br>
<a href="mailto:sornstein@globalcyberalliance.org">sornstein@globalcyberalliance.<wbr>org</a><br>
[image: GCA Website] <<a href="http://www.globalcyberalliance.org/" rel="noreferrer" target="_blank">http://www.<wbr>globalcyberalliance.org/</a>><br>
[image: GCA Twitter] <<a href="https://twitter.com/GlobalCyberAlln" rel="noreferrer" target="_blank">https://twitter.com/<wbr>GlobalCyberAlln</a>> [image: GCA<br>
Facebook] <<a href="https://www.facebook.com/GlobalCyberAlliance/" rel="noreferrer" target="_blank">https://www.facebook.com/<wbr>GlobalCyberAlliance/</a>> [image: GCA<br>
Linkedin] <<a href="https://www.linkedin.com/company/global-cyber-alliance" rel="noreferrer" target="_blank">https://www.linkedin.com/<wbr>company/global-cyber-alliance</a>> [image:<br>
GCA Google] <<a href="https://plus.google.com/117324596701712856826" rel="noreferrer" target="_blank">https://plus.google.com/<wbr>117324596701712856826</a>><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.powerdns.com/pipermail/dnsdist/attachments/20170405/fe10aa28/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.powerdns.com/<wbr>pipermail/dnsdist/attachments/<wbr>20170405/fe10aa28/attachment-<wbr>0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 6 Apr 2017 09:58:23 +0200<br>
From: Remi Gacogne <<a href="mailto:remi.gacogne@powerdns.com">remi.gacogne@powerdns.com</a>><br>
To: <a href="mailto:dnsdist@mailman.powerdns.com">dnsdist@mailman.powerdns.com</a><br>
Subject: Re: [dnsdist] why do I have to add an \0x13 to the DNS name<br>
        when using the expungeByName cache command?<br>
Message-ID: <<a href="mailto:1b1553db-fd54-e6be-7f13-3742a963685e@powerdns.com">1b1553db-fd54-e6be-7f13-<wbr>3742a963685e@powerdns.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Seth,<br>
<br>
On 04/06/2017 01:49 AM, Seth Orstein wrote:<br>
> I find that to use the expungeByName cache command in dnsdist I have to<br>
> end the name with \013,  why is this?<br>
><br>
> An example that works would be:<br>
><br>
> getPool("mainpool"):getCache()<wbr>:expungeByName(newDNSName("<a href="http://google.com" rel="noreferrer" target="_blank">goo<wbr>gle.com</a><br>
> \013"))<br>
><br>
> If I leave out the ending \013 in the DNS name, like so:<br>
><br>
> getPool("mainpool"):getCache()<wbr>:expungeByName(newDNSName("<a href="http://google.com" rel="noreferrer" target="_blank">goo<wbr>gle.com</a><br>
> "))<br>
><br>
>  the entry is not deleted from the cache.<br>
<br>
Well, it should. I just tried with dnsdist git master on Arch and it<br>
works as expected without the "\013" (and doesn't work _with_ the<br>
"\013"). Would you mind sharing the exact version you are running and on<br>
which OS?<br>
<br>
--<br>
Remi<br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 488 bytes<br>
Desc: OpenPGP digital signature<br>
URL: <<a href="http://mailman.powerdns.com/pipermail/dnsdist/attachments/20170406/12d02e2a/attachment-0001.sig" rel="noreferrer" target="_blank">http://mailman.powerdns.com/<wbr>pipermail/dnsdist/attachments/<wbr>20170406/12d02e2a/attachment-<wbr>0001.sig</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
dnsdist mailing list<br>
<a href="mailto:dnsdist@mailman.powerdns.com">dnsdist@mailman.powerdns.com</a><br>
<a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist" rel="noreferrer" target="_blank">https://mailman.powerdns.com/<wbr>mailman/listinfo/dnsdist</a><br>
<br>
<br>
------------------------------<br>
<br>
End of dnsdist Digest, Vol 21, Issue 4<br>
******************************<wbr>********<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><table border="0" cellpadding="0" cellspacing="0" style="font-family:"Times New Roman""><tbody><tr valign="top"><td nowrap style="padding-left:0px"></td></tr></tbody></table><table border="0" cellpadding="0" cellspacing="0" style="font-family:"Times New Roman""><tbody><tr valign="top"><td nowrap style="padding-left:0px"><table border="0" cellpadding="0" cellspacing="0" style="font-family:"Times New Roman""><tbody><tr valign="top"><td nowrap style="padding-left:0px"><span style="color:rgb(86,134,218);font-family:Arial,sans-serif;font-size:8pt;line-height:11pt;font-weight:bold">• • • • </span><br><span style="color:rgb(6,31,92);font-family:Arial,sans-serif;font-size:10pt;line-height:13pt;font-weight:bold">Seth Ornstein</span><br><span style="margin-top:0px;margin-bottom:0px;color:rgb(6,31,92);font-family:Arial,sans-serif;line-height:13pt;font-size:10pt;font-style:italic">Senior Application Developer</span><br><span style="color:rgb(6,31,92);font-family:Arial;line-height:13pt;font-size:10pt">Global Cyber Alliance</span></td></tr><tr valign="top"><td nowrap style="padding-left:0px;padding-top:8px"><span style="color:rgb(6,31,92);font-family:Arial;line-height:13pt;font-size:10pt"><a href="mailto:sornstein@globalcyberalliance.org" style="color:rgb(6,31,92);text-decoration:none" target="_blank">sornstein@globalcyberalliance.org</a></span></td></tr><tr valign="top"><td nowrap style="padding-top:8px"><a href="http://www.globalcyberalliance.org/" style="color:rgb(0,61,106)" target="_blank"><img alt="GCA Website" border="0" height="64" src="http://punchteam.com/signatures/gca/GCA-logo@2x.png" title="GCA" width="158"></a></td></tr></tbody></table><table style="font-family:"Times New Roman""><tbody><tr valign="top"><td><a href="https://twitter.com/GlobalCyberAlln" style="color:rgb(0,61,106)" target="_blank"><img alt="GCA Twitter" border="0" height="30" src="http://punchteam.com/signatures/gca/twitter@2x.png" title="Twitter" width="29"></a></td><td><a href="https://www.facebook.com/GlobalCyberAlliance/" style="color:rgb(0,61,106)" target="_blank"><img alt="GCA Facebook" border="0" height="30" src="http://punchteam.com/signatures/gca/facebook@2x.png" title="Facebook" width="29"></a></td><td><a href="https://www.linkedin.com/company/global-cyber-alliance" style="color:rgb(0,61,106)" target="_blank"><img alt="GCA Linkedin" border="0" height="30" src="http://punchteam.com/signatures/gca/linkedin@2x.png" title="Linkedin" width="29"></a></td><td><a href="https://plus.google.com/117324596701712856826" style="color:rgb(0,61,106)" target="_blank"><img alt="GCA Google" border="0" height="30" src="http://punchteam.com/signatures/gca/google@2x.png" title="Google" width="29"></a></td></tr></tbody></table></td></tr></tbody></table><table style="font-family:"Times New Roman""><tbody><tr valign="top"><td><br></td><td><br></td><td><br></td><td></td></tr></tbody></table></div><div><span style="white-space:nowrap;color:rgb(6,31,92);font-family:Arial;line-height:13pt;font-size:10pt"><br></span></div></div></div></div></div></div></div></div></div></div>
</div>