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

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日

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效