Comments (10)
看看端口是不是冲突了
netstat -anp | grep 53
在看看日志里面有什么/var/log/smartdns.log
from smartdns.
53端口貌似没被占用。
raphael@Raphael-Ubuntu:~/smartdns$ netstat -anp |grep 53
(并非所有进程都能被检测到,所有非本用户的进程信息将不会显示,如果想看到所有信息,则必须切换到 root 用户)
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
udp 20736 0 127.0.0.53:53 0.0.0.0:* -
udp 0 0 0.0.0.0:41953 0.0.0.0:* -
udp 38784 0 0.0.0.0:5353 0.0.0.0:* -
udp6 31232 0 :::5353 :::* -
unix 3 [ ] 流 已连接 2753 - /var/run/dbus/system_bus_socket
unix 3 [ ] 流 已连接 25383 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 23853 938/dbus-daemon /run/user/1000/bus
unix 2 [ ] 数据报 653 -
unix 3 [ ] 流 已连接 29531 - /var/run/dbus/system_bus_socket
unix 3 [ ] 流 已连接 25384 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 25380 1320/gsd-rfkill
unix 3 [ ] 流 已连接 29530 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 25381 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 25382 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 26653 1426/kerneloops-app
unix 3 [ ] 流 已连接 25378 1320/gsd-rfkill
unix 3 [ ] 流 已连接 24674 1153/gnome-shell-ca
unix 3 [ ] 流 已连接 25379 1320/gsd-rfkill
unix 3 [ ] 流 已连接 25338 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 20453 - /var/run/dbus/system_bus_socket
unix 3 [ ] 流 已连接 25337 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 21284 1153/gnome-shell-ca
unix 3 [ ] 流 已连接 21285 1153/gnome-shell-ca
unix 3 [ ] 流 已连接 25335 - /run/systemd/journal/stdout
unix 3 [ ] 流 已连接 28753 1045/dbus-daemon @/tmp/dbus-xwQ8QCjZCM
unix 3 [ ] 流 已连接 25339 928/Xorg @/tmp/.X11-unix/X0
unix 3 [ ] 流 已连接 17553 -
unix 3 [ ] 流 已连接 25537 1374/gsd-media-keys
unix 3 [ ] 流 已连接 25538 928/Xorg @/tmp/.X11-unix/X0
unix 3 [ ] 流 已连接 25334 - /run/systemd/journal/stdout
log记录如下:
[2018-08-15 10:36:42,699][ERROR][ dns_client.c:158 ] get addr info failed. Unknown error
[2018-08-15 10:36:42,699][ERROR][ dns_client.c:159 ] host = 114.114.114.114,, port = 53, type = 2, protocol = 0
[2018-08-15 10:36:42,699][ERROR][ dns_client.c:330 ] get address failed, 114.114.114.114,:53
[2018-08-15 10:36:42,699][ERROR][ smartdns.c:125 ] add server failed, 114.114.114.114,:53
[2018-08-15 10:36:42,699][ERROR][ smartdns.c:230 ] add servers failed.
[2018-08-15 10:36:54,958][ERROR][ dns_client.c:158 ] get addr info failed. Unknown error
[2018-08-15 10:36:54,959][ERROR][ dns_client.c:159 ] host = 114.114.114.114,, port = 53, type = 2, protocol = 0
[2018-08-15 10:36:54,959][ERROR][ dns_client.c:330 ] get address failed, 114.114.114.114,:53
[2018-08-15 10:36:54,959][ERROR][ smartdns.c:125 ] add server failed, 114.114.114.114,:53
[2018-08-15 10:36:54,959][ERROR][ smartdns.c:230 ] add servers failed.
[2018-08-15 10:37:01,676][ERROR][ dns_client.c:158 ] get addr info failed. Unknown error
[2018-08-15 10:37:01,676][ERROR][ dns_client.c:159 ] host = 114.114.114.114,, port = 53, type = 2, protocol = 0
[2018-08-15 10:37:01,676][ERROR][ dns_client.c:330 ] get address failed, 114.114.114.114,:53
[2018-08-15 10:37:01,676][ERROR][ smartdns.c:125 ] add server failed, 114.114.114.114,:53
[2018-08-15 10:37:01,676][ERROR][ smartdns.c:230 ] add servers failed.
[2018-08-15 10:37:13,964][ERROR][ dns_client.c:158 ] get addr info failed. Unknown error
[2018-08-15 10:37:13,964][ERROR][ dns_client.c:159 ] host = 114.114.114.114,, port = 53, type = 2, protocol = 0
[2018-08-15 10:37:13,964][ERROR][ dns_client.c:330 ] get address failed, 114.114.114.114,:53
[2018-08-15 10:37:13,964][ERROR][ smartdns.c:125 ] add server failed, 114.114.114.114,:53
[2018-08-15 10:37:13,964][ERROR][ smartdns.c:230 ] add servers failed.
[2018-08-15 10:37:26,204][ERROR][ dns_client.c:158 ] get addr info failed. Unknown error
[2018-08-15 10:37:26,204][ERROR][ dns_client.c:159 ] host = 114.114.114.114,, port = 53, type = 2, protocol = 0
[2018-08-15 10:37:26,204][ERROR][ dns_client.c:330 ] get address failed, 114.114.114.114,:53
[2018-08-15 10:37:26,204][ERROR][ smartdns.c:125 ] add server failed, 114.114.114.114,:53
[2018-08-15 10:37:26,204][ERROR][ smartdns.c:230 ] add servers failed.
[2018-08-15 10:37:38,458][ERROR][ dns_client.c:158 ] get addr info failed. Unknown error
from smartdns.
你的配置文件有问题,手工改一下吧。
里面多了逗号。
from smartdns.
还有重复的记录,要删掉。
from smartdns.
刚看到了,**了。TAT
已经马上改了。
但是nslookup -querytype=ptr 127.0.0.1的结果还是localhost。
Ubuntu的DNS,设置的是127.0.0.1,9.9.9.9,这样OK吗?
from smartdns.
x86默认是用的主机名,你可以再配置文件中指定如下配置项:
server-name smartdns
这样查询的时候,就可以看到smartdns了。
你这是怎么用?ubuntu自己连接自己?
from smartdns.
哈哈,这台Ubuntu是虚拟机,测试用的。
自己连自己。XD
所以,这样smartdns已经是正常工作了?
from smartdns.
只要解析的域名,任何一个域名都只返回一个IP地址,那就是OK的了。
from smartdns.
并且你的53端口好像被占用了,看看是不是开启了dnsmasq服务。
from smartdns.
如还有问题,请reopen issue
from smartdns.
Related Issues (20)
- `sendto fdbd:dc01:fe:1009::1, id 217, Permission denied` HOT 18
- 广告屏蔽 HOT 9
- 关于DNS缓存的一些问题 HOT 11
- 能否提供单独关闭DNS64的按钮或者指令,仅限制v6访问v6,v4访问v4,部分程序不支持转换访问 HOT 1
- 目前看文档提供给用户侧支持DoT、DoH还有H3 和 DoQ目前暂不支持,想咨询一下如何验证 HOT 5
- multiple server entries, what order? HOT 3
- Bug Report:SmartDNS crashes due to misaligned memory access in `fast_ping.c`. HOT 3
- 32GB of DoH traffic? HOT 6
- 阿里云 自己说了 限速了 HOT 1
- 如何理解address配置项末尾的-参数? HOT 2
- docker版本升级问题 HOT 3
- Smart dns with guest network HOT 1
- 请问如何cf只返回v4屏蔽v6 HOT 2
- 分组上游DNS不通了,验证分组里面的域名默认DNS无法提供解析 HOT 2
- 不支持设置 .uk 域名的IP地址 HOT 2
- smartdns 升级到46后,Server名字变成了127.0.0.1 如何改回smartdns名字? HOT 4
- 要不要加上这个ustc黑名单 HOT 2
- 测速模式配置优先级的问题 HOT 2
- domain-rule 不生效 HOT 1
- 为 UDP 的监听端口设置 `SO_REUSEADDR` HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartdns.