lshw / dnsmasq_route Goto Github PK
View Code? Open in Web Editor NEW根据域名设置路由
License: GNU General Public License v3.0
根据域名设置路由
License: GNU General Public License v3.0
root@liushiwei_home:~# logread -f |dnsmasq_route 8.8.4.4 10.7.0.1
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
sh: can't open CNAME: no such file
sh: can't open CNAME: no such file
RTNETLINK answers: File exists
sh: can't open CNAME: no such file
RTNETLINK answers: File exists
sh: can't open CNAME: no such file
Error: any valid prefix is expected rather than "NODATA-IPv6".
sh: can't open CNAME: no such file
sh: can't open CNAME: no such file
sh: can't open CNAME: no such file
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
sh: can't open CNAME: no such file
sh: can't open CNAME: no such file
sh: can't open CNAME: no such file
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
sh: can't open CNAME: no such file
RTNETLINK answers: File exists
sh: can't open CNAME: no such file
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
将syslog的存储文件自动设置为 /tmp/syslog
把dnsmasq请求日志打开
Wed Jan 5 19:53:47 2022 daemon.info dnsmasq[20294]: 17 192.168.1.101/17315 query[A] www.facebook.com from 192.168.54.101
Wed Jan 5 19:53:47 2022 daemon.info dnsmasq[20294]: 17 192.168.1.101/17315 cached www.facebook.com is <CNAME>
Wed Jan 5 19:53:47 2022 daemon.info dnsmasq[20294]: 17 192.168.1.101/17315 forwarded www.facebook.com to 10.7.0.1
Wed Jan 5 19:53:47 2022 daemon.info dnsmasq[20294]: 17 192.168.1.101/17315 forwarded www.facebook.com to 10.7.0.1
Wed Jan 5 19:53:47 2022 daemon.info dnsmasq[20294]: 17 192.168.1.101/17315 forwarded www.facebook.com to 10.7.0.1
Wed Jan 5 19:53:47 2022 daemon.info dnsmasq[20294]: 17 192.168.1.101/17315 reply www.facebook.com is <CNAME>
Wed Jan 5 19:53:47 2022 daemon.info dnsmasq[20294]: 17 192.168.1.101/17315 reply star-mini.c10r.facebook.com is 157.240.11.35
经过检查, 发现是网卡断线, 造成路由项被清零,
可以用多路由方式, 代替主路由表的方式。
比如建立一个路由表,
ip route add default via {gateway_1} table 107 ; 107路由表
然后把路由项放进这个路由表, 断线就不会清除了。
ip ru add to {remote_ip} lookup 107
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.