本文最后更新于 978 天前,其中的信息可能已经有所发展或是发生改变。
Shell command in SSH
computer_name=`nvram get computer_name`
sed -Ei '/_vlmcs._tcp/d' /etc/storage/dnsmasq/dnsmasq.conf
nvram set lan_domain="lan"
echo "srv-host=_vlmcs._tcp.lan,$computer_name.lan,1688,0,100" >> /etc/storage/dnsmasq/dnsmasq.conf
Test command
nslookup -type=srv _vlmcs._tcp.lan