Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. [ALERT] 134/160502 (25218) : parsing [/etc/haproxy/haproxy.cfg:57] : 'server example' : could not resolve address 'example.service.com'.
  2. [ALERT] 134/160502 (25218) : Failed to initialize server(s) addr.
  3.  
  4. resolvers dnsmasq
  5. nameserver ip 10.80.10.25:5353
  6.  
  7. resolvers coredns
  8. nameserver ip 10.80.10.25:53
  9.  
  10. frontend example-service
  11. bind :80
  12. mode http
  13. default_backend example
  14.  
  15. backend example
  16. mode http
  17. balance roundrobin
  18. option forwardfor
  19. http-request set-header X-Forwarded-Port %[dst_port]
  20. http-request add-header X-Forwarded-Proto https if { ssl_fc }
  21. option httpchk HEAD / HTTP/1.1rnHost:localhost
  22. server example example.service.com resolvers coredns check inter 1000
  23.  
  24. dig @10.80.10.25 -p 53 example.service.com +noall +answer
  25.  
  26. ; <<>> DiG 9.11.3-1ubuntu1.7-Ubuntu <<>> @10.80.10.25 -p 53 example.service.com +noall +answer
  27. ; (1 server found)
  28. ;; global options: +cmd
  29. example.service.com. 3600 IN A 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement