Download the PHP package orlo/dns-hostname-expansion without Composer
On this page you can find all versions of the php package orlo/dns-hostname-expansion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download orlo/dns-hostname-expansion
More information about orlo/dns-hostname-expansion
Files in orlo/dns-hostname-expansion
Download orlo/dns-hostname-expansion
More information about orlo/dns-hostname-expansion
Files in orlo/dns-hostname-expansion
Vendor orlo
Package dns-hostname-expansion
Short Description may perform dns lookup + expansion of hosts
License proprietary
Package dns-hostname-expansion
Short Description may perform dns lookup + expansion of hosts
License proprietary
Please rate this library. Is it a good library?
Informations about the package dns-hostname-expansion
TL;DR ?
ElasticSearch (for example) needs a list of hosts to talk to, for instance :
This allows you to have a single DNS record (e.g. in Route53) which responds with multiple A records, which then get formatted into an appropriate list, e.g
- DNS record: elasticsearch.test.org resolves to 1.2.3.4, 1.2.3.5, 1.2.4.6
- Becomes: https://1.2.3.4:9200, https://1.2.3.5:9200, https://1.2.3.6:9200
The prefix + suffix used in decoration are configurable and could be omitted.
In the event DNS lookup fails, we fall back to returning the passed in host - e.g. https://elasticsearch.test.org:9200
Usage
- composer require orlo/dns-hostname-expansion
- ...
All versions of dns-hostname-expansion with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package orlo/dns-hostname-expansion contains the following files
Loading the files please wait ....