[dnsdist] dnsdist Digest, Vol 21, Issue 4
Seth Ornstein
sornstein at globalcyberalliance.org
Thu Apr 6 13:44:25 UTC 2017
Remi,
Oops, after examining my test dig script it appears the problem is due to
me.
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.
Here's the cat -v of my script:
echo "test dnsdist"^M
echo "dig @127.0.0.1 -p 5200 +nocookie yahoo.com"^M
echo ""^M
dig @127.0.0.1 -p 5200 +nocookie yahoo.com^M
Removing the \013 (^M) on the end of lines and it all works right.
Sorry for the confusion!
dnsdist 0.0.dnsdistmod.g6ff783c
Ubuntu 14.04.5 LTS
I built dnsdist from source dnsdist-1.1.0 using the configure option
--enable-libsodium
Seth
On Thu, Apr 6, 2017 at 8:00 AM, <dnsdist-request at mailman.powerdns.com>
wrote:
> Send dnsdist mailing list submissions to
> dnsdist at mailman.powerdns.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.powerdns.com/mailman/listinfo/dnsdist
> or, via email, send a message with subject or body 'help' to
> dnsdist-request at mailman.powerdns.com
>
> You can reach the person managing the list at
> dnsdist-owner at mailman.powerdns.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dnsdist digest..."
>
>
> Today's Topics:
>
> 1. why do I have to add an \0x13 to the DNS name when using the
> expungeByName cache command? (Seth Orstein)
> 2. Re: why do I have to add an \0x13 to the DNS name when using
> the expungeByName cache command? (Remi Gacogne)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 5 Apr 2017 19:49:38 -0400
> From: Seth Orstein <sornstein at globalcyberalliance.org>
> To: dnsdist at mailman.powerdns.com
> Subject: [dnsdist] why do I have to add an \0x13 to the DNS name when
> using the expungeByName cache command?
> Message-ID:
> <CAASVh0YT58c6dBBj+VwVefyp8a9+9gEbfFQyfjyxGBLtvUe1Rw at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I find that to use the expungeByName cache command in dnsdist I have to end
> the name with \013, why is this?
>
> An example that works would be:
>
> getPool("mainpool"):getCache():expungeByName(newDNSName("google.com\013"))
>
> If I leave out the ending \013 in the DNS name, like so:
>
> getPool("mainpool"):getCache():expungeByName(newDNSName("google.com"))
>
> the entry is not deleted from the cache.
>
> The entry in the dnsdist cache was loaded by running the following dig
> command:
>
> dig @127.0.0.1 -p 5200 +nocookie google.com
>
>
> Thanks,
>
> Seth
>
>
> --
> • • • •
> Seth Ornstein
> Senior Application Developer
> Global Cyber Alliance
> sornstein at globalcyberalliance.org
> [image: GCA Website] <http://www.globalcyberalliance.org/>
> [image: GCA Twitter] <https://twitter.com/GlobalCyberAlln> [image: GCA
> Facebook] <https://www.facebook.com/GlobalCyberAlliance/> [image: GCA
> Linkedin] <https://www.linkedin.com/company/global-cyber-alliance> [image:
> GCA Google] <https://plus.google.com/117324596701712856826>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/
> 20170405/fe10aa28/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 6 Apr 2017 09:58:23 +0200
> From: Remi Gacogne <remi.gacogne at powerdns.com>
> To: dnsdist at mailman.powerdns.com
> Subject: Re: [dnsdist] why do I have to add an \0x13 to the DNS name
> when using the expungeByName cache command?
> Message-ID: <1b1553db-fd54-e6be-7f13-3742a963685e at powerdns.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Seth,
>
> On 04/06/2017 01:49 AM, Seth Orstein wrote:
> > I find that to use the expungeByName cache command in dnsdist I have to
> > end the name with \013, why is this?
> >
> > An example that works would be:
> >
> > getPool("mainpool"):getCache():expungeByName(newDNSName("google.com
> > \013"))
> >
> > If I leave out the ending \013 in the DNS name, like so:
> >
> > getPool("mainpool"):getCache():expungeByName(newDNSName("google.com
> > "))
> >
> > the entry is not deleted from the cache.
>
> Well, it should. I just tried with dnsdist git master on Arch and it
> works as expected without the "\013" (and doesn't work _with_ the
> "\013"). Would you mind sharing the exact version you are running and on
> which OS?
>
> --
> Remi
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 488 bytes
> Desc: OpenPGP digital signature
> URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/
> 20170406/12d02e2a/attachment-0001.sig>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> dnsdist mailing list
> dnsdist at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/dnsdist
>
>
> ------------------------------
>
> End of dnsdist Digest, Vol 21, Issue 4
> **************************************
>
--
• • • •
Seth Ornstein
Senior Application Developer
Global Cyber Alliance
sornstein at globalcyberalliance.org
[image: GCA Website] <http://www.globalcyberalliance.org/>
[image: GCA Twitter] <https://twitter.com/GlobalCyberAlln> [image: GCA
Facebook] <https://www.facebook.com/GlobalCyberAlliance/> [image: GCA
Linkedin] <https://www.linkedin.com/company/global-cyber-alliance> [image:
GCA Google] <https://plus.google.com/117324596701712856826>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20170406/a340820f/attachment.html>
More information about the dnsdist
mailing list