]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: management: httpclient can resolve server names in URLs
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Sep 2022 13:00:15 +0000 (15:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 29 Sep 2022 13:00:15 +0000 (15:00 +0200)
The httpclient does support DNS resolution since 2.6.

Must be backported to 2.6.

doc/management.txt

index 3b3b26af4df9517dc8738a9a29c35614db44cac9..5482a9bef8e923e4c8c50cbc5af384924968dad6 100644 (file)
@@ -2145,8 +2145,11 @@ help [<command>]
 httpclient <method> <URI>
   Launch an HTTP client request and print the response on the CLI. Only
   supported on a CLI connection running in expert mode (see "expert-mode on").
-  It's only meant for debugging. It currently can't resolve FQDN so your URI must
-  contains an IP.
+  It's only meant for debugging. The httpclient is able to resolve a server
+  name in the URL using the "default" resolvers section, which is populated
+  with the DNS servers of your /etc/resolv.conf by default. However it won't be
+  able to resolve an host from /etc/hosts if you don't use a local dns daemon
+  which can resolve those.
 
 new ssl ca-file <cafile>
   Create a new empty CA file tree entry to be filled with a set of CA