GithubHelp home page GithubHelp logo

-dnslist-'s Introduction

dnslist文件更新小脚本

我使用的是项目qiwihui/hiwifi-ss的ss插件,此项目是针对该插件进行dnslist更新的一个小脚本

方法(复制下方代码直接运行)

curl -k -o updatelist.sh https://raw.githubusercontent.com/jndxhuxiehang/-dnslist-/master/updatelist.sh && sh updatelist.sh 

实现方法:

项目的dnslist文件位于路由器路径中的/etc/gw-redsocks/gw-shadowsocks中的"gw-shadowsocks.dnslist” 直接删除掉原dnslist文件,然后从g2w.online/下载对应的数据并保存为gw-shadlwsocks.dnslist(项目使用的是53535端口) 完成执行之后请重启ss

关于自动更新

因为已经下载了脚本文件,所以实际上只需要执行一个定时任务去执行下载过的updatelist.sh脚本就可以更新,再加个定时重启路由器,建议可以将时间设定为不用路由器的时间进行更新和重启工作 关于定时任务的用法见此网站http://man.linuxde.net/crontab

ps

本小白是在接触极路由一天之后开始鼓捣插件,也是第一次接触linux,看了差不多两天的各种教程,勉强懂了一点皮毛,不足之处还请多多指教

-dnslist-'s People

Contributors

jndxhuxiehang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.