LoginSignup
14
13

More than 3 years have passed since last update.

ubuntu での mDNS(=multicast DNS) の有効化方法

Last updated at Posted at 2019-12-27

mDNS(=multicast DNS)

mDNS(=multicast DNS) を使うことによりローカルDNSサーバーを立てなくても、LAN 内の名前解決が容易に行えます。

ubuntu での mDNS の有効化方法

  • 最近の Windows 10 では mDNS が標準で有効になっています。
  • avahi-daemon をインストールすることにより、mDNS を利用できるようになります。
  • ubuntu 側のホスト名を hogehoge とするとLAN内に DNS がなくても hogehoge.local で名前解決できるようになります。
sudo apt       install -y avahi-daemon
sudo systemctl start      avahi-daemon
sudo systemctl enable     avahi-daemon

※ ubuntu 19.10 では avahi-daemon が標準でインストールされていたので avahi-daemon のインストール自体は省略可能です。

mDNS を許可する

sudo apt install -y firewalld
sudo firewall-cmd --add-service=mdns  --permanent
sudo firewall-cmd --reload
14
13
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
14
13