![使用 IODINE 进行 DNS 隧道](https://linux22.com/image/1328037/%E4%BD%BF%E7%94%A8%20IODINE%20%E8%BF%9B%E8%A1%8C%20DNS%20%E9%9A%A7%E9%81%93.png)
我正在尝试设置 DNS 隧道。我已经设置完毕,并且已经到了此处的测试功能:http://code.kryo.se/iodine/check-it/作品。
结果如下:
Analyzing DNS setup for tunnel domain 'tunnel.mydomain.com'... (might take some time)
Looking for nameserver for mydomain.com.. got ns.domain.com (at 208.208.208.208).
Resolving delegation of tunnel.mydomain.com at 208.208.208.208... to tunnelhost.mydomain.com (at 164.164.164.164).
Expecting iodined to be accessible at 164.164.164.164... yes, using proto 00000502.
Testing iodine reply using default nameserver... ok.
Well done, your iodine setup seems fine!
但是当我从命令行连接时,它显示以下内容:
Macbook-Pro:~ user$ sudo iodine -f -P asdf -T CNAME tunnel.mydomain.com
Opened /dev/tun0
Opened UDP socket
Sending DNS queries for tunnel.mydomain.com to 82.82.82.82
Using DNS type CNAME queries
iodine: Got NXDOMAIN as reply: domain does not exist
Retrying version check...
iodine: Got NXDOMAIN as reply: domain does not exist
Retrying version check...
iodine: Got NXDOMAIN as reply: domain does not exist
Retrying version check...
iodine: Got NXDOMAIN as reply: domain does not exist
Retrying version check...
iodine: Got NXDOMAIN as reply: domain does not exist
Retrying version check...
iodine: couldn't connect to server (maybe other -T options will work)
有人知道我可以尝试什么吗?
答案1
对我来说,我需要通过以下方式将来自碘的 DNS 请求指向服务器:
sudo iodine -f -P asdf -T CNAME 82.82.82.82 tunnel.mydomain.com
来源:手册页,倒数第二个参数
iodine [-f] [-r] [-u user ] [-P password ] [-m fragsize ] [-t chrootdir ] [-d
device ] [-m fragsize ] [-M namelen ] [-z context ] [-F pidfile ] [-T dnstype ]
[-O downenc ] [-L 0|1 ] [-I interval ] [ nameserver ] topdomain