orlo/dns-hostname-expansion 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

orlo/dns-hostname-expansion

最新稳定版本:1.0

Composer 安装命令:

composer require orlo/dns-hostname-expansion

包简介

may perform dns lookup + expansion of hosts

README 文档

README

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

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
  • ...
<?php 
require_once(__DIR__ . '/vendor/autoload.php');

$hosts = \Orlo\DnsHostnameExpansion\DNSLookup::expandFromDnsALookup("my.host.name", "https://", "9200);

// e.g. ["https://1.2.3.4:9200","https://1.2.3.5:9200"]

统计信息

  • 总下载量: 2.36k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-12-04