Samba

Samba 域有多個與之關聯的 ip

  • August 25, 2020

我一直在設置一個 samba DC,但是同一台機器執行了幾個 docker 容器,並且它選擇了活動的網路介面,現在該域有 5 個不同的 ip,這不是它們實際應該是的。Nslookup 輸出:

nslookup nexello.lan
Server:         192.168.0.100
Address:        192.168.0.100#53

Name:   nexello.lan
Address: 172.16.238.1
Name:   nexello.lan
Address: 172.17.0.1
Name:   nexello.lan
Address: 172.18.0.1
Name:   nexello.lan
Address: 172.19.0.1
Name:   nexello.lan
Address: 192.168.0.100

唯一應該與之關聯的 IP 是最後一個。我怎樣才能刪除其他人?

samba-tool dns delete <host ip> nexello.lan @ A <record> -UAdministrator

samba-tool dns delete <host ip> nexello.lan <host name> A <record> -UAdministrator

刪除了多餘的記錄

引用自:https://unix.stackexchange.com/questions/606284