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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 19 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC