V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lovelylain  ›  全部回复第 20 页 / 共 45 页
回复总数  897
1 ... 16  17  18  19  20  21  22  23  24  25 ... 45  
353 天前
回复了 idc123 创建的主题 问与答 DNS 是怎么了吗? 114 的
@wowofe dnsmasq
--server=[/[<domain>]/[domain/]][<server>[#<port>]][@<interface>][@<source-ip>[#<port>]]
Specify upstream servers directly. Setting this flag does not suppress reading of /etc/resolv.conf, use --no-resolv to do that. If one or more optional domains are given, that server is used only for those domains and they are queried only using the specified server. This is intended for private nameservers: if you have a nameserver on your network which deals with names of the form xxx.internal.thekelleys.org.uk at 192.168.1.1 then giving the flag --server=/internal.thekelleys.org.uk/192.168.1.1 will send all queries for internal machines to that nameserver, everything else will go to the servers in /etc/resolv.conf. DNSSEC validation is turned off for such private nameservers, UNLESS a --trust-anchor is specified for the domain in question. An empty domain specification, // has the special meaning of "unqualified names only" ie names without any dots in them. A non-standard port may be specified as part of the IP address using a # character. More than one --server flag is allowed, with repeated domain or ipaddr parts as required.
More specific domains take precedence over less specific domains, so: --server=/google.com/1.2.3.4 --server=/www.google.com/2.3.4.5 will send queries for google.com and gmail.google.com to 1.2.3.4, but www.google.com will go to 2.3.4.5

Matching of domains is normally done on complete labels, so /google.com/ matches google.com and www.google.com but NOT supergoogle.com. This can be overridden with a * at the start of a pattern only: /*google.com/ will match google.com and www.google.com AND supergoogle.com. The non-wildcard form has priority, so if /google.com/ and /*google.com/ are both specified then google.com and www.google.com will match /google.com/ and /*google.com/ will only match supergoogle.com.

For historical reasons, the pattern /.google.com/ is equivalent to /google.com/ if you wish to match any subdomain of google.com but NOT google.com itself, use /*.google.com/

The special server address '#' means, "use the standard servers", so --server=/google.com/1.2.3.4 --server=/www.google.com/# will send queries for google.com and its subdomains to 1.2.3.4, except www.google.com (and its subdomains) which will be forwarded as usual.

Also permitted is a -S flag which gives a domain but no IP address; this tells dnsmasq that a domain is local and it may answer queries from /etc/hosts or DHCP but should never forward queries on that domain to any upstream servers. --local is a synonym for --server to make configuration files clearer in this case.

IPv6 addresses may include an %interface scope-id, eg fe80::202:a412:4512:7bbf%eth0.

The optional string after the @ character tells dnsmasq how to set the source of the queries to this nameserver. It can either be an ip-address, an interface name or both. The ip-address should belong to the machine on which dnsmasq is running, otherwise this server line will be logged and then ignored. If an interface name is given, then queries to the server will be forced via that interface; if an ip-address is given then the source address of the queries will be set to that address; and if both are given then a combination of ip-address and interface name will be used to steer requests to the server. The query-port flag is ignored for any servers which have a source address specified but the port may be specified directly as part of the source address. Forcing queries to an interface is not implemented on all platforms supported by dnsmasq.

Upstream servers may be specified with a hostname rather than an IP address. In this case, dnsmasq will try to use the system resolver to get the IP address of a server during startup. If name resolution fails, starting dnsmasq fails, too. If the system's configuration is such that the system resolver sends DNS queries through the dnsmasq instance which is starting up then this will time-out and fail.
353 天前
回复了 GT1 创建的主题 随想 诊所看不起小病
单说药钱,很多西药如果社康医院给开的话,比网上买药便宜,网上买药比线下药店要便宜。不过这类药在医院是要做验血等检查才给开,验个血就小 100 ,而且有时候碰到庸医不给开,或者会搭售一些更贵的中成药安慰剂。
@qq1204076437 因为 mah 与 wh 转换并不是简单的乘上电压的关系,同一块满电电池,以 3.7v 放电能 10000mah ,以 5v 放电可能只有 7000mah ,差了 2wh ,低于 5v 虽然还有电但做不到所以如果放电电压不一样比较 wh 也不一定准确,要比较就对齐电压再比较,既然电压一样了,看 mah 不也很直观么?
355 天前
回复了 Wockee 创建的主题 生活 求助!楼上的住户总是关我家水表阀门
买错摄像头了,换成可视门铃试试
359 天前
回复了 naminokoe 创建的主题 生活 国外是如何补贴生娃养娃的,以 JP 为例
建议楼主折算成人民币方便对比:
国内生孩子有工作有生育保险顺产自费好像大概几千。
个税专项扣除 3 岁前有婴幼儿照护有 3 岁后有子女教育,每月 1000 额度,按 20%税率折合人民币 200 。
深圳小孩看病同二档医保。
359 天前
回复了 w1lu0bOo 创建的主题 C++ 如何适应? C 艹程序员做 ANSI C 的项目
是机器上没有 c++运行库还是项目代码是纯 c ,后者的话用 c++实现功能编译成 so 给 c 调用。
361 天前
回复了 strp 创建的主题 宽带症候群 联通光猫 CUAdmin 密码不对
我这边是
user:CUAdmin
password:cuadmin+( mac 地址前 6 位)
密码是小写
@xiaoxx97 无非是统一标准吧,但是第三方偏不支持怎么实现你说的优势? homeassistant 已经让我家不需要用十几个智能家居 app 就能控制家里的设备,除此之外 matter 还有什么优势?
matter 有什么优势?
362 天前
回复了 bushenx 创建的主题 问与答 YouTube 后台播放
没人在 Android 上面用 SmartTube 吗? SmartTube 有后台播放无广告
这是远程屏幕自动写代码的段子看多了? rdp 登录后本地就自动锁屏了,根本不会出现这种灵异事件。
2023-06-03 22:51:46 +08:00
回复了 zhwguest 创建的主题 程序员 给大家看看联通的 1 元 5GB 的流量包--每人限购一份,速抢!
@Zys2017 是 29 元 10G1 年有效期吗,其实还可以,我给娃买了个电话手表, 我原本有个 5 元保号卡,套内什么都没有,于是手表有两个方案,一种是给 5 元卡开流量包,一种是每月多花 10 元办一张副卡,然后去看了下流量包,都死贵,最后办了一个 5 元 1G+50 分钟通话的,相当于每月 10 元 1G 流量 50 分钟通话。
2023-06-03 22:46:59 +08:00
回复了 zhwguest 创建的主题 程序员 给大家看看联通的 1 元 5GB 的流量包--每人限购一份,速抢!
@Zys2017 是 29 元 10G1 年有效期吗,其实还可以,我给娃买了个电话手表,
2023-06-02 23:06:29 +08:00
回复了 kuingsmile 创建的主题 生活 查出了不能生育,心里郁闷
可以对外宣称是坚定的丁克主义了
2023-06-02 13:49:11 +08:00
回复了 yagamil 创建的主题 程序员 前端技术过于分裂
现在的前端技术其实比较像后端了吧,以前的网页,可以直接在浏览器查看编辑源码,现在基本都经过了 build ,就类似后端的编译。前端源码也是,引用了一大堆库,要 build 之后才部署,而非直接把这些库都拷过去部署。
2023-06-02 08:28:04 +08:00
回复了 pathetique 创建的主题 Python 弱极了,请教 Python 多线程如何快速开始
python 有个著名的 GIL 锁,执行 Python 代码时都需要先获取这个锁,所以虽然多线程,但同一时间只有一个线程获得这个锁,其他线程都在等待,结果只能跑满一个核。如果你是 c 模块处理,可以手动释放锁处理完再获取,这样多线程就能突破单核限制。但 c 模块开发效率和可移植性很差,更好的方案是上面提到的 multiprocessing 多进程。
2023-06-02 08:14:23 +08:00
回复了 MFWT 创建的主题 程序员 想起自己在永硕 E 盘还有个账号,登上去看,有了新发现
这玩意还活着?忘记账号了,想了下当时应该是用网易邮箱注册的,网易邮箱前不久试了一下不让登录了。
2023-06-02 08:05:56 +08:00
回复了 hanssx 创建的主题 NGINX nginx 正向代理 ngx_http_proxy_connect_module 中参数 proxy_connect_allow
目标地址的端口吧,connect 是连接型代理,可以代理任意 tcp 连接,有时候想只允许代理 80 443 等 web 端口。
2023-06-01 20:35:04 +08:00
回复了 zhwguest 创建的主题 程序员 上个月被联通薅了羊毛
我的星粉卡也是,本来送了 1g 的 2i 流量,没注意送多久,放老人手机里了,去年 11 月的时候发现多扣了几块钱,一查才知道不送了,另一个套内有 3G 流量的号是改为要手动领,反正都掉了。后来给老人自己的移动卡开了个流量包。
2023-06-01 14:02:50 +08:00
回复了 JCJD 创建的主题 生活 公司给了落户上海的名额,很纠结要不要落
‌老家农村拆迁过两次,没看出农村户口有啥好的。第一次是四川到上海的特高压电线从屋顶经过,拆迁补偿 300 元 /平,结果是楼房变成了更小的平房。新平房住了几年后,因为三峡大坝修好了县里搞工业开发,从靠近县城的地方逐渐拆迁拆到了我们那里,因为是搞工业开发,房子加耕地全部回收,所以这次比第一次的拆迁标准高不少,但以农村标准看是可以,从绝对数看也就几十万,多一个人头是能多一点钱,但也就万把块而已。所以小地方农村户口碰上拆迁,有点用但作用不大,如果夫妻两人都是农村户口,其中一人有机会迁北上,没什么好犹豫的。
1 ... 16  17  18  19  20  21  22  23  24  25 ... 45  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   909 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 38ms · UTC 19:43 · PVG 03:43 · LAX 12:43 · JFK 15:43
Developed with CodeLauncher
♥ Do have faith in what you're doing.