2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

avahi-daemon

2
Posted at
インストール
sudo apt-get install -y avahi-daemon

avahi-daemon は dbus サービスを必要とするため、
コンテナで動かす場合は dbus サービスを起動しておくこと。

起動
service dbus start
service avahi-daemon start

ホスト名を 〜.localにしておく。

  • /etc/hostname

名前解決

avahi-daemon をインストールすると nsswitch.conf が修正されていると思いますが、そうでなければ以下とする。

/etc/nsswitch.conf
hosts:          files mdns4_minimal [NOTFOUND=return] dns

利用方法

  • http://〜.local
  • ssh 〜.local

でアクセスができるようになる。DHCP環境で活躍。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?