Terry_小乙 2021-08-28 01:31 采纳率: 100%
浏览 525
已结题

DNSmasq. 启动后 出现报错:dnsmasq: failed to create listening socket for 192.168.50.103: Permission denied

用brew insatll dnsmasq

配置完后

启动时:
Warning: Taking root:admin ownership of some dnsmasq paths:
/usr/local/Cellar/dnsmasq/2.85/sbin
/usr/local/Cellar/dnsmasq/2.85/sbin/dnsmasq
/usr/local/opt/dnsmasq
/usr/local/opt/dnsmasq/sbin
/usr/local/var/homebrew/linked/dnsmasq
This will require manual removal of these paths using sudo rm on
brew upgrade/reinstall/uninstall.
==> Successfully started dnsmasq (label: homebrew.mxcl.dnsmasq)

dig test.com

; <<>> DiG 9.10.6 <<>> test.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9536
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;test.com.            IN    A

;; ANSWER SECTION:
test.com.        0    IN    A    192.168.50.103
test.com.        0    IN    A    127.0.0.1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sat Aug 28 01:24:07 CST 2021
;; MSG SIZE  rcvd: 69

ping test.com :

PING test.com (192.168.50.103): 56 data bytes
64 bytes from 192.168.50.103: icmp_seq=0 ttl=64 time=0.104 ms
64 bytes from 192.168.50.103: icmp_seq=1 ttl=64 time=0.259 ms
64 bytes from 192.168.50.103: icmp_seq=2 ttl=64 time=0.228 ms
64 bytes from 192.168.50.103: icmp_seq=3 ttl=64 time=0.154 ms
64 bytes from 192.168.50.103: icmp_seq=4 ttl=64 time=0.135 ms
64 bytes from 192.168.50.103: icmp_seq=5 ttl=64 time=0.139 ms
64 bytes from 192.168.50.103: icmp_seq=6 ttl=64 time=0.239 ms
^C

但在使用brew services list 时会出现:
Name Status User Plist
dnsmasq unknown root /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

使用dnsmasq -test 命令出现:
dnsmasq: failed to create listening socket for 192.168.50.103: Permission denied

请教下这些错误如何解决?

  • 写回答

2条回答 默认 最新

  • 凯云大叔 2021-08-28 07:39
    关注

    sudo dnsmasp -test

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 9月6日
  • 已采纳回答 8月29日
  • 创建了问题 8月28日

悬赏问题

  • ¥15 fpga自动售货机数码管(相关搜索:数字时钟)
  • ¥15 用前端向数据库插入数据,通过debug发现数据能走到后端,但是放行之后就会提示错误
  • ¥15 python天天向上类似问题,但没有清零
  • ¥30 3天&7天&&15天&销量如何统计同一行
  • ¥30 帮我写一段可以读取LD2450数据并计算距离的Arduino代码
  • ¥15 C#调用python代码(python带有库)
  • ¥15 飞机曲面部件如机翼,壁板等具体的孔位模型
  • ¥15 vs2019中数据导出问题
  • ¥20 云服务Linux系统TCP-MSS值修改?
  • ¥20 关于#单片机#的问题:项目:使用模拟iic与ov2640通讯环境:F407问题:读取的ID号总是0xff,自己调了调发现在读从机数据时,SDA线上并未有信号变化(语言-c语言)