Re: Re.: Implementation differences between checkdnsrr and dns_get_record

From: Date: Thu, 28 Oct 2021 13:07:08 +0000
Subject: Re: Re.: Implementation differences between checkdnsrr and dns_get_record
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-327796@lists.php.net to get a copy of this message
Thx a lot for the details, appreciated.Daniele Bonini From: Jānis ElmerisSent: giovedì 28 ottobre 2021 11:23To: Daniele B; php-general@lists.php.netSubject: Re.: Implementation differences between checkdnsrr and dns_get_record P {margin-top:0;margin-bottom:0;} I cannot answer the question competently, but just so it doesn't remain completely unanswered. :) If you are interested in the implementation of both functions, here is the code for "dns_check_record" ("checkdnsrr" is an alias for this one): https://github.com/php/php-src/blob/master/ext/standard/dns.c#L382 And here is the code for "dns_get_record": https://github.com/php/php-src/blob/master/ext/standard/dns.c#L823 At a first glance, they both use functions "dns_open", "php_dns_search", "php_dns_free_handle", so a difference in the network libraries should not have been the issue. Although, you should look at the code for the specific PHP version you were using at the time. Also, there is different code for Windows implementation: https://github.com/php/php-src/blob/master/ext/standard/dns_win32.c Regards, Janis No: Daniele B <my25mb@aol.com> Nosūtīts: pirmdiena, 2021. gada 25. oktobris 16:01 Kam: Jānis Elmeris <janis.elmeris@lv.lv>; php-general@lists.php.net <php-general@lists.php.net> Tēma: RE: Atb.: Implementation differences between checkdnsrr and dns_get_record   Absolutely and thanks for the chance. In this case for implementation I mean if they both rely on the same network libraries and methods to access the network. To be more detailed, recently I dealt - by others PHP code -  with both these instructions troubleshooting a wrong network problem, between a firewall configuration and the regional availability of the servers of origin/destination. The developers of this 3rd company asked me to install some code that they were using in one and the other instruction with different final results. Actually, I do not remeber much more and which of the two functions got most useful.  I see also that there are some difference in the PHP versions supported by them, that make me think one time more they have different kind of network access. Daniele Bonini [par7133] -------- Original message -------- From: Jānis Elmeris <janis.elmeris@lv.lv> Date: 10/25/21 11:31 (GMT+01:00) To: php-general@lists.php.net, Daniele B <my25mb@aol.com> Subject: Atb.: Implementation differences between checkdnsrr and dns_get_record Please, be more precise. The obvious differences are in the different function signatures. Regards, Janis No: Daniele B via php-general <php-general@lists.php.net> Nosūtīts: sestdiena, 2021. gada 23. oktobris 04:43 Kam: php-general@lists.php.net <php-general@lists.php.net> Tēma: Implementation differences between checkdnsrr and dns_get_record   Hello everyone, I would like to fill in my curiosity.. What are exactly the implementation differences between checkdnsrr() and dns_get_record() instructions? Thx a lot, Daniele Bonini

« previous php.general (#327796) next »