[dnsdist] downstream flapping down/up

scott McGillivray floriangray at mail.com
Fri May 12 08:16:38 UTC 2017


I think this was my fault but still little confusing. 

I forgot to add controlSocket("127.0.0.1") to the config but i was still able to run a second instance of dnsdist which failed to bind to address:ports but allowed me to query the existing dnsdist process.. showServers(), dumpStats() etc..

BUT i would received these frequent errors:

> Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'


When i fixed the config and used dnsdist --client the error didn't appear again. 
 

Sent: Friday, May 12, 2017 at 2:53 PM
From: abang <abang at t-ipnet.net>
To: "scott McGillivray" <floriangray at mail.com>, dnsdist at mailman.powerdns.com
Subject: Re: [dnsdist] downstream flapping down/up

The recursor service isn't down and if i run the below type command, i recieve no failures. 
 
$ while true; do dig @10.225.12.19 google.com +short; doneSince dig does 3 tries this way, you will likely not notice short outages.

Try

dig +tries=1 +time=1


Winfried



Am 12.05.2017 um 06:32 schrieb scott McGillivray:

Hi
 
I have dnsdist in front of pdns with this config:
 
# start_dnsdist.conf
 
local public_ipaddr = "x.x.x.x"
local rec_ipaddr = "10.200.1.19"
local hostname = "dns01"
 
setLocal(public_ipaddr .. ":53", true, true)
 
setACL({"0.0.0.0/0", "::/0"})
 
setECSOverride(true)
setECSSourcePrefixV4(32)
setECSSourcePrefixV6(128)
 
newServer{address=rec_ipaddr, source="eth0", name=hostname.."-recursor", order=1, checkName="google.com.", pool="recursive", useClientSubnet=true}
 
setServerPolicy(firstAvailable)
 
# end_dnsdist.conf
 
For some reason my dnsdist log is flooded with these entries.
 
May 11 15:30:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:30:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:32:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:32:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:33:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:33:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:35:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:35:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:36:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:36:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:38:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:38:34 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:40:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:40:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:43:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:43:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:44:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:44:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:45:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:45:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:46:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:46:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:47:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:47:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:48:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:48:34 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:53:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
May 11 15:53:33 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'up'
May 11 15:59:32 hdc-onl-dns01 dnsdist[24365]: Marking downstream hdc-onl-dns01-recursor (10.225.12.19:53) as 'down'
 
 
The recursor service isn't down and if i run the below type command, i recieve no failures. 
 
$ while true; do dig @10.225.12.19 google.com +short; done
 
I'm using these packages
 
pdns-4.0.3-1pdns.el7.x86_64
pdns-backend-geoip-4.0.3-1pdns.el7.x86_64
dnsdist-0.0.1551g8c5dc03-1pdns.el7.x86_64
pdns-recursor-4.0.4-1pdns.el7.x86_64
pdns-backend-mysql-4.0.3-1pdns.el7.x86_64
 
 
Can you help please ?
 
      
_______________________________________________
dnsdist mailing listdnsdist at mailman.powerdns.com[mailto:dnsdist at mailman.powerdns.com]https://mailman.powerdns.com/mailman/listinfo/dnsdist
 


More information about the dnsdist mailing list