php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13422 gethostbyname() returns hostname when ip address is part of hostname
Submitted: 2001-09-24 18:04 UTC Modified: 2001-09-25 09:50 UTC
From: gardner at armory dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: Linux 2.2 SMP
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: gardner at armory dot com
New email:
PHP Version: OS:

 

 [2001-09-24 18:04 UTC] gardner at armory dot com
When you pass a host name such as ip-255-255-255-255.reverse.mobilenetics.com to gethostbyname() it returns the hostname, not the ip address.

Regular hostnames like google.com work.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-25 09:50 UTC] sniper@php.net
submitted twice.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 15:01:33 2024 UTC