|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-09 15:57 UTC] bobsledbob at yahoo dot com
I'm having a problem where gethostbyname is returning the hostname not the IP address. Resolving hosts works fine on the command line with nslookup, host, etc. This is the exact problem as bug #8856. Andy said it should be resolved in 4.06, but I'm having problems. Thanks. Adam PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
> Can you access the internet from a browser? Yes, I can resolve any hostname using nslookup, host, etc. This machine accesses the internet just fine. ie. from the command line: [hydro@mail htdocs]$ host calc.intershipper.net calc.intershipper.net is a nickname for www.intershipper.net www.intershipper.net has address 216.58.153.11 [hydro@mail htdocs]$ but from PHP <?php echo gethostbyname ("calc.intershipper.net"); ?> calc.intershipper.net > Make sure your nameserver's are setup correctly. To the best of my knowledge, they are.