Warning: dns_get_record(): A temporary server error occurred

简介: 参考链接测试#! /usr/bin/php<?phpecho gethostbyname("test.xx.com");echo "\n";var_dump( dns_get_record("test.xx.com") );echo "\n";/etc/resolve.conf问题: Docker生产的子机 /etc/resolve.

参考链接


测试

#! /usr/bin/php
<?php
echo gethostbyname("test.xx.com");
echo "\n";
var_dump( dns_get_record("test.xx.com") );
echo "\n";

/etc/resolve.conf

问题: Docker生产的子机 /etc/resolve.conf权限是 600.
吓尿. 修改成 644, 让others可读后修复,影响DNS解析的地方很多,很少碰到因为 /etc/resolve.conf权限影响的问题,无语了,这种问题,我丫竟然查log没发现!按大概分析,以为不应该出现这种情况才对!

其实本质是nobody等普通用户,权限不够罢了,而php-fpm是noboby用户跑的. 另外,应该也和Docker把 /etc 当只读层有关?思路比较乱,下次碰到问题,多方面分析下。

目录
相关文章
|
3月前
|
NoSQL Redis
解决(error) ERR Errors trying to SHUTDOWN. Check logs.问题~
解决(error) ERR Errors trying to SHUTDOWN. Check logs.问题~
|
5月前
Error from server error dialing backend remote error tls internal error
Error from server error dialing backend remote error tls internal error
42 0
|
8月前
ERR Errors trying to SHUTDOWN. Check logs.
ERR Errors trying to SHUTDOWN. Check logs.
44 0
|
Kubernetes 容器
k8s报错:Error from server (NotFound): the server could not find the requested resource (get services h
k8s报错:Error from server (NotFound): the server could not find the requested resource (get services h
|
Go iOS开发
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
343 0
|
SQL 数据库 Windows
SQL Server 2005 sp_send_dbmail出现Internal error at FormatRowset (Reason: Not enough storage is available to complete this operation)
案例环境:   操作系统: Windows 2003 SE 32bit(SP2) 数据库版本:Microsoft SQL Server 2005 - 9.00.5069.00 (Intel X86)             Aug 22 2012 16:01:52           ...
1392 0
|
Java 关系型数据库 Oracle
Unable to read additional data from server sessionid
jenkins构建项目报错: Caused by: com.weibo.api.motan.exception.MotanFrameworkException: error_message: ClusterSupport No service urls for the refer:motan://192.
10388 0