{"id":2825,"date":"2023-06-14T16:51:01","date_gmt":"2023-06-14T08:51:01","guid":{"rendered":"http:\/\/www.iooe.cn\/?p=2825"},"modified":"2023-06-14T17:26:05","modified_gmt":"2023-06-14T09:26:05","slug":"openwrt%e4%bf%ae%e5%a4%8dresolv-conf%e9%87%8d%e5%90%af%e5%a4%b1%e6%95%88","status":"publish","type":"post","link":"https:\/\/www.iooe.cn\/index.php\/2023\/06\/14\/openwrt%e4%bf%ae%e5%a4%8dresolv-conf%e9%87%8d%e5%90%af%e5%a4%b1%e6%95%88\/","title":{"rendered":"openwrt\u4fee\u590dresolv.conf\u91cd\u542f\u5931\u6548"},"content":{"rendered":"\n<p>openwrt\u4e0b\u7684\/etc\/resolv.conf \u505a\u4efb\u4f55\u6539\u52a8\u90fd\u4f1a\u88ab\u91cd\u7f6e\u4e3a127.0.0.1<\/p>\n\n\n\n<p>grep -r &#8220;localuse&#8221; \/etc\/init.d<\/p>\n\n\n\n<p>\u4e0a\u9762\u53ef\u4ee5\u770b\u770b\u4e00\u4e2a\u914d\u5236\u6587\u4ef6\u4f1a\u81ea\u52a8\u628a\u5b83\u91cd\u7f6e<\/p>\n\n\n\n<p>\u89e3\u51b3\u529e\u6cd5<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\u662fuci\u547d\u4ee4\u5173\u95edlocaluse<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uci set dhcp.@dnsmasq&#91;0].localuse=\"0\"\nuci commit dhcp\n#\u91cd\u542fdnsmasq\n\/etc\/init.d\/dnsmasq start<\/code><\/pre>\n\n\n\n<p>\u91cd\u65b0\u542f\u52a8\u673a\u5668\u67e5\u770b\u6548\u679c\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u53d1\u73b0resolv.conf\u9ed8\u8ba4\u662f\u8ddf\u968f\/etc\/config\/network\u4e0b\u7684dns\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u8fd8\u662f\u4e0d\u884c\u7684\u8bdd\uff0c\u5c31\u628a\/etc\/resolv.conf \u662f\u8fde\u63a5\u7684\/tmp\/resolv.conf \u8fd9\u4e2a\u7b26\u53f7\u8fde\u63a5\u7ed9\u5220\u9664\u4e86\u3002 <\/p>\n\n\n\n<p>\u5728\u4fee\u6539\uff0c\u5e94\u8be5\u5c31\u4e0d\u4f1a\u4e86\u3002 \u5c31\u662f\u8bf4\u6709\u5730\u65b9\u5728\u4fee\u6539\u90a3\u4e2a\u6587\u4ef6\u3002 <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>openwrt\u4e0b\u7684\/etc\/resolv.conf \u505a\u4efb\u4f55\u6539\u52a8\u90fd\u4f1a\u88ab\u91cd\u7f6e\u4e3a127.0.0.1 grep -r &#8220;localuse&#8221; \/e&#8230; <\/p>\n<div class='button-mores'><a href='https:\/\/www.iooe.cn\/index.php\/2023\/06\/14\/openwrt%e4%bf%ae%e5%a4%8dresolv-conf%e9%87%8d%e5%90%af%e5%a4%b1%e6%95%88\/'> \u9605\u8bfb\u66f4\u591a&#8230; <\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts\/2825"}],"collection":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2825"}],"version-history":[{"count":3,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts\/2825\/revisions"}],"predecessor-version":[{"id":2828,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/posts\/2825\/revisions\/2828"}],"wp:attachment":[{"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iooe.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}