473,326 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

php's dns server?

Is there a way one could determin which DNS server a PHP installation
was using to do such things as gethostbyname and gethostbyaddr?

Ideally, the solution would be cross-platform (eg. work on Windows and
Linux) and work in safe mode, but solutions that aren't are of some
interest to me, as well :)

Jul 19 '06 #1
4 1947
yawnmoth wrote:
Is there a way one could determin which DNS server a PHP installation
was using to do such things as gethostbyname and gethostbyaddr?

Ideally, the solution would be cross-platform (eg. work on Windows and
Linux) and work in safe mode, but solutions that aren't are of some
interest to me, as well :)
PHP will use whichever one the server itself is using.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 19 '06 #2

Jerry Stuckle wrote:
yawnmoth wrote:
Is there a way one could determin which DNS server a PHP installation
was using to do such things as gethostbyname and gethostbyaddr?

Ideally, the solution would be cross-platform (eg. work on Windows and
Linux) and work in safe mode, but solutions that aren't are of some
interest to me, as well :)

PHP will use whichever one the server itself is using.
There wouldn't happen to be a way for PHP to know what the server is
using, would there be?

Jul 19 '06 #3
yawnmoth wrote:
Jerry Stuckle wrote:
>>yawnmoth wrote:
>>>Is there a way one could determin which DNS server a PHP installation
was using to do such things as gethostbyname and gethostbyaddr?

Ideally, the solution would be cross-platform (eg. work on Windows and
Linux) and work in safe mode, but solutions that aren't are of some
interest to me, as well :)

PHP will use whichever one the server itself is using.

There wouldn't happen to be a way for PHP to know what the server is
using, would there be?
Nope, that's up to the OS, not a programming language (PHP or any other
one).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 20 '06 #4
Jerry Stuckle wrote:
yawnmoth wrote:
>Jerry Stuckle wrote:
>>yawnmoth wrote:

Is there a way one could determin which DNS server a PHP installation
was using to do such things as gethostbyname and gethostbyaddr?

Ideally, the solution would be cross-platform (eg. work on Windows and
Linux) and work in safe mode, but solutions that aren't are of some
interest to me, as well :)
PHP will use whichever one the server itself is using.


There wouldn't happen to be a way for PHP to know what the server is
using, would there be?

Nope, that's up to the OS, not a programming language (PHP or any other
one).
I should add - there are calls to the OS to determine which DNS is being
used, but nothing in PHP, AFAIK. You probably could do something like
execute nslookup and parse the return value, but what good would it do?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeff | last post by:
Could someone walk me step by step on how to install and get JpGraph running on a Windows 2000+Apache+PHP+MySql server? -Thanks Jeff
1
by: JDJones | last post by:
We are trying to set up a PHP page to handle server requests for individual web pages that we are moving to a new server. The part that complicates this procedure is that the files will not be...
3
by: Luca Mariano | last post by:
Hi people, I'm developing the first PHP Application Server. It can run PHP classes that extends the HttpPhplet interface with the same methods of javax.http.HttpServlet. The phplet are like...
0
by: glin | last post by:
Hi I have been researching on the net and I cannot find out anything that mentions about if the php xmlrpc server methods can be put inside of a class. And the javascript client can call the...
2
by: Michal Przytulski | last post by:
Hi, I'm looking for a php application server witch can create standalone application on linux OS, somthing like java servlet or python twistd. This shoud be a complete framework with support for...
4
by: Patrick Masson | last post by:
Hello, Our configuration : Apache 2.0.53 PHP 5.0.4 PC Windows 2000 MATLAB 6.1 We work on a consulting project in France which involves MATLAB Web server,
0
by: TheVillain9 | last post by:
i'm working on a php soap server. i'm not entirely sure if my problem is with the server or just if i need to do something else on the client side. basically i created a sample client at:...
0
by: doc | last post by:
Hi Hard to know where to post this and I don't want to double post it - please move it if you need to, I am trying to connect a Flash client socket (XML) to a php socket server (using Flash 8 and...
1
by: bimowidhi | last post by:
Hi, I'm a newbie here, and also in PHP. Sorry for my bad English. I've walked around to find the answer of my problem, but I still can't get it. I develop PHP 5.2.5 Application, using SQL...
2
by: bikashliju | last post by:
hi, i am facing a problem while practicing php. i am working a demo hr management system ....if a new record is added to database then the drop down list to show employee id will be updated...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.