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

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 为啥画版图在Run DRC会出现Connect Error?可我Calibre的hostname和计算机的hostname已经设置成一样的了。
  • ¥20 网站后台使用极速模式非常的卡
  • ¥20 Keil uVision5创建project没反应
  • ¥15 mmseqs内存报错
  • ¥15 vika文档如何与obsidian同步
  • ¥15 华为手机相册里面的照片能够替换成自己想要的照片吗?
  • ¥15 陆空双模式无人机飞控设置
  • ¥15 sentaurus lithography
  • ¥100 求抖音ck号 或者提ck教程
  • ¥15 关于#linux#的问题:子进程1等待子进程A、B退出后退出(语言-c语言)