Wednesday, March 5, 2008

nscd and getnameinfo

nscdがなんかへん。


% ruby -rsocket -e 'p Socket.getnameinfo([nil, 80, "127.0.0.1"])'
["localhost.localdomain", "80"]
% sudo /etc/init.d/nscd stop
Stopping Name Service Cache Daemon: nscd.
% ruby -rsocket -e 'p Socket.getnameinfo([nil, 80, "127.0.0.1"])'
["localhost.localdomain", "www"]
% dpkg -s nscd | grep "^Version"
Version: 2.7-9


うーん?