Re: [Pdns-users] turn off all type of caching in pdns-recursor
On Wed, Jun 19, 2013 at 08:11:03AM +0200, bert hubert wrote: On Tue, Jun 18, 2013 at 10:22:16PM -0600, Alex Flex wrote: My question is: How can I disable all types of caching in the pdns recursor so that all my requests are always forwarded to upstream? PowerDNS uses its cache as a knowledge base during recursion, so if you take away its memory, it has no idea what it is doing. But, if you set max-cache-ttl=1, packetcache-ttl=0, packetcache-servfail-ttl=0, you should get a long way. Bert Another method that has been used has been to setup a record like *.monitoring.example.com IN A 127.0.0.1 and then ask stuff like dig `date +%s`.monitoring.example.com Aki signature.asc Description: Digital signature ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] turn off all type of caching in pdns-recursor
On Wed, Jun 19, 2013 at 09:18:42AM +0300, Aki Tuomi wrote: Another method that has been used has been to setup a record like *.monitoring.example.com IN A 127.0.0.1 and then ask stuff like dig `date +%s`.monitoring.example.com Neat idea. Does this do a significantly better job than setting up monitoring.example.com with a short TTL? Greetings Marc -- - Marc Haber | I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things.Winona Ryder | Fon: *49 621 31958061 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062 ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] turn off all type of caching in pdns-recursor
On Wed, Jun 19, 2013 at 10:14:56AM +0200, Marc Haber wrote: On Wed, Jun 19, 2013 at 09:18:42AM +0300, Aki Tuomi wrote: Another method that has been used has been to setup a record like *.monitoring.example.com IN A 127.0.0.1 and then ask stuff like dig `date +%s`.monitoring.example.com Neat idea. Does this do a significantly better job than setting up monitoring.example.com with a short TTL? Greetings Marc The point is to ensure that cache is always bypassed, despite recursor settings. This way you don't have to setup separate monitorning recursor as you can always ask for a fresh name, and you know it'll get asked and not cached. Short TTL can be overriden by DNS server. Aki Tuomi signature.asc Description: Digital signature ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
[Pdns-users] PDNS Recursor now on OSX
Hi Everybody, This message below by Justin may be worth your while! Date: Wed, 19 Jun 2013 11:21:25 +1030 From: jus...@postgresql.org To: pdns-...@mailman.powerdns.com Subject: [Pdns-dev] PDNS Recursor now on OSX Hi all, PowerDNS Recursor 3.5.2 is now officially available through MacOS X Homebrew: $ brew install pdnsrec There's also optional Lua 5.1 support too: $ brew install pdnsrec --with-lua It's known to work on OSX 10.7 and above. Hopefully that's useful to people. :) Regards and best wishes, Justin Clift ___ Pdns-dev mailing list pdns-...@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-dev - End forwarded message - ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] turn off all type of caching in pdns-recursor
Aki Tuomi wrote: On Wed, Jun 19, 2013 at 10:14:56AM +0200, Marc Haber wrote: On Wed, Jun 19, 2013 at 09:18:42AM +0300, Aki Tuomi wrote: Another method that has been used has been to setup a record like *.monitoring.example.com IN A 127.0.0.1 and then ask stuff like dig `date +%s`.monitoring.example.com Neat idea. Does this do a significantly better job than setting up monitoring.example.com with a short TTL? Greetings Marc The point is to ensure that cache is always bypassed, despite recursor settings. This way you don't have to setup separate monitorning recursor as you can always ask for a fresh name, and you know it'll get asked and not cached. Short TTL can be overriden by DNS server. Aki Tuomi CMIIW, but I understand Alex doesn't want to monitor _his_ authoritative nameservers' performance/availability, but that of the resolver his upstream provides him with, and/or get a general heatmap of the state of DNS on teh intartubes. Whilst for monitoring _your_ zones' availability, this approach is a good idea, it is not feasible for domains you do not control^^ regards, Sebastian ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] turn off all type of caching in pdns-recursor
Posner, Sebastian wrote: CMIIW, but I understand Alex doesn't want to monitor _his_ authoritative nameservers' performance/availability, but that of the resolver his upstream provides him with, and/or get a general heatmap of the state of DNS on teh intartubes. Whilst for monitoring _your_ zones' availability, this approach is a good idea, it is not feasible for domains you do not control^^ Well, this entirely depends on your recursor configuration and the domains you control. Ciao, Michael. smime.p7s Description: S/MIME Cryptographic Signature ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] turn off all type of caching in pdns-recursor
Michael Ströder wrote: Posner, Sebastian wrote: CMIIW, but I understand Alex doesn't want to monitor _his_ authoritative nameservers' performance/availability, but that of the resolver his upstream provides him with, and/or get a general heatmap of the state of DNS on teh intartubes. Whilst for monitoring _your_ zones' availability, this approach is a good idea, it is not feasible for domains you do not control^^ Well, this entirely depends on your recursor configuration and the domains you control. Sorry, I've misread your comment. Pleas ignore mine. Ciao, Michael. smime.p7s Description: S/MIME Cryptographic Signature ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
[Pdns-users] varios questions on how a DNS resolver would react.
Greetings PDNS, Iam planning on a DNS environment composed of several servers with PDNS. But have some specific scenarios I would like somebody to advise on how client resolvers out there would most likely react. a.) Suppose I have a domain name example.org it is hosted under the nameservers: ns1.dns.com and ns2.dns.com. Suddenly ns1.dns.com starts lagging severly (not down) / or is completely down. How well do resolvers coop with this? Do they query both at the same time , or randomly choose and wait ? If so how much would they wait usually? b.) Same scenario as above but this time ns2.dns.com is misconfigured or the zone for example.org is erased giving a non existing domain or another possible error along that line. Would resolvers try to query the second nameserver and try? Thanks for the help. Alex ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] PDNS Recursor now on OSX
It's a good news. After install it , I encounter a problem on my Mac 10.8. pdns_recursor quit without any error message. $ sudo pdns_recursor --daemon=no --trace --config-dir=/usr/local/etc/powerdns/ Jun 20 12:28:50 PowerDNS recursor 3.5.2 (C) 2001-2013 PowerDNS.COM BV (Jun 19 2013, 23:42:34, gcc 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)) starting up Jun 20 12:28:50 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2. Jun 20 12:28:50 Operating in 64 bits mode Jun 20 12:28:50 Reading random entropy from '/dev/urandom' Jun 20 12:28:50 Only allowing queries from: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10 Jun 20 12:28:50 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10, 0.0.0.0, :: Jun 20 12:28:50 NOT using IPv6 for outgoing queries - set 'query-local-address6=::' to enable Jun 20 12:28:50 Inserting rfc 1918 private space zones Jun 20 12:28:50 Listening for UDP queries on 127.0.0.1:53 Jun 20 12:28:50 Not decreasing socket buffer size from 131072 to 65000 Jun 20 12:28:50 Listening for TCP queries on 127.0.0.1:53 Jun 20 12:28:50 Launching 2 threads Jun 20 12:28:50 Done priming cache with root hints Jun 20 12:28:50 Done priming cache with root hints Jun 20 12:28:50 Enabled 'select' multiplexer Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate NS record Jun 20 12:28:50 .: Checking if we have NS in cache for '.' Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate NS record Jun 20 12:28:50 .: Checking if we have NS in cache for '.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' a.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' a.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' b.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' b.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' c.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' c.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' d.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' d.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' e.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' e.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' f.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' f.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' g.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' g.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' h.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' h.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' i.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' i.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' j.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' j.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' k.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' k.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20
Re: [Pdns-users] pdns recursor 3.5.1 crash on Mac OSX mountain lion 10.8.3
hi, everybody, Which compiler do you use for compiling pnds-recursor on mac os? LLVM or GCC or GCC-LLVM ? *with best regards,* Jacky Wu *jacky.wuch...@gmail.com* jacky.wuch...@gmail.com *blog: **http://www.sanote.org* weibo: @object 2013/5/28 Aki Tuomi cmo...@youzen.ext.b2.fi Can you recompile the software with following changes: edit Makefile and make sure your OPTFLAGS are '-O0 -g' before starting, run 'ulimit -c unlimited' Then start it normally, and hope it crashes. It should produce a core file. You can see where it crashed by typing 'gdb /path/to/binary /path/to/core' Aki Tuomi On Tue, May 28, 2013 at 01:37:36PM +0800, jacky wu wrote: $ ./configure make install $ sudo /usr/sbin/pdns_recursor --daemon=no May 28 13:35:52 PowerDNS recursor 3.5.1 (C) 2001-2013 PowerDNS.COM BV (May 26 2013, 22:54:09, gcc 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.27)) starting up May 28 13:35:52 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2. May 28 13:35:52 Operating in 64 bits mode May 28 13:35:52 Reading random entropy from '/dev/urandom' May 28 13:35:52 Only allowing queries from: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10 May 28 13:35:52 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10, 0.0.0.0, :: May 28 13:35:52 NOT using IPv6 for outgoing queries - set 'query-local-address6=::' to enable May 28 13:35:52 Inserting rfc 1918 private space zones May 28 13:35:52 Listening for UDP queries on 127.0.0.1:53 May 28 13:35:52 Not decreasing socket buffer size from 131072 to 65000 May 28 13:35:52 Listening for TCP queries on 127.0.0.1:53 May 28 13:35:52 Launching 2 threads May 28 13:35:52 Done priming cache with root hints May 28 13:35:52 Done priming cache with root hints May 28 13:35:52 Enabled 'select' multiplexer May 28 13:35:52 Refreshed . records pdns_recursor(5159,0x10c85a000) malloc: *** error for object 0x7feca8c16de0: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug help ! *with best regards,* Jacky Wu *jacky.wuch...@gmail.com* jacky.wuch...@gmail.com *blog: **http://www.sanote.org* weibo: @object ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users ___ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users
Re: [Pdns-users] PDNS Recursor now on OSX
I recompile pdnsrec with gcc instead of llvm-gcc, pdnsrec works fine. *with best regards,* Jacky Wu *jacky.wuch...@gmail.com* jacky.wuch...@gmail.com *blog: **http://www.sanote.org* weibo: @object 2013/6/20 jacky wu jacky.wuch...@gmail.com It's a good news. After install it , I encounter a problem on my Mac 10.8. pdns_recursor quit without any error message. $ sudo pdns_recursor --daemon=no --trace --config-dir=/usr/local/etc/powerdns/ Jun 20 12:28:50 PowerDNS recursor 3.5.2 (C) 2001-2013 PowerDNS.COM BV (Jun 19 2013, 23:42:34, gcc 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)) starting up Jun 20 12:28:50 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2. Jun 20 12:28:50 Operating in 64 bits mode Jun 20 12:28:50 Reading random entropy from '/dev/urandom' Jun 20 12:28:50 Only allowing queries from: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10 Jun 20 12:28:50 Will not send queries to: 127.0.0.0/8, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.168.0.0/16, 172.16.0.0/12, ::1/128, fe80::/10, 0.0.0.0, :: Jun 20 12:28:50 NOT using IPv6 for outgoing queries - set 'query-local-address6=::' to enable Jun 20 12:28:50 Inserting rfc 1918 private space zones Jun 20 12:28:50 Listening for UDP queries on 127.0.0.1:53 Jun 20 12:28:50 Not decreasing socket buffer size from 131072 to 65000 Jun 20 12:28:50 Listening for TCP queries on 127.0.0.1:53 Jun 20 12:28:50 Launching 2 threads Jun 20 12:28:50 Done priming cache with root hints Jun 20 12:28:50 Done priming cache with root hints Jun 20 12:28:50 Enabled 'select' multiplexer Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate NS record Jun 20 12:28:50 .: Checking if we have NS in cache for '.' Jun 20 12:28:50 .: No cache hit for '.|NS', trying to find an appropriate NS record Jun 20 12:28:50 .: Checking if we have NS in cache for '.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' a.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' a.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' b.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' b.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' c.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' c.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' d.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' d.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' e.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' e.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' f.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' f.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' g.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' g.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' h.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' h.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' i.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' i.root-servers.net.' Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: within bailiwick: 1, in cache, ttl=360 Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for '.' - ' j.root-servers.net.' Jun 20 12:28:50 .: NS (with ip, or non-glue) in cache for