[PR #40] [CLOSED] Simulating DNS over HTTP by forwarding requests to dns.google.com #67

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

📋 Pull Request Information

Original PR: https://github.com/yswery/PHP-DNS-SERVER/pull/40
Author: @ivanstan
Created: 4/13/2018
Status: Closed

Base: masterHead: master


📝 Commits (10+)

  • a677c63 Added class GoogleDNSForwarder which acts like a provider without actual
  • ab3cbd5 Created yaml configuration
  • 3ba88c8 added command bin/phpdns
  • 6013d8c implemented console error with verbose logging
  • b85261c Tests under namespace
  • ca359e3 tests moved
  • 739c6cd renamed storage provider to resolver
  • e21e7c3 moved resolvers under Resolver namespace
  • e6303e6 changed array definition
  • 47c5b33 changes in example files

📊 Changes

32 files changed (+965 additions, -403 deletions)

View changed files

📝 .gitignore (+1 -1)
📝 README.md (+21 -1)
bin/phpdns (+15 -0)
📝 bin/phpunit (+0 -0)
📝 composer.json (+5 -2)
config/config.yml (+5 -0)
📝 config/dns.example.json (+0 -0)
example.php (+0 -18)
example/example.php (+23 -0)
example/google_forwarder.php (+12 -0)
📝 phpunit.xml (+1 -1)
src/AbstractStorageProvider.php (+0 -12)
src/Command/ServerCommand.php (+61 -0)
src/Event/ConsoleEventSubscriber.php (+53 -0)
src/Event/EventSubscriberInterface.php (+26 -0)
src/Event/LogEventSubscriber.php (+45 -0)
src/JsonStorageProvider.php (+0 -120)
📝 src/RecordTypeEnum.php (+11 -3)
src/Resolver/GoogleResolver.php (+77 -0)
src/Resolver/JsonResolver.php (+129 -0)

...and 12 more files

📄 Description

Added class GoogleDNSForwarder which acts like a provider without actual storage, requests are forwarded to dns.google.com. Next steps would be
to implement internal cache so we don't query google too often for
already resolved queries.

changed codesyle


🔄 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/40 **Author:** [@ivanstan](https://github.com/ivanstan) **Created:** 4/13/2018 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (10+) - [`a677c63`](https://github.com/yswery/PHP-DNS-SERVER/commit/a677c6340e089cf4c54c65c5b54373c5dcc72944) Added class GoogleDNSForwarder which acts like a provider without actual - [`ab3cbd5`](https://github.com/yswery/PHP-DNS-SERVER/commit/ab3cbd5a7aedf918707f6c5000bc50d7524315e8) Created yaml configuration - [`3ba88c8`](https://github.com/yswery/PHP-DNS-SERVER/commit/3ba88c813eaf82ab95a0c6dc345113f70cfc0cd1) added command bin/phpdns - [`6013d8c`](https://github.com/yswery/PHP-DNS-SERVER/commit/6013d8c7404c8a905c7cb7422b4da5ca4932411a) implemented console error with verbose logging - [`b85261c`](https://github.com/yswery/PHP-DNS-SERVER/commit/b85261c5129112d640303239c64917daea0633ef) Tests under namespace - [`ca359e3`](https://github.com/yswery/PHP-DNS-SERVER/commit/ca359e3e26873a44dd39c8e55807ef359b8cd056) tests moved - [`739c6cd`](https://github.com/yswery/PHP-DNS-SERVER/commit/739c6cddb83e5cb6a586fa7cf9fe23fa069cc3a9) renamed storage provider to resolver - [`e21e7c3`](https://github.com/yswery/PHP-DNS-SERVER/commit/e21e7c32b1bfecadd2ba5ca17bcbefb7be59d9be) moved resolvers under Resolver namespace - [`e6303e6`](https://github.com/yswery/PHP-DNS-SERVER/commit/e6303e65a3a6ca5bc798f67b50fbe7d481fb5b42) changed array definition - [`47c5b33`](https://github.com/yswery/PHP-DNS-SERVER/commit/47c5b33e3d506ea1aba248383054fcabf3ff09a3) changes in example files ### 📊 Changes **32 files changed** (+965 additions, -403 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -1) 📝 `README.md` (+21 -1) ➕ `bin/phpdns` (+15 -0) 📝 `bin/phpunit` (+0 -0) 📝 `composer.json` (+5 -2) ➕ `config/config.yml` (+5 -0) 📝 `config/dns.example.json` (+0 -0) ➖ `example.php` (+0 -18) ➕ `example/example.php` (+23 -0) ➕ `example/google_forwarder.php` (+12 -0) 📝 `phpunit.xml` (+1 -1) ➖ `src/AbstractStorageProvider.php` (+0 -12) ➕ `src/Command/ServerCommand.php` (+61 -0) ➕ `src/Event/ConsoleEventSubscriber.php` (+53 -0) ➕ `src/Event/EventSubscriberInterface.php` (+26 -0) ➕ `src/Event/LogEventSubscriber.php` (+45 -0) ➖ `src/JsonStorageProvider.php` (+0 -120) 📝 `src/RecordTypeEnum.php` (+11 -3) ➕ `src/Resolver/GoogleResolver.php` (+77 -0) ➕ `src/Resolver/JsonResolver.php` (+129 -0) _...and 12 more files_ </details> ### 📄 Description Added class GoogleDNSForwarder which acts like a provider without actual storage, requests are forwarded to dns.google.com. Next steps would be to implement internal cache so we don't query google too often for already resolved queries. changed codesyle --- <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:09 +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#67
No description provided.