php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43536 Specifying a nameserver for DNS requests
Submitted: 2007-12-08 14:06 UTC Modified: 2021-07-30 08:47 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: marc at perkel dot com Assigned: cmb (profile)
Status: Duplicate Package: Network related
PHP Version: 5.2.5 OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marc at perkel dot com
New email:
PHP Version: OS:

 

 [2007-12-08 14:06 UTC] marc at perkel dot com
Description:
------------
It would be nice if there were a way to direct DNS requests to a specific nameserver so that one could write code that tests what a specific nameserver is returning and avoid caching. That way if you are writing a diagnostic tool to test name server configurations it will work correctly. Would like to be able to write what DNSstuff does in PHP.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-01 19:28 UTC] php at kriegt dot es
Wondering why no one voting for this feature request. Imho this is a feature 
which is really missing from all those network features that PHP gives us.

This request is going to get 6 year old. Imho we should start to think about 
what is usefull and what is trash. Imho trash features are possibilities for 
brackets while defining an array:
$foo = [ 1, 2, 3 ];

A usefull feature would be this which was request in 2007.
Please think about it since perl or other languages are able to query specific 
nameservers:
http://www.net-dns.org/docs/Net/DNS/Resolver.html
http://ruby-doc.org/stdlib-1.9.3/libdoc/resolv/rdoc/Resolv/DNS.html
...

Those PEAR packages which are fossiles in PHP history (sorry but these PHP 4 
compatibility is pretty odd) can query specific nameservers, but tbh - I would 
never use PEAR packages since the performance of that code is horrible.

Hopefully this feature will find its way to a new PHP Version.
 [2017-01-23 13:47 UTC] narf at devilix dot net
Looks like a duplicate of https://bugs.php.net/bug.php?id=17819
 [2021-07-30 08:47 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Package: Feature/Change Request +Package: Network related -Assigned To: +Assigned To: cmb
 [2021-07-30 08:47 UTC] cmb@php.net
Indeed, a duplicate of bug #17819.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC