id: 16cedbb46d1c43bd8df6387720bce8b2
parent_id: 
item_type: 1
item_id: 5194c8adaa1d4b2c88d7433a178f0a27
item_updated_time: 1764345576929
title_diff: "[{\"diffs\":[[1,\"巧设DNSmasq，让你的DD-WRT支持翻墙并自动更新的SmartHosts  Seth\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>巧设DNSmasq，让你的DD-WRT支持翻墙并自动更新的SmartHosts | Seth's Blog by hekai</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"application-data:2525275\\\" content=\\\"6692893/s30/e77ee026-cc16-4e1d-86da-c9445e05a03a/app.yinxiang.com\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"13434\\\"></a>\\\r\\\n<h1>巧设DNSmasq，让你的DD-WRT支持翻墙并自动更新的SmartHosts | Seth's Blog by hekai</h1>\\\r\\\n\\\r\\\n<div><span><br/><div style=\\\"font-size: 16px\\\"><div style=\\\"vertical-align:baseline;background:transparent;\\\"><div style=\\\"vertical-align:baseline;background:rgb(243, 243, 243);line-height:180%;color:rgb(51, 51, 51);font-family:Verdana, 'Trebuchet MS', Tahoma, Georgia, Helvetica;font-size:63%;\\\"><div style=\\\"vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/bg_footer.png) 0px 100% no-repeat;\\\"><div style=\\\"vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/bg_middle.png) 0px 0px repeat-y;overflow:hidden;\\\"><div style=\\\"vertical-align:baseline;background:transparent;overflow:hidden;\\\"><div style=\\\"vertical-align:baseline;background:transparent;line-height:180%;font-size:1.2em;\\\">\\\n\\\n\\\n\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px 0px 18px;padding:5px;vertical-align:baseline;background:rgb(246, 246, 246);color:rgb(136, 136, 136);font-size:12px;line-height:18px;overflow:hidden;height:100%;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(229, 229, 229);display:block;\\\">\\\n\\t\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;float:left;width:50%;\\\"><a href=\\\"http://www.blhekai.com/ruanmei-spring-mofang-iphone5.html\\\" rel=\\\"prev\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(136, 136, 136);text-decoration:none;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">←</span> 春心荡漾，软媒抢宝 – 抢你的iPhone5</a></div>\\\n\\t\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;float:right;text-align:right;width:50%;\\\"><a href=\\\"http://www.blhekai.com/xp-start-buffer-overrun-detected-explorer.html\\\" rel=\\\"next\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(136, 136, 136);text-decoration:none;\\\">XP系统，开机出现buffer overrun detected，无法显示桌面的解决方法|Explorer.exe <span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">→</span></a></div>\\\n\\t\\t\\t\\t</div>\\\n\\\n\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px 0px 20px;padding:0px 0px 10px;vertical-align:baseline;background:transparent;position:relative;height:100%;\\\">\\\n\\t\\t\\t\\t\\t<h1 style=\\\"border:0px;margin:0px 0px 20px;padding:0px;vertical-align:baseline;background:transparent;clear:both;font-weight:bold;text-shadow:rgb(221, 221, 221) 0px 0px 1px;color:rgb(85, 85, 85);font-family:Tahoma, 'Trebuchet MS', Verdana, Georgia, Helvetica;line-height:1;font-size:1.3em;margin-bottom:3px;padding-bottom:3px;border-bottom-width:1px;border-bottom-style:none;border-bottom-color:rgb(187, 187, 187);\\\">巧设DNSmasq，让你的DD-WRT支持翻墙并自动更新的SmartHosts</h1>\\\n\\\n\\t\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(136, 136, 136);font-size:12px;\\\">\\\n\\t\\t\\t\\t\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) -780px -61px no-repeat;padding-left:16px;\\\"><a href=\\\"http://www.blhekai.com/dnsmasq-dd-wrt-smarthosts-auto-update.html\\\" rel=\\\"bookmark\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);text-decoration:none;\\\" title=\\\"下午 9:51\\\">2013 年 05 月 27 日</a></span> <span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 0px -62px no-repeat;padding-left:14px;margin-left:12px;\\\"><a href=\\\"http://www.blhekai.com/author/seth\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);text-decoration:none;\\\" title=\\\"查看 Seth 的所有文章\\\">Seth</a></span> <span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) -213px -62px no-repeat;margin-left:12px;padding-left:16px;\\\"><a href=\\\"http://www.blhekai.com/technical-essay/internet-and-cisco\\\" rel=\\\"category tag\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);text-decoration:none;\\\">Internet &amp; Cisco</a></span>\\t\\t\\t\\t\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 0px -121px no-repeat;position:absolute;top:21px;right:0px;padding-left:16px;\\\"><a href=\\\"http://www.blhekai.com/dnsmasq-dd-wrt-smarthosts-auto-update.html#comments\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);text-decoration:none;\\\">Go to comment</a></span>\\\n\\t\\t\\t\\t\\t</div>\\\n\\\n\\t\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:12px 0px 0px;vertical-align:baseline;background:transparent;clear:both;\\\">\\\n\\t\\t\\t\\t\\t\\t<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">SmartHosts是一个托管在谷歌代码上的项目，您可以轻松利用此项目使用到一份稳定的Hosts文件。这份Hosts文件可以帮助您顺利打开一些网站，提高某些国外服务的打开或下载速度。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">本文主要介绍在DD-WRT路由器上如何设置，使DNSmasq可以使用SmartHosts项目的hosts表，并每日自动更新。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">这样一来，如果家里有多种上网客户端，一次设置就能一劳永逸，不需要在每台电脑上、Android、iPhone、iPad等设备上单独修改hotsts文件了。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">也免去了Root Android设备，越狱IOS设备的麻烦和风险。轻松在所有接入路由器的设备上访问Twitter、Facebook等网站。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;text-align:center;\\\">笔者测试的路由器是Buffalo的WZR-HP-G300NH2</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;text-align:center;\\\">固件为DD-WRT<b style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"> </b>v24-sp2 (03/25/13) std (<em style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-style:italic;\\\">SVN revision</em> 21061)）<b style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"></b></p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;text-align:center;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"></span></p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:#ff0000;\\\"><b style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">首先介绍直接使用SmartHosts项目的dnsmasq.conf文件。</b></span></p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">1.打开服务页面，在DNSMasq 附加选项框中输入以下内容并保存</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">conf-file=/tmp/smarthosts.conf</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">作用是设置导入SmartHosts的DNSmasq配置文件路径</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">2.在管理-命令页面的指令解释器中输入</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">touch /tmp/smarthosts.conf</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">然后保存为启动指令。目的是在启动过程中自动创建一个空白的配置文件供DNSmasq导入，否则将会产生bug，造成的后果包括不能上网、无法在路由器端使用wget命令</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">3.在指令解释器中输入</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">#!/bin/sh<br/>\\\ntouch /tmp/smarthosts.conf.tmp<br/>\\\nuntil [ “`cat /tmp/smarthosts.conf.tmp|grep -c address=/`” != 0 ];do<br/>\\\nsleep 15<br/>\\\nwget http://smarthosts.googlecode.com/svn/trunk/dnsmasq.conf -O /tmp/smarthosts.conf.tmp<br/>\\\ndone<br/>\\\nmv /tmp/smarthosts.conf.tmp /tmp/smarthosts.conf<br/>\\\nstopservice dnsmasq &amp;&amp; startservice dnsmasq</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">保存为自定义指令。这段代码的作用是自动下载最新的SmartHosts项目的DNSmasq配置文件，并自动检查是否下载成功，如果不成功每隔15秒重新下载一次并检查，直到下载成功为止，然后自动载入该配置文件。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">4.在指令解释器中输入</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">/tmp/custom.sh</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">保存为防火墙指令，作用是运行上一步生成的自定义指令。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">全部操作完成以后重启路由器，稍等两分钟即可自动完成DNSmasq的配置。可使用以下命令检测是否成功下载到配置文件</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">cat /tmp/smarthosts.conf</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">如果显示的和SmartHosts项目的DNSmasq配置文件一样则表示配置成功。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">5.配置每天凌晨3点自动更新<br/>\\\n首先必须在管理页面中启用Cron，然后在Cron 附加任务中输入以下内容并保存。</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">0 3 * * * root /tmp/custom.sh</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">如果想更改更新周期，请自行查阅Cron计划任务的配置方法</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:#ff0000;\\\"><b style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">推荐：由于SmartHosts项目的dnsmasq.conf文件更新比较缓慢，下面介绍直接使用更新较快的Hosts文件的方法</b></span><br/>\\\n<b style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"><br/>\\\n</b>1.打开服务页面，在DNSMasq 附加选项框中输入</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">addn-hosts=/tmp/smarthosts.hosts</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">2.在管理-命令页面的指令解释器中输入</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">touch /tmp/smarthosts.hosts</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">然后保存为启动指令。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">3.在指令解释器中输入</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">#!/bin/sh<br/>\\\ntouch /tmp/smarthosts.hosts.tmp<br/>\\\nuntil [ “`cat /tmp/smarthosts.hosts.tmp|grep -c SmartHosts`” != 0 ];do<br/>\\\nsleep 15<br/>\\\nwget http://smarthosts.googlecode.com/svn/trunk/hosts -O /tmp/smarthosts.hosts.tmp<br/>\\\ndone<br/>\\\nmv /tmp/smarthosts.hosts.tmp /tmp/smarthosts.hosts<br/>\\\nstopservice dnsmasq &amp;&amp; startservice dnsmasq</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">保存为自定义指令。</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">4.在指令解释器中输入</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">/tmp/custom.sh</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">保存为防火墙指令</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">5.配置每天凌晨3点自动更新<br/>\\\n首先必须在管理页面中启用Cron，然后在Cron 附加任务中输入以下内容并保存。</p>\\\n<blockquote style=\\\"border:1px solid rgb(208, 208, 208);margin:0px 0px 20px;padding:15px 10px 10px 45px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) 14px -175px no-repeat rgb(240, 240, 240);quotes:none;color:rgb(102, 102, 102);\\\"><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:0px;\\\">0 3 * * * root /tmp/custom.sh</p><span style=\\\"quotes:none;color:rgb(102, 102, 102);\\\"></span></blockquote>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">===========================================================</p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">如果重启后路由器并未更新hosts，可以telnet或者SSH到路由器上，单独一行行执行上述自定义指令。\\\n</p><div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-top:15px;font-style:italic;\\\">\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\"><strong style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-weight:bold;\\\">原创文章，转载请注明：</strong> 转载自<a href=\\\"http://www.blhekai.com/\\\" style=\\\"border:0px;margin:0px;padding:0px 1px 1px;vertical-align:baseline;background:transparent;color:rgb(191, 81, 76);text-decoration:none;\\\">Seth's Blog by hekai</a></p>\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\"><strong style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-weight:bold;\\\">本文链接地址:</strong> <a href=\\\"http://www.blhekai.com/dnsmasq-dd-wrt-smarthosts-auto-update.html\\\" style=\\\"border:0px;margin:0px;padding:0px 1px 1px;vertical-align:baseline;background:transparent;color:rgb(191, 81, 76);text-decoration:none;\\\">巧设DNSmasq，让你的DD-WRT支持翻墙并自动更新的SmartHosts</a></p>\\\n</div>\\\n<div style=\\\"border:0px;margin:1em 0px;padding:0px;vertical-align:baseline;background:transparent;\\\">\\\n<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:20px;\\\">No related posts.</p>\\\n<img src=\\\":/9fc16267369b47f18a41e4b90e8b3e5a\\\" type=\\\"image/gif\\\" data-filename=\\\"c67d1a8b7e88726a0d68a09013a0623d.gif\\\" alt=\\\"YARPP\\\" height=\\\"1\\\" style=\\\"border:1px solid rgb(181, 181, 181);margin:0px;padding:4px;vertical-align:baseline;background:rgb(227, 227, 227);height:auto;max-width:570px;width:auto;\\\" width=\\\"1\\\"/>\\\n</div>\\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\\n\\\n\\\n\\t\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;clear:both;color:rgb(119, 142, 142);font-size:12px;line-height:18px;\\\">\\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:url(http://www.blhekai.com/wp-content/themes/g-white/images/sprite.gif) -1133px -61px no-repeat;padding-left:16px;\\\">\\\n\\t\\t\\t\\t\\t\\t\\t<a href=\\\"http://www.blhekai.com/tag/dd-wrt\\\" rel=\\\"tag\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);text-decoration:none;\\\">DD-WRT</a>, <a href=\\\"http://www.blhekai.com/tag/dnsmasq\\\" rel=\\\"tag\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);text-decoration:none;\\\">DNSMasq</a>, <a href=\\\"http://www.blhekai.com/tag/smarthosts\\\" rel=\\\"tag\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);text-decoration:none;\\\">SmartHosts</a>\\t\\t\\t\\t\\t\\t</span>\\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t</div>\\\n\\t\\t\\t\\t</div>\\\n\\\n\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px 0px 18px;padding:5px;vertical-align:baseline;background:rgb(246, 246, 246);color:rgb(136, 136, 136);font-size:12px;line-height:18px;overflow:hidden;height:100%;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(229, 229, 229);\\\">\\\n\\t\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;float:left;width:50%;\\\"><a href=\\\"http://www.blhekai.com/ruanmei-spring-mofang-iphone5.html\\\" rel=\\\"prev\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(136, 136, 136);text-decoration:none;\\\"><span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">←</span> 春心荡漾，软媒抢宝 – 抢你的iPhone5</a></div>\\\n\\t\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;float:right;text-align:right;width:50%;\\\"><a href=\\\"http://www.blhekai.com/xp-start-buffer-overrun-detected-explorer.html\\\" rel=\\\"next\\\" style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(136, 136, 136);text-decoration:none;\\\">XP系统，开机出现buffer overrun detected，无法显示桌面的解决方法|Explorer.exe <span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">→</span></a></div>\\\n\\t\\t\\t\\t</div>\\\n\\t\\t\\t\\t\\\n\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;clear:both;overflow:hidden;height:1%;\\\">\\\n\\\n\\\n\\t\\t\\t<h3 style=\\\"border:0px;margin:0px 0px 20px;padding:24px 0px 15px 10px;vertical-align:baseline;background:transparent;clear:both;font-weight:bold;text-shadow:rgb(221, 221, 221) 0px 0px 1px;color:rgb(85, 85, 85);font-family:Tahoma, 'Trebuchet MS', Verdana, Georgia, Helvetica;line-height:1.5em;font-size:1.4em;margin-bottom:0px;\\\">有 1 条《巧设DNSmasq，让你的DD-WRT支持翻墙并自动更新的SmartHosts》的回复</h3>\\\n\\\n\\t\\t\\t<ol style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;list-style:none;margin-bottom:20px;\\\">\\\n\\t\\t\\t\\t\\t<li style=\\\"border:0px;margin:0px;padding:17px 0px 5px;vertical-align:baseline;background:rgb(245, 245, 245);border-bottom-width:1px;border-bottom-style:none;border-bottom-color:rgb(233, 233, 233);line-height:24px;margin-bottom:0px;\\\">\\\n\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"><div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;position:relative;\\\">\\\n\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px 0px 0px 75px;vertical-align:baseline;background:transparent;\\\">\\\n\\t\\t\\t<img alt=\\\"\\\" height=\\\"40\\\" src=\\\"\\\" style=\\\"border:1px solid rgb(187, 187, 187);margin:0px;padding:5px;vertical-align:baseline;background:rgb(233, 233, 233);position:absolute;top:0px;left:15px;box-shadow:rgb(187, 187, 187) 0px 0px 3px;-webkit-box-shadow:rgb(187, 187, 187) 0px 0px 3px;\\\" width=\\\"40\\\"></img>\\t\\t\\t<cite style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-style:normal;font-weight:bold;color:rgb(136, 136, 136);\\\">mj</cite>\\t\\t\\t\\t\\t\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(136, 136, 136);\\\"> | </span>\\\n\\t\\t\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"><a href=\\\"http://www.blhekai.com/dnsmasq-dd-wrt-smarthosts-auto-update.html#comment-7413\\\" style=\\\"border:0px;margin:0px;padding:0px 1px 1px;vertical-align:baseline;background:transparent;color:rgb(102, 102, 102);text-decoration:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(170, 170, 170);\\\">#1</a></span>\\\n\\t\\t\\t\\t\\t</div>\\\n\\\n\\t\\t<div style=\\\"border:0px;margin:0px 0px 10px;padding:0px 0px 0px 75px;vertical-align:baseline;background:transparent;\\\"><a href=\\\"http://www.blhekai.com/dnsmasq-dd-wrt-smarthosts-auto-update.html#comment-7413\\\" style=\\\"border:0px;margin:0px;padding:0px 1px 1px;vertical-align:baseline;background:transparent;color:rgb(136, 136, 136);text-decoration:none;\\\">\\\n\\t\\t\\tOn 2013 年 06 月 07 日 下午 10:34</a>\\t\\t</div>\\\n\\\n\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px 18px;vertical-align:baseline;background:transparent;\\\">\\\n\\t\\t\\t\\t\\t\\t<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;margin-bottom:6px;\\\">你好！我的无线共享出现错误，代码1061，魔方版本3.39正式版。求解决。我是看了你的这个帖子才找到这的。http://bbs.ithome.com/thread-471964-1-1.html</p>\\\n\\t\\t</div>\\\n\\\n\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-size:12px;position:absolute;top:24px;right:18px;\\\">\\\n\\t\\t\\t<a href=\\\"http://www.blhekai.com/dnsmasq-dd-wrt-smarthosts-auto-update.html?replytocom=7413#respond\\\" style=\\\"border:0px;margin:0px;padding:0px 1px 1px;vertical-align:baseline;background:transparent;color:rgb(102, 102, 102);text-decoration:none;\\\">回复</a>\\t\\t</div>\\\n\\t</div></div>\\\n\\\n\\t</li>\\\n\\t\\t\\t</ol>\\\n\\\n\\t\\t\\\n\\t\\t\\t\\\n\\\n\\\n<div style=\\\"border:0px;margin:20px 0px;padding:0px;vertical-align:baseline;background:transparent;padding-left:2px;overflow:hidden;position:relative;\\\">\\\n\\t<h3 style=\\\"border:0px;margin:5px 0px 15px;padding:0px;vertical-align:baseline;background:transparent;clear:both;font-weight:bold;text-shadow:rgb(221, 221, 221) 0px 0px 1px;color:rgb(85, 85, 85);font-family:Tahoma, 'Trebuchet MS', Verdana, Georgia, Helvetica;line-height:1.5em;\\\">发表评论</h3>\\\n\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">\\\n\\t\\t<small style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-size:0.8em;\\\"></small>\\\n\\t</div>\\\n\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-size:1em;color:rgb(85, 85, 85);\\\">\\\n\\t\\t\\t\\t<div style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;overflow:hidden;\\\">\\\n\\t\\t<p style=\\\"border:0px;margin:0px 0px 9px;padding:0px;vertical-align:baseline;background:transparent;clear:left;height:1%;overflow:hidden;\\\">\\\n\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);float:left;margin-left:5px;line-height:25px;\\\">姓名 (required)</span></p>\\\n\\t\\t<p style=\\\"border:0px;margin:0px 0px 9px;padding:0px;vertical-align:baseline;background:transparent;clear:left;height:1%;overflow:hidden;\\\">\\\n\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);float:left;margin-left:5px;line-height:25px;\\\">电子邮件（不会被公开） (required)</span></p>\\\n\\t\\t<p style=\\\"border:0px;margin:0px 0px 9px;padding:0px;vertical-align:baseline;background:transparent;clear:left;height:1%;overflow:hidden;\\\">\\\n\\t\\t<span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;color:rgb(119, 119, 119);float:left;margin-left:5px;line-height:25px;\\\">站点</span></p>\\\n\\t\\t</div>\\\n\\t\\t\\t\\t\\\n\\\n\\t\\t<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;clear:left;\\\"></p>\\\n\\t\\t<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\">\\\n\\t\\t\\\n\\\n\\t\\t</p>\\\n\\t\\t<p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"> <span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;display:inline;color:rgb(119, 119, 119);\\\">通过邮件通知我后续评论</span></p><p style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;\\\"> <span style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;display:inline;color:rgb(119, 119, 119);\\\">通过邮件通知我有新文章</span></p>\\t</div><strong style=\\\"border:0px;margin:0px;padding:0px;vertical-align:baseline;background:transparent;font-weight:bold;\\\">NOTICE:</strong> You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!\\\n</div>\\\n\\\n</div>\\\n\\\n\\t\\t\\t</div></div></div></div></div></div></div><br/></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":28579}]"
metadata_diff: {"new":{"id":"5194c8adaa1d4b2c88d7433a178f0a27","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348850260,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:04:34.580Z
created_time: 2025-11-28T21:04:34.580Z
type_: 13