[PR #15] [CLOSED] add alternative dns servers. #46

Closed
opened 2026-03-04 23:24:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/yswery/PHP-DNS-SERVER/pull/15
Author: @henzeb
Created: 2/25/2016
Status: Closed

Base: masterHead: master


📝 Commits (3)

  • 372e9d3 added some support for alternative dns servers other than defined in the dns server. requires execute rights for the dig command. also a callable can be used to pick a server (something like unblockus.com does)
  • 1fc6f17 added $_SERVER variables client_ip and client_port, so that they are available in the providers if needed for your script
  • a2b8165 fixed a bug where CNAME was not handled correctly in the RecursiveProvider when using dig.

📊 Changes

2 files changed (+73 additions, -12 deletions)

View changed files

📝 src/RecursiveProvider.php (+71 -12)
📝 src/Server.php (+2 -0)

📄 Description

added some support for alternative dns servers other than defined in the dns server. requires execute rights for the dig command. also a callable can be used to pick a server (similar to what unblockus.com does).

If not supplied, the provider still works the same as it used before.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/yswery/PHP-DNS-SERVER/pull/15 **Author:** [@henzeb](https://github.com/henzeb) **Created:** 2/25/2016 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`372e9d3`](https://github.com/yswery/PHP-DNS-SERVER/commit/372e9d3473b39769e8a23fe0079b6789c2a75d81) added some support for alternative dns servers other than defined in the dns server. requires execute rights for the dig command. also a callable can be used to pick a server (something like unblockus.com does) - [`1fc6f17`](https://github.com/yswery/PHP-DNS-SERVER/commit/1fc6f17f47794597e1bb0b76272b972c01a94ad5) added $_SERVER variables client_ip and client_port, so that they are available in the providers if needed for your script - [`a2b8165`](https://github.com/yswery/PHP-DNS-SERVER/commit/a2b8165c09aed18f0f9fa3abd39ef14a5cd42758) fixed a bug where CNAME was not handled correctly in the RecursiveProvider when using dig. ### 📊 Changes **2 files changed** (+73 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `src/RecursiveProvider.php` (+71 -12) 📝 `src/Server.php` (+2 -0) </details> ### 📄 Description added some support for alternative dns servers other than defined in the dns server. requires execute rights for the dig command. also a callable can be used to pick a server (similar to what unblockus.com does). If not supplied, the provider still works the same as it used before. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 23:24:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PHP-DNS-SERVER#46
No description provided.