FrankenPHP aarch64 on Termux: dns_get_record fails with "A temporary server error occured"
What happened?
With FrankenPHP aarch64 on Termux I get: dns_get_record fails with "A temporary server error occured"
Directly installed on Termux php works correctly.
Could you please provide some hints why FrankenPHP behaves this way?
Easiest way to compare: var_dump(dns_get_record('google.com', DNS_A));
Probably related: https://github.com/termux/termux-packages/issues/1225
Build Type
Standalone binary
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
aarch64
PHP configuration
I'll provide later if needed.
Relevant log output
Warning: dns_get_record(): A temporary server error occurred. in /data/data/com.termux/files/home/project1/public/index.php on line 2
bool(false)
It depends on libresolv so for static binary (assuming this is the musl one), it might be related to musl implementation which might not directly respect the OS setting. This might need some testing to figure it out though.
I have a workaround with Net_DNS2, then pass ip as CURLOPT_RESOLVE for every outgoing request. It's not great by it works.