note 112048 added to function.dns-get-record
| From: | karl at influ dot io | Date: | Fri, 26 Apr 2013 01:38:46 +0000 |
| Subject: | note 112048 added to function.dns-get-record | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194632@lists.php.net to get a copy of this message | ||
There's a comment below from 7 years ago regarding BSD and MacOSX, I'd just like to follow
up incase some people see that and don't think it'll work on MacOSX.
Software:
System Software Overview:
System Version: OS X 10.8.3 (12D78)
Kernel Version: Darwin 12.3.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: Karlâs iMac
User Name: Karl Kloppenborg (karl)
Secure Virtual Memory: Enabled
Time since boot: 10 days 20:24
--------------
# php -a
php > print_r(dns_get_record('google.com', DNS_MX));
Array
(
[0] => Array
(
[host] => google.com
[type] => MX
[pri] => 10
[target] => aspmx.l.google.com
[class] => IN
[ttl] => 749
)
[1] => Array
(
[host] => google.com
[type] => MX
[pri] => 30
[target] => alt2.aspmx.l.google.com
[class] => IN
[ttl] => 749
)
[2] => Array
(
[host] => google.com
[type] => MX
[pri] => 50
[target] => alt4.aspmx.l.google.com
[class] => IN
[ttl] => 749
)
[3] => Array
(
[host] => google.com
[type] => MX
[pri] => 40
[target] => alt3.aspmx.l.google.com
[class] => IN
[ttl] => 749
)
[4] => Array
(
[host] => google.com
[type] => MX
[pri] => 20
[target] => alt1.aspmx.l.google.com
[class] => IN
[ttl] => 749
)
)
----
Server IP: 69.147.83.199
Probable Submitter: 150.101.205.12
----
Manual Page -- http://php.net/manual/en/function.dns-get-record.php
Edit -- https://master.php.net/note/edit/112048
Del: integrated -- https://master.php.net/note/delete/112048/integrated
Del: useless -- https://master.php.net/note/delete/112048/useless
Del: bad code -- https://master.php.net/note/delete/112048/bad+code
Del: spam -- https://master.php.net/note/delete/112048/spam
Del: non-english -- https://master.php.net/note/delete/112048/non-english
Del: in docs -- https://master.php.net/note/delete/112048/in+docs
Del: other reasons-- https://master.php.net/note/delete/112048
Reject -- https://master.php.net/note/reject/112048
Search -- https://master.php.net/manage/user-notes.php