Warning:dns_get_record():Atemporaryservererroroccurred
測試
#! /usr/bin/php
<?php
echo gethostbyname("test.xx.com");
echo "
";
var_dump( dns_get_record("test.xx.com") );
echo "
";
/etc/resolve.conf
問題: Docker生產的子機 /etc/resolve.conf許可權是 600.
嚇尿. 修改成 644, 讓others可讀後修復,影響DNS解析的地方很多,很少碰到因為 /etc/resolve.conf許可權影響的問題,無語了,這種問題,我丫竟然查log沒發現!按大概分析,以為不應該出現這種情況才對!
其實本質是nobody等普通使用者,許可權不夠罷了,而php-fpm是noboby使用者跑的. 另外,應該也和Docker把 /etc 當只讀層有關?思路比較亂,下次碰到問題,多方面分析下。
相關文章
- mysql WarningMySql
- [WARNING] warning: Class com.google.protobuf.Descriptors not found - continuing with a stub.GoUI
- webstorm(二):拼寫warningWebORM
- InnoDB: Warning: a long semaphore waiAI
- warning:reset()[function.reset]:passedvariableisnotanarrayorobjectFunctionObject
- Warning: Cannot redeclare function_name()Function
- Warning: RPMDB altered outside of yumIDE
- ORA-12504 warning in PHPPHP
- Python忽略warning警告錯誤Python
- 【Python】關閉 warning 資訊提示Python
- WARNING:Could not lower the asynch I/O limitMIT
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!REMIDE
- WARNING: Oracle executable binary mismatch detectedOracle
- dedecms 搬家 / dedecms error warning!錯誤Error
- PHP Warning:fopen出錯如何解決?PHP
- warning: already initialized constant FileUtils::VERSIONZed
- WARNING: Subscription for node down event still pending
- python如何忽略警告(warning) 錯誤Python
- 解決警告“ld: warning: directory not found for option”
- NMAKE : warning U4006: special macro undefined : '$MacUndefined
- Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'MySql
- redhat linux核心資訊 warning:many lost ticksRedhatLinux
- Python怎樣忽略warning警告錯誤?Python
- [git]warning: LF will be replaced by CRLF in 解決辦法Git
- 關閉VS警告 warning C4996996
- Warning: unable to open an initial console.
- RMAN-08137: WARNING: Archived Log Not DeletedHivedelete
- git warning: LF will be replaced by CRLF in 解決辦法Git
- warning: React does not recognize the xxx prop on a DOM elementReact
- SSH登入:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!REMIDE
- Linux - SSH: WARNING REMOTE HOST IDENTIFICATION HAS CHANGEDLinuxREMIDE
- [git] warning: LF will be replaced by CRLF | fatal: CRLF would be replaced by LFGit
- WARNING Uninstalling will remove the application data!REMAPP
- WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED解決方法REMIDE
- C++ Programming Error/Warning Analysis (2) extra qualificationC++Error
- [Warning] TIMESTAMP with implicit DEFAULT --explicit_defaults_for_timestamp
- 【轉】WARNING:Could not lower the asynch I/O limit 錯誤MIT
- warning: LF will be replaced by CRLF in ** 的原因及解決辦法