Reply to Re: php's dns server?

Your name:

Reply:


Posted by Jerry Stuckle on 12/17/36 11:53

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.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация