php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43886 checkdnsrr should distinguisch between 'no records' and 'error'
Submitted: 2008-01-18 03:11 UTC Modified: 2008-01-28 23:27 UTC
From: php dot gewuerzschinken at spamgourmet dot com Assigned:
Status: Not a bug Package: *Network Functions
PHP Version: 5.2.5 OS: Slackware Linux 11
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php dot gewuerzschinken at spamgourmet dot com
New email:
PHP Version: OS:

 

 [2008-01-18 03:11 UTC] php dot gewuerzschinken at spamgourmet dot com
Description:
------------
I'd like to see the function distinguishing between 'no records' (boolean function result or zero) and 'error' (Exception or negative function result).  

In the case of an error, one would log the error and continue or not.
And if there is no record, one would sort out the invalid domain.
At the moment I have to sort out the domain in every way even if the domain is valid but the machine cannot connect to a domain name service or what ever.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-28 23:27 UTC] tony2001@php.net
This is not possible as long as res_search() returns -1 both on failure and "no records".
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Aug 22 13:01:27 2019 UTC