{"id":5130,"date":"2022-01-13T13:28:47","date_gmt":"2022-01-13T04:28:47","guid":{"rendered":"https:\/\/akamist.com\/blog\/?p=5130"},"modified":"2022-01-13T13:28:47","modified_gmt":"2022-01-13T04:28:47","slug":"macos-dns%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%af%e3%83%aa%e3%82%a2%e3%81%a8%e3%80%81dns%e3%82%b5%e3%83%bc%e3%83%90%e6%8c%87%e5%ae%9a%e3%81%a7%e5%95%8f%e5%90%88%e3%81%9b","status":"publish","type":"post","link":"https:\/\/akamist.com\/blog\/archives\/5130","title":{"rendered":"[macOS] DNS\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u3068\u3001DNS\u30b5\u30fc\u30d0\u6307\u5b9a\u3067\u554f\u5408\u305b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001macOS\u306b\u3066DNS\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u3084\u3001DNS\u30b5\u30fc\u30d0\u3092\u6307\u5b9a\u3057\u3066IPv4\u306eDNS\u30af\u30a8\u30ea\u3092\u884c\u3046\u4e8b\u304c\u3067\u304d\u307e\u3059<\/p>\n<h2>\u30b3\u30de\u30f3\u30c9<\/h2>\n<ul>\n<li>DNS\u306e\u554f\u3044\u5408\u308f\u305b\u3092\u884c\u3046(IPv4)<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">dig -4 my-domain.example.com\n<\/code><\/pre>\n<ul>\n<li>DNS\u30b5\u30fc\u30d0\u30fc\u3092\u6307\u5b9a\u3057\u3066DNS\u554f\u3044\u5408\u308f\u305b\u3092\u884c\u3046(IPv4)<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">dig -4 @ns-xxx.awsdns-xx.com my-domain.example.com\n<\/code><\/pre>\n<ul>\n<li>DNS\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30af\u30ea\u30a2\u3059\u308b(macOS 10.10.4\u4ee5\u964d\u306e\u5834\u5408)<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">sudo killall -HUP mDNSResponder\n<\/code><\/pre>\n<h2>\u30de\u30cb\u30e5\u30a2\u30eb<\/h2>\n<p>dig\u3068\u3001mDNSResponder\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u629c\u7c8b\u3067\u3059<\/p>\n<pre><code class=\"language-bash\">NAME\n       dig - DNS lookup utility\n\nSYNOPSIS\n       dig [@server] [-b address] [-c class] [-f filename] [-k filename] [-m] [-p port#]\n           [-q name] [-t type] [-v] [-x addr] [-y [hmac:]name:key] [-4] [-6] [name] [type]\n           [class] [queryopt...]\n\n       dig [-h]\n\n       dig [global-queryopt...] [query...]\n\nSIMPLE USAGE\n       A typical invocation of dig looks like:\n\n            dig @server name type\n\n       where:\n\n       server\n           is the name or IP address of the name server to query. This can be an IPv4 address\n           in dotted-decimal notation or an IPv6 address in colon-delimited notation. When the\n           supplied server argument is a hostname, dig resolves that name before querying that\n           name server.\n\n           If no server argument is provided, dig consults \/etc\/resolv.conf; if an address is\n           found there, it queries the name server at that address. If either of the -4 or -6\n           options are in use, then only addresses for the corresponding transport will be\n           tried. If no usable addresses are found, dig will send the query to the local host.\n           The reply from the name server that responds is displayed.\n\n       name\n           is the name of the resource record that is to be looked up.\n\n       type\n           indicates what type of query is required -- ANY, A, MX, SIG, etc.  type can be any\n           valid query type. If no type argument is supplied, dig will perform a lookup for an\n           A record.\n\nOPTIONS\n       -4\n           Use IPv4 only.\n\n\n<\/code><\/pre>\n<p>NAME<br \/>\n     mDNSResponder -- Multicast and Unicast DNS daemon<\/p>\n<p>SYNOPSIS<br \/>\n     mDNSResponder<\/p>\n<p>DESCRIPTION<br \/>\n    mDNSResponder\uff08\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u306fmdnsd\u3068\u3082\u547c\u3070\u308c\u307e\u3059\uff09\u306f\u3001\u30de\u30eb\u30c1\u30ad\u30e3\u30b9\u30c8DNS\u304a\u3088\u3073DNS\u30b5\u30fc\u30d3\u30b9\u30c7\u30a3\u30b9\u30ab\u30d0\u30ea\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u8d77\u52d5\u6642\u306b\u547c\u3073\u51fa\u3055\u308c\u308b\u30c7\u30fc\u30e2\u30f3\u3067\u3059\u3002<br \/>\n    Mac OS X 10.6 (Snow Leopard) \u306e\u5834\u5408\u3001mDNSResponder\u306f\u30b7\u30b9\u30c6\u30e0\u5168\u4f53\u306e\u30e6\u30cb\u30ad\u30e3\u30b9\u30c8DNS\u30ea\u30be\u30eb\u30d0\u3067\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n```<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001macOS\u306b\u3066DNS\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30af\u30ea\u30a2\u3084\u3001DNS\u30b5\u30fc\u30d0\u3092\u6307\u5b9a\u3057\u3066IPv4\u306eDNS\u30af\u30a8\u30ea\u3092\u884c\u3046\u4e8b\u304c\u3067\u304d\u307e\u3059 \u30b3\u30de\u30f3\u30c9 DNS\u306e\u554f\u3044\u5408\u308f\u305b\u3092\u884c\u3046(IPv4) dig -4 my-domain.example [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[149],"tags":[284,286,283,285],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":3575,"url":"https:\/\/akamist.com\/blog\/archives\/3575","url_meta":{"origin":5130,"position":0},"title":"\u304a\u540d\u524d.com\u3067\u30c9\u30e1\u30a4\u30f3\u3092\u767b\u9332\u3057\u305f\u6642\u306bdig\u30b3\u30de\u30f3\u30c9\u3067\u540d\u524d\u89e3\u6c7a\u3092\u78ba\u8a8d\u3059\u308b \u65b9\u6cd5","date":"2019\u5e743\u670816\u65e5","format":false,"excerpt":"\u304a\u540d\u524d.com\u3067\u3001DNS\u306eA\u30ec\u30b3\u30fc\u30c9\u306b\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u306a\u3069\u3092\u767b\u9332\u3057\u305f\u6642\u306b\u3001\u767b\u9332\u304c\u6210\u529f\u3057\u3066\u3044\u308b\u304b\u3092dig\u30b3\u2026","rel":"","context":"\u672a\u5206\u985e","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3284,"url":"https:\/\/akamist.com\/blog\/archives\/3284","url_meta":{"origin":5130,"position":1},"title":"ssh\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u6642\u3001'-i'\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u306e\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u6307\u5b9a\u3092\u7701\u7565\u3059\u308b(ssh_config)","date":"2018\u5e7411\u67084\u65e5","format":false,"excerpt":"ssh\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30ad\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f`~\/.ssh\/id_rsa`\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u2026","rel":"","context":"\u30af\u30e9\u30a6\u30c9","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/09\/icon_ssh.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3583,"url":"https:\/\/akamist.com\/blog\/archives\/3583","url_meta":{"origin":5130,"position":2},"title":"circleci\u30b3\u30de\u30f3\u30c9\u306elocal\u5b9f\u884c\u3067ssh\u30ad\u30fc\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u6e21\u3059","date":"2019\u5e743\u670817\u65e5","format":false,"excerpt":"CircleCI\u3067\u306fcircleci\u30b3\u30de\u30f3\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30fc\u30ab\u30eb\u306ePC\u304b\u3089`.circ\u2026","rel":"","context":"CircleCI","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4867,"url":"https:\/\/akamist.com\/blog\/archives\/4867","url_meta":{"origin":5130,"position":3},"title":"[macOS] Spotlight\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092cli\u3067\u518d\u69cb\u7bc9\u3059\u308b","date":"2021\u5e7412\u670824\u65e5","format":false,"excerpt":"macOS\u3067Spotlight\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u304b\u3089\u518d\u69cb\u7bc9\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u2026","rel":"","context":"\u672a\u5206\u985e","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3190,"url":"https:\/\/akamist.com\/blog\/archives\/3190","url_meta":{"origin":5130,"position":4},"title":"\u30ed\u30ea\u30dd\u30c3\u30d7\u306e\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306bSSH\u30ad\u30fc\u8a8d\u8a3c\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b","date":"2018\u5e748\u670812\u65e5","format":false,"excerpt":"\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u306e\u30ed\u30ea\u30c3\u30dd\u30c3\u30d7\u3067\u306f\u3001\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u30d7\u30e9\u30f3\u4ee5\u4e0a\u3067\u5951\u7d04\u3059\u308b\u3068\u3001ssh\u30ed\u30b0\u30a4\u30f3\u6a29\u9650\u3092\u624b\u306b\u5165\u308c\u308b\u2026","rel":"","context":"\u672a\u5206\u985e","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2018\/07\/icon_lolipop.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":483,"url":"https:\/\/akamist.com\/blog\/archives\/483","url_meta":{"origin":5130,"position":5},"title":"aws-cli\u3092\u4f7f\u3063\u3066\u5168Web\u30b5\u30fc\u30d0\u306b\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b","date":"2017\u5e748\u670824\u65e5","format":false,"excerpt":"\u4eca\u56de\u306f\u3001AWS\u306ecli\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u306eec2\u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u4f8b\u3068\u2026","rel":"","context":"\u672a\u5206\u985e","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/akamist.com\/blog\/wp-content\/uploads\/2017\/08\/180821_4.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/5130"}],"collection":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/comments?post=5130"}],"version-history":[{"count":1,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/5130\/revisions"}],"predecessor-version":[{"id":5131,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/posts\/5130\/revisions\/5131"}],"wp:attachment":[{"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/media?parent=5130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/categories?post=5130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akamist.com\/blog\/wp-json\/wp\/v2\/tags?post=5130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}