Re: [PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Tijnema !
On 3/26/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, March 26, 2007 4:21 am, Kent Tong wrote: > We have moved our DNS server from one IP to another. But on a Linux > server, the PHP programs keep using the old DNS server IP. For > example, for a simple php file: > > > > When it is run, i

Re: [PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Richard Lynch
On Mon, March 26, 2007 4:21 am, Kent Tong wrote: > We have moved our DNS server from one IP to another. But on a Linux > server, the PHP programs keep using the old DNS server IP. For > example, for a simple php file: > > > > When it is run, it tries to lookup smtp.cpttm using the old DNS > server

Re: [PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Stut
Kent Tong wrote: We have moved our DNS server from one IP to another. But on a Linux server, the PHP programs keep using the old DNS server IP. For example, for a simple php file: When it is run, it tries to lookup smtp.cpttm using the old DNS server (I know it using tcpdump). The new DNS s

[PHP] gethostbyname () uses old DNS server

2007-03-26 Thread Kent Tong
Hi, We have moved our DNS server from one IP to another. But on a Linux server, the PHP programs keep using the old DNS server IP. For example, for a simple php file: When it is run, it tries to lookup smtp.cpttm using the old DNS server (I know it using tcpdump). The new DNS server is specif

Re: [PHP] gethostbyname failing?

2006-11-10 Thread Henrik Hudson
FYI: I uninstalled Apache 2.2.3 and installed Apache 1.3.x via ports and now everything works flawlessly. I made zero other changes on the system between working and not working, so there either is a bug or something "wierd". I was running dnstop and when asking the server to do "hostnamelookup

Re: [PHP] gethostbyname failing?

2006-11-10 Thread Henrik Hudson
On Thursday 09 November 2006 21:28, Chris <[EMAIL PROTECTED]> sent a missive stating: > Henrik Hudson wrote: > > Thanks for the input everyone. It seems it Apache itself can't do lookups > > either (ie: Hostnamelookups On ..doesn't actually do anything..so, going > > to hunt down the issues insi

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Chris
Henrik Hudson wrote: Thanks for the input everyone. It seems it Apache itself can't do lookups either (ie: Hostnamelookups On ..doesn't actually do anything..so, going to hunt down the issues inside Apache...) funny thing is I've got a test server with the same exact port versions and almost

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
Thanks for the input everyone. It seems it Apache itself can't do lookups either (ie: Hostnamelookups On ..doesn't actually do anything..so, going to hunt down the issues inside Apache...) funny thing is I've got a test server with the same exact port versions and almost identical config files

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Jürgen Wind
maybe this is related: from http://de3.php.net/manual/en/function.gethostbyname.php (user comments) >>> christian at SPAM at IS at DEAD at MEAT at karg dot org 01-Apr-2003 02:12 I had difficulty getting gethostbyname to work under OpenBSD 3.2 and Apache, until I discovered that the default Apache

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Google Kreme
On 09 Nov 2006, at 15:09 , Henrik Hudson wrote: On Thursday 09 November 2006 15:56, Jürgen Wind <[EMAIL PROTECTED]> sent a missive stating: '; print_r( gethostbynamel('www.google.com') ); ?> Yes, I get nothing when running inside Apache.

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
On Thursday 09 November 2006 15:56, Jürgen Wind <[EMAIL PROTECTED]> sent a missive stating: > Henrik Hudson wrote: > > Hey List- > > > > running: apache 2.2, freebsd 6.2 and php 4.4.4 > > > > I've got a wierd issue. I've got a script that does this: > > > > $domain = "www.google.com"; > > $ip =

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Jürgen Wind
Henrik Hudson wrote: > > Hey List- > > running: apache 2.2, freebsd 6.2 and php 4.4.4 > > I've got a wierd issue. I've got a script that does this: > > $domain = "www.google.com"; > $ip = gethostbyname($domain); > echo $ip; > > $hostname = gethostbyaddr("72.14.205.99"); > echo $hostname; >

[PHP] gethostbyname failing?

2006-11-09 Thread Henrik Hudson
Hey List- running: apache 2.2, freebsd 6.2 and php 4.4.4 I've got a wierd issue. I've got a script that does this: $domain = "www.google.com"; $ip = gethostbyname($domain); echo $ip; $hostname = gethostbyaddr("72.14.205.99"); echo $hostname; Using dig, ping, etc... to confirm name resolution

Re: [PHP] gethostbyname() time issues

2005-07-28 Thread Kristen G. Thorson
Philip Hallstrom wrote: $diff = number_format(((substr($timeend,0,9)) + (substr($timeend,-10)) - (substr($timestart,0,9)) - (substr($timestart,-10))),4); This just looks wrong to me... at the very least shouldn't it be: (x + x) - (x + x) (x + y) - (w + z) = (x + y) + (-w - z) = x + y - w

Re: [PHP] gethostbyname() time issues

2005-07-28 Thread Philip Hallstrom
The following script: http://www.imakenews.com/progresspsdn/e_rss.aspx', 'http://rssnewsapps.ziffdavis.com/eweekdeveloper.xml', 'http://itpapers.zdnet.com/xml/RSS-239.xml', 'http://rssnewsapps.ziffdavis.com/eweeklinux.xml' ); foreach( $url_arr

[PHP] gethostbyname() time issues

2005-07-28 Thread Kristen G. Thorson
The following script: http://www.imakenews.com/progresspsdn/e_rss.aspx', 'http://rssnewsapps.ziffdavis.com/eweekdeveloper.xml', 'http://itpapers.zdnet.com/xml/RSS-239.xml', 'http://rssnewsapps.ziffdavis.com/eweeklinux.xml' ); foreach( $url_

[PHP] GetHostByName

2002-01-16 Thread Nicolas Costes
Hi all !!! I've made a PHP script which takes IP's of my network (x.x.x.2 -> x.x.x.254) and then uses GetHostByName() to resolv names of the machines if they exist. (This is in order to check for free IP's and redo my DHCP config) But this only works for my own machine, because I filled my /etc/