{"id":269,"date":"2017-05-13T17:25:11","date_gmt":"2017-05-13T08:25:11","guid":{"rendered":"http:\/\/bam-system.ddo.jp\/wordpress\/ura\/?p=269"},"modified":"2017-05-13T17:25:11","modified_gmt":"2017-05-13T08:25:11","slug":"debian-mdns%e3%81%a7%e5%90%8d%e5%89%8d%e8%a7%a3%e6%b1%ba%e3%81%97%e3%81%a6%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/2017\/05\/13\/debian-mdns%e3%81%a7%e5%90%8d%e5%89%8d%e8%a7%a3%e6%b1%ba%e3%81%97%e3%81%a6%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b\/","title":{"rendered":"Debian mDNS\u3067\u540d\u524d\u89e3\u6c7a\u3057\u3066\u63a5\u7d9a\u3059\u308b"},"content":{"rendered":"<p>Raspbian\u30de\u30b7\u30f3\u304c\u6700\u521d\u304b\u3089avahi\u304c\u5165\u3063\u3066\u308b\u304a\u304b\u3052\u3067mDNS\u3067\u540d\u524d\u3092\u89e3\u6c7a\u3057\u3066\u63a5\u7d9a\u3067\u304d\u308b\u306e\u304c\u4fbf\u5229\u306a\u306e\u3067\u3001Debian\u30b5\u30fc\u30d0\u30fc\u3067\u3082mDNS\u3067\u540d\u524d\u304c\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u306bavahi\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u5fc5\u8981\u306a\/etc\/nsswitch.conf\u306e\u66f8\u304d\u63db\u3048\u7b49\u306f\u5168\u90e8\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3084\u3063\u3066\u304f\u308c\u308b\u3002<\/p>\n<p>sudo apt-get install avahi-daemon libnss-mdns<\/p>\n<p>avahi\u304c\u7a3c\u50cd\u3059\u308b\u3068mDNS\u3067\u89e3\u6c7a\u3067\u304d\u308b\u540d\u524d\u306f\/etc\/hostname\u306b\u66f8\u304b\u308c\u305f\u540d\u524d\u306b.local\u3092\u3064\u3051\u305f\u3082\u306e\u306b\u306a\u308b\u3002<\/p>\n<p>mDNS\u306e\u8a2d\u5b9a\u306b\u5fc5\u8981\u306a\u4f5c\u696d\u306f\u57fa\u672c\u306f\u3053\u308c\u3060\u3051\u3060\u304c\u3001\u624b\u5143\u306eDebian\u30b5\u30fc\u30d0\u30fc\u306f\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u3067\u4f59\u8a08\u306a\u63a5\u7d9a\u3092\u3059\u3079\u3066\u30d6\u30ed\u30c3\u30af\u3059\u308b\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u308b\u306e\u3067\u3001\u540d\u524d\u89e3\u6c7a\u306e\u305f\u3081\u306b\u306f\u30af\u30a8\u30ea\u3092\u53d7\u3051\u5165\u308c\u308b\u3088\u3046\u306b\u30dd\u30fc\u30c8\u3092\u958b\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u306a\u306e\u3067\u3001\/etc\/iptables\/rules.v4\u306e\u3069\u3053\u304b\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<p>-A INPUT -d 224.0.0.251\/32 -p udp -m udp &#8211;dport 5353 -j ACCEPT<\/p>\n<p>mDNS\u306e\u30af\u30a8\u30ea\u306f\u30de\u30eb\u30c1\u30ad\u30e3\u30b9\u30c8(224.0.0.251)\u3067UDP\u306e\u30dd\u30fc\u30c85353\u306b\u5c4a\u304f\u306e\u3067\u3001\u3053\u308c\u3092\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u304c\u53d7\u3051\u5165\u308c\u308b\u69d8\u306b\u3059\u308c\u3070\u3044\u3044\u3002<\/p>\n<p>\u540c\u69d8\u306b\u305b\u3063\u304b\u304f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067avahi\u306fIPv6\u3067\u3082\u7b54\u3048\u308b\u306e\u3060\u304b\u3089\/etc\/iptables\/rules.v6\u306b\u3082\u8ffd\u8a18\u3002<\/p>\n<p>-A INPUT -d ff02::fb\/128 -p udp -m udp &#8211;dport 5353 -j ACCEPT<\/p>\n<p>IPv6\u306e\u30de\u30eb\u30c1\u30ad\u30e3\u30b9\u30c8\u30a2\u30c9\u30ec\u30b9\u306f\u30b5\u30fc\u30d3\u30b9\u3054\u3068\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u308b\u306e\u3067mDNS\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305f[ff02:fb]\u3092\u805e\u304f\u69d8\u306b\u30dd\u30fc\u30c8\u3092\u958b\u304f\u3002<\/p>\n<p>\u9762\u5012\u306a\u306e\u3067\u3001avahi-daemon\u306e\u8d77\u52d5\u3068\u30d5\u30a1\u30a4\u30e4\u30fc\u30a6\u30a9\u30fc\u30eb\u30eb\u30fc\u30eb\u306e\u53cd\u6620\u306e\u305f\u3081\u306b\u518d\u8d77\u52d5\u3059\u308c\u3070\u3001\u4ee5\u5f8c\u3001mDNS\u3067\u540d\u524d\u89e3\u6c7a\u3092\u3053\u3053\u308d\u307f\u308b\u3068\u3061\u3083\u3093\u3068\u7b54\u3048\u3066\u304f\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspbian\u30de\u30b7\u30f3\u304c\u6700\u521d\u304b\u3089avahi\u304c\u5165\u3063\u3066\u308b\u304a\u304b\u3052\u3067mDNS\u3067\u540d\u524d\u3092\u89e3\u6c7a\u3057\u3066\u63a5\u7d9a\u3067\u304d\u308b\u306e\u304c\u4fbf\u5229\u306a\u306e\u3067\u3001Debian\u30b5\u30fc\u30d0\u30fc\u3067\u3082mDNS\u3067\u540d\u524d\u304c\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u306bavahi\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002 \u307e\u305a\u306f\u95a2\u9023\u30d1 &hellip; <a href=\"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/2017\/05\/13\/debian-mdns%e3%81%a7%e5%90%8d%e5%89%8d%e8%a7%a3%e6%b1%ba%e3%81%97%e3%81%a6%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Debian mDNS\u3067\u540d\u524d\u89e3\u6c7a\u3057\u3066\u63a5\u7d9a\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-2","ja"],"_links":{"self":[{"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":0,"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bam-system.ddo.jp\/wordpress\/ura\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}