I have consul, on ip 192.168.0.15
, and I have installed haproxy via docker on same node with http port 8081(not that it matters). but I also have 1 of CoreDNS server running on same ip but port number is 5335 .
other 2 dns server are on same network but different nodes.
So what I am confused about is the haproxy config:
global
maxconn 4096
defaults
mode http
timeout connect 5s
timeout client 50s
timeout server 50s
listen http-in
bind *:53
server dns1 192.168.0.15:5335
server dns2 192.168.0.22:5335
server dns3 192.168.0.23:5335
so if I serve my this haproxy node as loadbalancer for 3 above listed server How will I detect if I give loadbalancer ip to workstation in PRIMARY DNS that it is using the DNS server via haproxy or directly the 192.168.0.15:5335
0 Answers