问题:
服务器: Unknown
Address: 2409:8a1e:6e71:5eb0::1
解决效果:
$ nslookup -d2 pve.lan
------------
SendRequest(), len 90
HEADER:
opcode = QUERY, id = 1, rcode = NOERROR
header flags: query, want recursion
questions = 1, answers = 0, authority records = 0, additional = 0
QUESTIONS:
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.e.5.1.7.e.6.e.1.a.8.9.0.4.2.ip6.arpa, type = PTR, class = IN
------------
------------
Got answer (122 bytes):
HEADER:
opcode = QUERY, id = 1, rcode = NOERROR
header flags: response, auth. answer, want recursion, recursion avail.
questions = 1, answers = 1, authority records = 0, additional = 0
QUESTIONS:
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.e.5.1.7.e.6.e.1.a.8.9.0.4.2.ip6.arpa, type = PTR, class = IN
ANSWERS:
-> 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.e.5.1.7.e.6.e.1.a.8.9.0.4.2.ip6.arpa
type = PTR, class = IN, dlen = 20
name = RT-AX86U-CE58-IPv6
ttl = 0 (0 secs)
------------
服务器: RT-AX86U-CE58-IPv6
Address: 2409:8a1e:6e71:5eb0::1
History
- PTR record on dnsmasq.d
- /etc/hosts
- interface-name on dnsmasq.conf.add [ working ]
PTR record on dnsmasq.d
On Windows
$ ipconfig /all | findstr "DNS"
DNS 服务器 . . . . . . . . . . . : 2409:8a1e:6e71:5eb0::1On Router
$ cat /jffs/configs/dnsmasq.d/ipv6-arp.conf
ptr-record=1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.e.5.1.7.e.6.e.1.a.8.9.0.4.2.ip6.arpa,RT-AX86U-CE58-IPv6
[Dnsmasq-discuss] No Reverse ipv6 DNS lookups with dnsmasq?
Hosts record on /etc/hosts
echo "2409:8a1e:6e71:5eb0::1 RT-AX86U-CE58-IPv6" >> /etc/hostsinterface-name on dnsmasq.conf.add
cat /jffs/configs/dnsmasq.conf.add
# resolve self as IPv6 address when client doing DNS request
interface-name=RT-AX86U-CE58-IPv6,br0/6这里的 /6 代表 IPv6
Router IPv6 hosts entries | SNBForums
因为重启会丢失 /jffs/configs 目录的内容,所以写在初始化脚本里
# file: /jffs/.koolshare/enihsyou/N200enihsyou.sh
#!/bin/sh
# please link me, I will run when nat-start event occur.
# ln -s /jffs/.koolshare/enihsyou/N200enihsyou.sh /jffs/.koolshare/init.d/
alias logme='logger "[enihsyou]:"'
# make router responed to IPv6 ARP query
if [ ! -e /jffs/configs/dnsmasq.d/lan.conf ]; then
logme "create /jffs/configs/dnsmasq.conf.add"
ipv6_hostname="$(nvram get lan_hostname)" # RT-AX86U-CE58
ipv6_hostname="$ipv6_hostname-IPv6" # RT-AX86U-CE58-IPv6
echo "# file generated by $0" >> /jffs/configs/dnsmasq.d/lan.conf
echo "# resolve self as IPv6 address when client doing DNS request" >> /jffs/configs/dnsmasq.d/lan.conf
echo "interface-name=$ipv6_hostname,br0/6" >> /jffs/configs/dnsmasq.d/lan.conf
service restart_dnsmasq
fi
# link avahi-daemon.postconf
if [ ! -e /jffs/scripts/avahi-daemon.postconf ]; then
if [ -f /jffs/.koolshare/enihsyou/avahi-daemon.postconf ]; then
logme "link /jffs/scripts/avahi-daemon.postconf"
ln -sf /jffs/.koolshare/enihsyou/avahi-daemon.postconf /jffs/scripts/avahi-daemon.postconf
else
logme "avahi-daemon.postconf not found, please check"
fi
fi
# append homebridge-miio iptables rules
if ! iptables -t nat -C POSTROUTING -o br0 -p udp --dport 54321 -s 192.168.1.0/24 -j MASQUERADE > /dev/null 2>&1; then
logme "append homebridge-miio iptables rules"
iptables -t nat -A POSTROUTING -o br0 -p udp --dport 54321 -s 192.168.1.0/24 -j MASQUERADE
fi
On Merlin Clash
dns:
enable: true
ipv6: true
listen: :23453
default-nameserver:
- 223.5.5.5
- 119.29.29.29
enhanced-mode: redir-host
nameserver:
- 223.5.5.5
- 1.2.4.8
fallback:
- 8.8.8.8Custom config files · RMerl/asuswrt-merlin.ng Wiki
nslookup x.com
172.66.0.227
162.159.140.229
$ netsh interface tcp show global
查询活动状态...
TCP 全局参数
----------------------------------------------
接收方缩放状态 : enabled
接收窗口自动调节级别 : normal
加载项拥塞控制提供程序 : default
ECN 功能 : disabled
RFC 1323 时间戳 : allowed
初始 RTO : 1000
接收段合并状态 : enabled
非 Sack Rtt 复原 : disabled
最大 SYN 重新传输次数 : 4
快速打开 : enabled
快速打开回退 : enabled
HyStart : enabled
比例费率降低 : enabled
节奏配置文件 : off
netsh interface tcp set global MaxSynRetransmissions=2
[TCP/IP and NBT configuration parameters for Windows XP - Windows Client | Microsoft Learn](https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/tcpip-and-nbt-configuration-parameters)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\TcpMaxConnectRetransmissions D_WORD 1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\TcpMaxDataRetransmissions D_WORD 1