{"id":117,"date":"2021-04-18T23:03:02","date_gmt":"2021-04-18T14:03:02","guid":{"rendered":"https:\/\/auto.meto4d.pgw.jp\/blog\/?p=117"},"modified":"2021-12-21T21:04:56","modified_gmt":"2021-12-21T12:04:56","slug":"archlinux%e3%81%aenetctl%e3%82%84%e3%82%89resolvconf%e3%82%84%e3%82%89%e3%81%ae%e8%a8%ad%e5%ae%9a%e5%b0%8f%e8%a9%b1","status":"publish","type":"post","link":"https:\/\/auto.meto4d.pgw.jp\/blog\/?p=117","title":{"rendered":"Archlinux\u306enetctl\u3084\u3089resolvconf\u3084\u3089\u306e\u8a2d\u5b9a\u5c0f\u8a71"},"content":{"rendered":"\n<p>resolv.conf\u3067\u306f\u306a\u3044<br>resolvconf\u306e\u8a2d\u5b9a<br>\u77e5\u3089\u306a\u304b\u3063\u305f\u3053\u3093\u306a\u306e<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2>\u80cc\u666f<\/h2>\n\n\n\n<p>\u3046\u3061\u3067\u4f7f\u3063\u3066\u3044\u308bDNS\u30b5\u30fc\u30d0\u306f<a href=\"https:\/\/www.mydns.jp\/\">MyDNS<\/a><br>MyDNS\u3055\u3093\u306f\u975e\u5e38\u306b\u512a\u79c0\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u306e\u901a\u77e5\u304c\u4e00\u5b9a\u671f\u9593\u306a\u3044\u3068\u30a2\u30e9\u30fc\u30c8\u30e1\u30fc\u30eb\u304c\u98db\u3093\u3067\u304f\u308b\u3002<br>\u7121\u6599\u3067\u30a2\u30e9\u30fc\u30c8\u30e1\u30fc\u30eb\u307e\u3067\u304f\u308c\u308b\u306e\u306f\u3059\u3054\u304f\u5b09\u3057\u3044<br>\u3061\u306a\u307f\u306b\u30a2\u30e9\u30fc\u30c8\u30e1\u30fc\u30eb\u306f\u3053\u3093\u306a\u611f\u3058<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/auto.meto4d.pgw.jp\/blog\/wp-content\/uploads\/2021\/04\/2021-04-18_735.jpg\" alt=\"\" class=\"wp-image-121\" width=\"323\" height=\"448\" srcset=\"https:\/\/auto.meto4d.pgw.jp\/blog\/wp-content\/uploads\/2021\/04\/2021-04-18_735.jpg 524w, https:\/\/auto.meto4d.pgw.jp\/blog\/wp-content\/uploads\/2021\/04\/2021-04-18_735-216x300.jpg 216w\" sizes=\"(max-width: 323px) 85vw, 323px\" \/><figcaption>MyDNS\u304b\u3089\u306e\u30e1\u30fc\u30eb\u753b\u9762<\/figcaption><\/figure>\n\n\n\n<p>\u3053\u306eDNS\u66f4\u65b0\u304c\u3067\u304d\u3066\u3044\u306a\u3044\u3053\u3068\u3068\u3001resolvconf\u306f\u4f55\u304c\u95a2\u4fc2\u3042\u308b\u3093\u3060\u3063\u3066\u3053\u3068\u3060\u3051\u3069\u3001<br>cron\u306b\u767b\u9332\u3057\u305fperl script(register_ip.pl)\u3067DNS\u66f4\u65b0\u3092\u884c\u3063\u3066\u3044\u308b\u3002<br>\u3053\u306eregister_ip.pl\u3067\u306f\u3001DNS\u3092\u89e3\u6c7a\u3057\u3066\u3001\u767b\u9332IP\u3068\u73feIP\u3092\u6bd4\u8f03\u3057\u3001\u9055\u3063\u305f\u3089\u767b\u9332\u3068\u3044\u3046\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u3002<br>\u7279\u306bIPv6\u3068\u3044\u3046\u304b\u3001A\u3068AAAA\u3092\u767b\u9332\u3057\u3066\u3044\u308bauto.meto4d\u30c9\u30e1\u30a4\u30f3\u3092\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\u306f\u3001DNS Resolv\u306e\u3042\u305f\u308a\u306e\u51e6\u7406\u3092\u3057\u3063\u304b\u308a\u884c\u308f\u306a\u3044\u3068\u3067\u304d\u306a\u3044\u3002<br>\u305d\u3053\u3067\u3001\u767b\u9332IP\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306bNet::DNS::Resolver\u3092\u52d5\u304b\u3057\u3066\u5f97\u308b\u306e\u3060\u304c\u3001\u3082\u3068\u3082\u3068\u306eresolv\u304c\u52d5\u3044\u3066\u3044\u306a\u3044\u3068\u5931\u6557\u3059\u308b\u3002<br>\u3057\u304b\u3082\u3053\u306e\u30a8\u30e9\u30fc\u6587\u304cNet::DNS\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3069\u3046\u3068\u304b\u3053\u3046\u3068\u304b\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3067\u3001DNS Resolve\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u3068\u3044\u3046\u30a8\u30e9\u30fc\u3092\u51fa\u3057\u3066\u304f\u308c\u306a\u3044\u306e\u3067\u3001\u6570\u30f6\u6708\u524d\u306b\u82e6\u52b4\u3057\u305f\u3053\u3068\u304c\u3042\u3063\u305f\u3002<br>\u306a\u3093\u304b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u304a\u304b\u3057\u3044\u3068\u60f3\u3044\u3064\u3064\u3001ssh\u3067\u4ed6\u306e\u30de\u30b7\u30f3\u306b\u3064\u306a\u3052\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306bresolv.conf\u304c\u3069\u3046\u3082\u304a\u304b\u3057\u3044\u3068\u3001\u3084\u3063\u3068\u5224\u660e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u666e\u901a(?)\u306f\/etc\/resolv.conf\u3092\u7de8\u96c6<br>nameserver\u304c<code>192.168.xx.18.8.8.8<\/code><br>192.168.xx.1\u30688.8.8.8\u304c192.168.xx.18.8.8.8\u3068typo<br>\u3053\u308c\u3092\u76f4\u3057\u3066\u7d42\u308f\u308a<br>\u3060\u304c\u305d\u3046\u3058\u3083\u306a\u304b\u3063\u305f\u3001<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% cat \/etc\/resolv.conf\n# Generated by resolvconf\nnameserver 192.168.xx.18.8.8.8<\/pre><\/div>\n\n\n\n<p>resolvconf\uff1f\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u3089\u3057\u3044<br>\u78ba\u304b\u306b\u3001\/etc\/resolv.conf\u3092\u7de8\u96c6\u3057\u305f\u5f8c\u306b\u518d\u8d77\u52d5\u3059\u308b\u3068\u3001\u307e\u305f\u9593\u9055\u3063\u305fresolv.conf\u304c\u6d41\u3055\u308c\u3066\u3044\u308b<br>resolvconf\u3067\u5909\u66f4\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u3089\u3057\u3044<br>\u305d\u3082\u305d\u3082resolvconf\u3068\u3084\u3089\u3092\u898b\u308b\u306e\u306f\u59cb\u3081\u3066\u3060\u3057\u3001\u3061\u3087\u3063\u3068\u8abf\u3079\u305f\u3068\u3044\u3046\u96d1\u8a18<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 id=\"block-bbbea4ff-497b-4d59-8550-24845b863d10\">resolvconf\u3068\u306f<\/h2>\n\n\n\n<p id=\"block-2210313f-d226-4eb6-aca6-fe105bb3b566\">\u3044\u3064\u3082\u5927\u5909\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u304a\u308a\u307e\u3059\u3002<br>Archlinux wiki\u304b\u3089<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><a href=\"https:\/\/www.archlinux.jp\/packages\/?name=openresolv\">openresolv<\/a>&nbsp;\u306b\u306f&nbsp;<em>resolvconf<\/em>&nbsp;\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u8907\u6570\u306e DNS \u8a2d\u5b9a\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002\u8a73\u3057\u304f\u306f&nbsp;<code>man 8 resolvconf<\/code>&nbsp;\u3084&nbsp;<code>man 5 resolvconf.conf<\/code>&nbsp;\u3092\u898b\u3066\u4e0b\u3055\u3044\u3002<\/p><cite><em><a href=\"https:\/\/wiki.archlinux.jp\/index.php\/%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%E5%90%8D%E5%89%8D%E8%A7%A3%E6%B1%BA#openresolv_.E3.82.92.E4.BD.BF.E3.81.86\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/wiki.archlinux.jp\/index.php\/%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%E5%90%8D%E5%89%8D%E8%A7%A3%E6%B1%BA#openresolv_.E3.82.92.E4.BD.BF.E3.81.86<\/a><\/em><\/cite><\/blockquote>\n\n\n\n<p id=\"block-73a7f8ce-876a-4834-b9b3-9ca6492d461f\">\u305d\u3082\u305d\u3082\u8ad6\u3068\u3057\u3066\u3001\u81ea\u5206\u304c\u4f53\u9a13\u3057\u3066\u3044\u305f\u4e0d\u5177\u5408\u306e\u3088\u3046\u306b\u3001\/etc\/resolv.conf\u306f\u5f71\u97ff\u304c\u3067\u304b\u3044conf\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u3002<br>\u305d\u306e\u305f\u3081\u3001openresolv\u306a\u3069\u3067\u5b89\u5168\u306b\u5909\u66f4\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306a\u3063\u3066\u3044\u308b<\/p>\n\n\n\n<p>\u5b89\u5168\u306b\u5909\u66f4\u3055\u308c\u3066\u3078\u3093\u3084\u3093\u304b<\/p>\n\n\n\n<p>resolvconf\u306econf\u3067\u3042\u308bresolvconf.conf\u306f\/etc\/resolvconf.conf\u306b\u3042\u308b<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% cat \/etc\/resolvconf.conf \n# Configuration for resolvconf(8)\n# See resolvconf.conf(5) for details\n\nresolv_conf=\/etc\/resolv.conf\n# If you run a local name server, you should uncomment the below line and\n# configure your subscribers configuration files below.\n#name_servers=127.0.0.1<\/pre><\/div>\n\n\n\n<p>\u306a\u3093\u3082\u8a2d\u5b9a\u3055\u308c\u3066\u306d\u3048<br>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b\u3002<br>resolvconf\u306e\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u3093\u3067\/etc\/resolv.conf\u306b\u9069\u7528\u3059\u308b\u306b\u306f<code># resolvconf -u<\/code><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% sudo vim \/etc\/resolv.conf\n\u2192\u9069\u5f53\u306b\u5909\u3048\u308b\n% cat \/etc\/resolv.conf\n# Generated by resolvconf\nnameserver 192.168.xx.1\nnameserver 8.8.4.4\n\n% sudo resolvconf -u\n\u2192\u9069\u7528\u3055\u305b\u308b\n% cat \/etc\/resolv.conf\n# Generated by resolvconf\nnameserver 192.168.xx.18.8.8.8\n\u2192\u5143\u306e\u9593\u9055\u3063\u305f\u8a2d\u5b9a\u306b\u623b\u3063\u3066\u3044\u308b<\/pre><\/div>\n\n\n\n<p>resolvconf\u81ea\u4f53\u306f<code>\/run\/resolvconf\/interface\/nic0<\/code>\u3092\u53c2\u7167\u3057\u3066resolv.conf\u3092\u751f\u6210\u3057\u3066\u3044\u308b\u3089\u3057\u3044<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% cat \/run\/resolvconf\/interfaces\/eth0\n\n\nnameserver 192.168.xx.18.8.8.8\n\u2192\u306a\u3093\u304b\u308f\u304b\u3089\u3093\u6539\u884c\u304c\u591a\u3044\u304c\u3001\u7de8\u96c6\u3059\u308b\n% sudo vim \/run\/resolvconf\/interfaces\/eth0\n% cat \/run\/resolvconf\/interfaces\/eth0     \nnameserver 192.168.xx.1\nnameserver 8.8.8.8\n\n% cat \/etc\/resolv.conf\n# Generated by resolvconf\nnameserver 192.168.xx.18.8.8.8\n\n% sudo resolvconf -u\n% cat \/etc\/resolv.conf\n# Generated by resolvconf\nnameserver 192.168.xx.1\nnameserver 8.8.8.8\n\u2192\u3068\u308a\u3042\u3048\u305aresolvconf\u7d4c\u7531\u3067\u306f\/run\/resolvconf\u3092\u898b\u3066\u3044\u308b\u3089\u3057\u3044<\/pre><\/div>\n\n\n\n<p>\u305d\u3082\u305d\u3082\u8ad6\u3068\u3057\u3066\/run\/\u3092\u7de8\u96c6\u3059\u308b\u306e\u306f\u304a\u304b\u3057\u3044<br>\u5b9f\u969b\u3001\u518d\u8d77\u52d5\u3059\u308b\u3068\/run\/resolvconf\/\u304c\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u305f<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% cat \/run\/resolvconf\/interfaces\/eth0\nnameserver 192.168.xx.1\nnameserver 8.8.8.8\n\n% sudo reboot now\n\n% cat \/run\/resolvconf\/interfaces\/eth0\nnameserver 192.168.xx.18.8.8.8<\/pre><\/div>\n\n\n\n<p>resolvconf\u306f\/run\/resolvconf\/\u3092\u53c2\u7167\u3057\u3066\/etc\/resolv.conf\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001\/run\/resolvconf\/\u306f\u3069\u3053\u3092\u53c2\u7167\u3057\u3066\u4f5c\u3089\u308c\u3066\u3044\u308b\u304b\u304c\u308f\u304b\u3089\u306a\u3044<br>interfaces\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001nic\u5468\u308a\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001\u3001man\u898b\u3066\u3082\u3001\u8abf\u3079\u3066\u3082\u3088\u304f\u308f\u304b\u3089\u306a\u3044<\/p>\n\n\n\n<p>nic\u304b\u3089\u3068\u3044\u3046\u3053\u3068\u306f\u3001\u3082\u3057\u304b\u3057\u305f\u3089netctl\u3067\u5b9a\u7fa9\u3057\u305fnic\u306eDNS\u3092\u53c2\u7167\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% grep -i dns \/etc\/netctl\/eth0\nDNS=('192.168.xx.1''8.8.8.8')\n<\/pre><\/div>\n\n\n\n<p>\u3059\u3063\u3054\u3044\u602a\u3057\u3044<br>\u8abf\u3079\u305f\u3089\u6b63\u3057\u3044\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u3060<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">DNS=('192.168.xx.1', '8.8.8.8')\n\u2192\u30b3\u30f3\u30de\u304c\u306a\u3044<\/pre><\/div>\n\n\n\n<p>\u7279\u306b\u51fa\u3066\u3053\u306a\u304b\u3063\u305f\u304c\u3001netctl\u2192resolvconf\u3067\/etc\/resolv.conf\u3092\u7ba1\u7406\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b<\/p>\n\n\n\n<p>\u8a66\u3057\u306b\u5909\u66f4\u3057\u3066reboot\u3057\u3066\u307f\u308b<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% grep -i dns \/etc\/netctl\/eth0\nDNS=('192.168.xx.1','8.8.8.8')\n\n% sudo reboot now\n\n% cat \/etc\/resolv.conf\n# Generated by resolvconf\nnameserver 192.168.xx.1,8.8.8.8<\/pre><\/div>\n\n\n\n<p>\u3069\u3046\u3082\u305d\u3046\u307f\u305f\u3044\u3060<br>\u3067\u3082<code>nameserver 192.168.xx.1,8.8.8.8<\/code>\u306f\u3060\u3081<br>\u5b89\u5168\u306b\u5909\u66f4\u3057\u3066\u304f\u308c\u3088<\/p>\n\n\n\n<p>\u3069\u3046\u3082\u5358\u7d14\u306a\u69cb\u6587\u89e3\u6790\u3057\u304b\u3057\u3066\u306a\u3044\u3088\u3046\u3060<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:false,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:true,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">% grep -i dns \/etc\/netctl\/eth0\nDNS=('192.168.xx.1','8.8.8.8')\n\u2193\n% grep -i nameserver \/etc\/resolv.conf\nnameserver 192.168.xx.1,8.8.8.8\n\n% grep -i dns \/etc\/netctl\/eth0\nDNS=('192.168.xx.1' '8.8.8.8')\n\u2193\n% grep -i nameserver \/etc\/resolv.conf\nnameserver 192.168.xx.1\nnameserver 8.8.8.8<\/pre><\/div>\n\n\n\n<p>\u306a\u308b\u307b\u3069\u306a\u3042<\/p>\n\n\n\n<h2>\u307e\u3068\u3081<\/h2>\n\n\n\n<p>netctl \u306eDNS\u306f&#8217;\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8&#8217;\u3067\u631f\u3093\u3067\u3001\u9593\u306b\u30b9\u30da\u30fc\u30b9\u304c\u5fc5\u8981<br>\u9593\u306b\u30b3\u30ed\u30f3,\u3084\u3089\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u305d\u306e\u307e\u307e\u4ee3\u5165\u3055\u308c\u308b<br>\u30b9\u30da\u30fc\u30b9\u304c\u3042\u308b\u3053\u3068\u3067\u59cb\u3081\u3066nameserver\u304c\u5206\u5272\u3055\u308c\u308b<br>resolvconf\u306f\u5b89\u5168\u306b\u5909\u66f4\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af(\u758e\u901a\u78ba\u8a8d\u306f\u3061\u3083\u3093\u3068\u884c\u308f\u306a\u3044)<\/p>\n\n\n\n<p>\u3053\u308c\u3067\u3084\u3063\u3068\u518d\u8d77\u52d5\u3057\u3066\u3082\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e0d\u901a\u554f\u984c\u306f\u306a\u304f\u306a\u3063\u305f\u3067\u3057\u3087\u3046<br>\u305f\u3076\u3093<\/p>\n","protected":false},"excerpt":{"rendered":"<p>resolv.conf\u3067\u306f\u306a\u3044resolvconf\u306e\u8a2d\u5b9a\u77e5\u3089\u306a\u304b\u3063\u305f\u3053\u3093\u306a\u306e<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,13,5],"tags":[],"views":2344,"_links":{"self":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/117"}],"collection":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":12,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":244,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions\/244"}],"wp:attachment":[{"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto.meto4d.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}