{"id":604,"date":"2026-07-24T09:44:14","date_gmt":"2026-07-24T00:44:14","guid":{"rendered":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/604"},"modified":"2026-07-24T09:44:14","modified_gmt":"2026-07-24T00:44:14","slug":"avahi-daemon%e3%81%ae%e6%a6%82%e8%a6%81%e3%81%a8%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.marchboy.xyz\/wordpress\/archives\/604","title":{"rendered":"avahi-daemon\u306e\u6982\u8981\u3068\u4f7f\u3044\u65b9"},"content":{"rendered":"<h2>avahi-daemon\u3068\u306f<\/h2>\n<p>avahi-daemon\u306f\u3001<strong>Zero\u2011configuration networking\uff08Zeroconf\uff09<\/strong>\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e Linux \u5411\u3051\u30c7\u30fc\u30e2\u30f3\u3067\u3059\u3002Bonjour\uff08Apple \u306e\u5b9f\u88c5\uff09\u3068\u4e92\u63db\u6027\u304c\u3042\u308a\u3001LAN \u5185\u306e\u30c7\u30d0\u30a4\u30b9\u3084\u30b5\u30fc\u30d3\u30b9\u3092\u81ea\u52d5\u7684\u306b\u691c\u51fa\u30fb\u5e83\u544a\u3057\u307e\u3059\u3002<\/p>\n<h2>\u4e3b\u306a\u6a5f\u80fd<\/h2>\n<ul>\n<li>\u30b5\u30fc\u30d3\u30b9\u306e\u81ea\u52d5\u767a\u898b\uff08mDNS\/DNS\u2011SD\uff09<\/li>\n<li>\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u540d\u306e\u89e3\u6c7a\uff08.local \u30c9\u30e1\u30a4\u30f3\uff09<\/li>\n<li>\u4ed6\u30db\u30b9\u30c8\u306e\u30b5\u30fc\u30d3\u30b9\u60c5\u5831\u53d6\u5f97\uff08_http._tcp, _ssh._tcp \u306a\u3069\uff09<\/li>\n<li>IPv4 \u3068 IPv6 \u306e\u4e21\u65b9\u306b\u5bfe\u5fdc<\/li>\n<\/ul>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u57fa\u672c\u8a2d\u5b9a<\/h2>\n<p>\u307b\u3068\u3093\u3069\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code># Debian\/Ubuntu \u7cfb\nsudo apt update\nsudo apt install avahi-daemon avahi-utils\n\n# RHEL\/CentOS \u7cfb\nsudo dnf install avahi avahi-tools\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306f\u30c7\u30fc\u30e2\u30f3\u304c\u81ea\u52d5\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002\u624b\u52d5\u3067\u64cd\u4f5c\u3057\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code># \u8d77\u52d5\nsudo systemctl start avahi-daemon\n\n# \u6709\u52b9\u5316\uff08\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\uff09\nsudo systemctl enable avahi-daemon\n\n# \u72b6\u614b\u78ba\u8a8d\nsudo systemctl status avahi-daemon\n<\/code><\/pre>\n<h2>\u3088\u304f\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u4f8b<\/h2>\n<ul>\n<li><strong>avahi-browse<\/strong> \u2013 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u4e00\u89a7\u8868\u793a<\/li>\n<\/ul>\n<pre><code># \u3059\u3079\u3066\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u8868\u793a\navahi-browse -a\n\n# \u7279\u5b9a\u306e\u30b5\u30fc\u30d3\u30b9\u30bf\u30a4\u30d7\u3060\u3051\u3092\u8868\u793a\uff08\u4f8b: HTTP\uff09\navahi-browse -rt _http._tcp\n<\/code><\/pre>\n<ul>\n<li><strong>avahi-resolve<\/strong> \u2013 .local \u30db\u30b9\u30c8\u540d\u3092 IP \u30a2\u30c9\u30ec\u30b9\u306b\u5909\u63db<\/li>\n<\/ul>\n<pre><code># \u30db\u30b9\u30c8\u540d\u3092\u89e3\u6c7a\navahi-resolve -n my\u2011printer.local\n<\/code><\/pre>\n<h2>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8<\/h2>\n<ul>\n<li>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c <code>5353\/udp<\/code>\uff08mDNS\uff09\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/li>\n<li>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c <code>multicast<\/code> \u3092\u8a31\u53ef\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b\u3002<\/li>\n<li>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f <code>\/etc\/avahi\/avahi-daemon.conf<\/code>\u3002\u5909\u66f4\u5f8c\u306f <code>systemctl restart avahi-daemon<\/code> \u304c\u5fc5\u8981\u3002<\/li>\n<li>\u30ed\u30b0\u306f <code>journalctl -u avahi-daemon<\/code> \u3067\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u304c avahi-daemon \u306e\u57fa\u672c\u7684\u306a\u6982\u8981\u3068\u5b9f\u52d9\u3067\u306e\u5229\u7528\u65b9\u6cd5\u3067\u3059\u3002Zeroconf \u304c\u5fc5\u8981\u306a\u74b0\u5883\u3067\u306f\u3001\u305c\u3072\u5c0e\u5165\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>avahi-daemon\u3068\u306f avahi-daemon\u306f\u3001Zero\u2011configuration networking\uff08Zeroconf\uff09\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e Linux \u5411\u3051\u30c7\u30fc\u30e2\u30f3\u3067\u3059\u3002Bonjour\uff08Apple \u306e\u5b9f\u88c5\uff09 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/comments?post=604"}],"version-history":[{"count":0,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/posts\/604\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/media?parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/categories?post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marchboy.xyz\/wordpress\/wp-json\/wp\/v2\/tags?post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}