Re: Specifying DNS server in PHP



jgantes@xxxxxxxxx schreef op 26-10-2005 12:38:
> Does anyone know if it is possible to specify which DNS server you want
> GETHOSTBYNAME to use in PHP? Which nameserver does it use by default?
> It appears to use the SERVER's and not the local machine (which would
> make sense) but does anyone know? I really need to do a lookup with a
> specific name server.

It's not possible to specify a particular nameserver. PHP uses the
system's default server (usually specified in /etc/resolv.conf).

--
Met vriendelijke groeten,
Geert Wirken
.



Relevant Pages

  • Re: Absolutely no php knowledge
    ... Will the coding and/or command structure used for building anything in php ... or using Apache be similar to what I would find on a unix base server? ... The local machine would be for nothing other ... that I've learned on my local Windows based "test ground" and apply it ...
    (alt.php)
  • what do I need to get started?
    ... I have plenty of time on my hand and would like to know more about php. ... I can't make heads or tails for the appropriate server for my needs. ... So what's my best approach to get things going on my local machine? ...
    (alt.php)
  • Re: Mail() Function
    ... I am running apache 2.2.6-1.fc7. ... I am now writing a site that will require the sending of forms by php ... What is the minimum I need to configure on my apache development server ... local machine will be stored in the local inbox. ...
    (alt.php)
  • refer file in local machine from server
    ... I am trying to refer a file in local machine from server. ... the program is in php in linux system. ...
    (comp.os.linux.misc)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)