frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

FrankenPHP aarch64 on Termux: dns_get_record fails with "A temporary server error occured"

Open krzysztof113 opened this issue 9 months ago • 2 comments

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)

krzysztof113 avatar Apr 05 '25 19:04 krzysztof113

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.

bukka avatar Apr 14 '25 12:04 bukka

I have a workaround with Net_DNS2, then pass ip as CURLOPT_RESOLVE for every outgoing request. It's not great by it works.

krzysztof113 avatar Apr 16 '25 06:04 krzysztof113