西村です。 Reply to <[email protected]> Hajimu UMEMOTO <[email protected]> wrote: > nsswitch.conf に従って検索したいのであれば、今時の FreeBSD だと > getaddrinfo(1) が標準で入っていますので、getaddrinfo(1) を使うといいか > もしれません。 > > % getaddrinfo -t stream localhost.my.domain > stream inet6 tcp ::1 0 > stream inet tcp 127.0.0.1 0
ちょっと素朴な質問です 私はnsswitch.conf 通り検索ってなるとgetent だと思い込んでましたので % getent hosts www.example.jp とか言う感じでやってますが getent hosts と getaddrinfo となにか違うんでしょうか? -- NISHIMURA,Yutaka./西村ゆたか <[email protected]>
