php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12510 checkdnsrr gives strange answers
Submitted: 2001-08-01 06:48 UTC Modified: 2001-08-01 09:04 UTC
From: honey at 7thGuard dot net Assigned:
Status: Not a bug Package: *Network Functions
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-08-01 06:48 UTC] honey at 7thGuard dot net
checkdnsrr for *.domanname.com gives "not found". It's okay.
It works for most domains in internet. But on my system 
checkdnsrr("*.7thGuard.net") and checkdnsrr("*.7thGuard.com") returns true. Should't it always return "fasle"?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-01 08:57 UTC] andy@php.net
When I used nslookup on your site I got...

> set type=MX (The default type that PHP looks for)

> 7thGuard.net

7thGuard.net
preference=10, mail exchanger = mail.7thGuard.net
[...]

> *.7thGuard.net

Name: *.7thGuard.net

*.7thGuard.net
preference=10, mail exchanger = mail.7thGuard.net
[...]

>

So, *.7thGuard.net has MX records.  By default, checkdnsrr
looks for MX records.  Not a PHP bug.

 [2001-08-01 08:57 UTC] andy@php.net
When I used nslookup on your site I got...

> set type=MX (The default type that PHP looks for)

> 7thGuard.net

7thGuard.net
preference=10, mail exchanger = mail.7thGuard.net
[...]

> *.7thGuard.net

Name: *.7thGuard.net

*.7thGuard.net
preference=10, mail exchanger = mail.7thGuard.net
[...]

>

So, *.7thGuard.net has MX records.  By default, checkdnsrr
looks for MX records.  Not a PHP bug.

 [2001-08-01 09:01 UTC] honey at 7thGuard dot net
adny wrote:
> *.7thGuard.net has MX records. By default, checkdnsrr looks for > MX recors. Not a PHP bug

but, for example, checkdnsrr("*.7bulls.com") returns false. 7bulls.com also has MX.


 [2001-08-01 09:04 UTC] andy@php.net
no it doesn't

7bulls.com may have MX records, but no "*.7bulls.com"

nslookup on *.7bulls.com

> set type=MX

>*.7bulls.com

**207-230-75-222.deltacom.net can't find *.7bulls.com: Non-
existant host/domain
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 18:01:26 2019 UTC