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: -
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:
Status: Open Package: Feature/Change Request
PHP Version: 5.2.5 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 06:01:24 2019 UTC