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

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 sqpingboot在父模块已经引入了mybatisplus 在子组件不写版本号还是报错
  • ¥20 Lumerical FDTD solutions 中模型的相对阻抗,有效介电常数和有效磁导率的实部和虚部的数据如何获得?
  • ¥100 sql reporting service 远程smtp服务器配置支持
  • ¥15 ppyoloe_r带角度目标检测,loss_cls没法收敛
  • ¥15 淘宝交易指数如何解读,其关联的数据指标是什么
  • ¥15 Linux下安装搜狗拼音不能显示中文
  • ¥15 事件7000导致的自动重启如何解决
  • ¥15 (标签-matlab|关键词-m3)
  • ¥20 做一个web书店,带答辩
  • ¥15 #求带 python,使用pycharm爬取智联招聘数据资源并保存为Excel文件,同时以图表形式呈现