|
|
1
20
这似乎有效:
|
|
|
2
6
不建议使用,只有在正确设置反向DNS解析时才能使用。 This Facter bug 如果需要的话,有更长的解释。 如果您阅读facter代码,您会注意到 sidestep the issue altogether by saying :
哪里:
这是一个合理的假设,不依赖于dns的设置(它可能在盒子外部)。 |
|
|
3
-5
可以是稍微简单一点的=>hostname=socket.gethostname |