Hello Dears,

 

I run PDNS as traffic management for my servers, I install powerdns
Authoritative with EDNS Support and GeoIP Backend .

 

Then I create a yaml configuration file to manage my traffic based on client
subnets like bellow :

 

##########################

domains:

- domain: geo.web45.ir

  ttl: 30

  records:

    geo.web45.ir:

    unknown.geo.web45.ir:

      - a: A.B.C.D

    tcea.geo.web45.ir:

      - a: W.X.Y.Z

    tcwa.geo.web45.ir:

      - a: I.J.K.L

 

  services:

    geo.web45.ir:

      default: [ 'unknown.geo.web45.ir' ]

##### TCEA NETWORK #####

      176.223.80.0/21: 'tcea.geo.web45.ir'

      176.65.160.0/19: 'tcea.geo.web45.ir'

##### TCWA NETWORK #####

      178.216.252.0/22: 'tcea.geo.web45.ir'

      185.131.128.0/18: 'tcea.geo.web45.ir'

############################################

 

Now I want add health check, for Example, before redirect 185.131.128.0/18
requests to I.J.K.L check the health of I.J.K.L

With ping, http or . and if is OK redirect to I.J.K.L else redirect to
default A.B.C.D .

 

Best Regards,

Hamed Haghshenas

 

_______________________________________________
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to