Re: dns_get_record()
On Sat, 16 Feb 2008 19:11:54 -0500, Fred Atkinson
<fatkinson@xxxxxxxxxxxx> wrote:
Is there any way to use the dns_get_record() function to
return the A record to the IP address of a subdomain?
Some of the documentation I have read on this command suggest
that there is a way to do it but I've not yet been able to figure it
out.
Regards,
Fred
I kept digging. I found this instead.
I was able to rewrite it to achieve my aim.
<?php
$sdip = gethostbyname("php.net");
$sddomain = gethostbyaddr($sdip);
print "IP: $sdip\n";
print "Domain: $sddomain\n";
?>
Regards,
Fred
.
Relevant Pages
- Re: Great SWT Program
... I think this syntax may go back to the Bourne shell. ... In most of the Unix shells I've used, as best I can remember, ... do requires launching an external command to massage some data, ... although how the documentation would lead a non-expert user to ... (comp.lang.java.programmer) - Single Source Documentation Woes
... provide the ability to single-source user manual documentation, ... | (WAP, HTML, etc.) | ... Application Name has the following command line options: ... To make life truly entertaining, ... (comp.programming) - Re: COPY bug with remote task as input.
... >:I think this is a bug in the COPY command. ... I cannot find it anymore in the VMS 7.3 documentation. ... This section seems to imply that any command which accepts an input file ... You should at least admit that the error message is confusing. ... (comp.os.vms) - Re: [RFC PATCH 1/3] Replace paravirt_probe with "platform type" boot header field
... out in boot loader protocol 2.04; see the documentation. ... *STABBITY STAB STAB STAB*. ... 2K for the command line. ... (Linux-Kernel) - Re: Matlab -- Venting, Plus Miscellaneous Questions
... There are no command lines. ... Matlab is obviously intensively command-driven -- which means, ... print or online documentation. ... calculations, but symbolic calculations keep showing some ridiculous ... (sci.math.symbolic) |
|