Raspberry piのAvahiの設定でハマったので、備忘録です。
IPv4 での名前解決は全く問題ないのに、IPv6 の名前解決が出来ませんでした。
で、/etc/nsswitch.conf の中を一文字変更するだけの話でした。
IPv4 専用のネットワークで、名前解決が遅くなる事を避けるための設定がデフォルトの設定だったという事で、以下の青字の行を赤字の様に「4」の文字を削除するだけで、きちんと動くようになりました。
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
#hosts: files mdns4_minimal [NOTFOUND=return] dns
hosts: files mdns_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
IPv4 での名前解決は全く問題ないのに、IPv6 の名前解決が出来ませんでした。
で、/etc/nsswitch.conf の中を一文字変更するだけの話でした。
IPv4 専用のネットワークで、名前解決が遅くなる事を避けるための設定がデフォルトの設定だったという事で、以下の青字の行を赤字の様に「4」の文字を削除するだけで、きちんと動くようになりました。
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
#hosts: files mdns4_minimal [NOTFOUND=return] dns
hosts: files mdns_minimal [NOTFOUND=return] dns
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
コメント
コメントを投稿