Questions tagged «getent»

1
getent主机打印IPv6,getent ahosts打印IPv4
我终端的逐字输出: $ getent hosts example.org 2001:500:88:200::10 example.org $ getent ahosts example.org 192.0.43.10 STREAM 43-10.any.icann.org 192.0.43.10 DGRAM 192.0.43.10 RAW 我认为他们(至少是ahosts)都应该同时打印IPv4和IPv6地址。为什么这些打印不同的地址类型? $ uname -srvmpio Linux 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:17:36 UTC 2012 i686 i686 i386 GNU/Linux 编辑:看起来它可能与此错误报告有关。
9 getent 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.