[Samba] bulk dns add

Thomas Glanzmann thomas at glanzmann.de
Tue Jul 24 13:21:28 UTC 2018


> samba-tool dns does not allow bulk add
> is there a way to do it faster?

# Get a kerberos ticket as domain admin
echo 'Pa$$w0rd' | kinit Administrator at V101.HPVL.ORG

# Use nsupdate to pump the information up.
nsupdate -g < /home/sithglan/work/scripts/lab/output/nsupdate-v101

Example input:
realm V101.HPVL.ORG
server ad.v101.hpvl.org
zone v101.hpvl.org.
update add ad.v101.hpvl.org. 900 A
 update add vma.v101.hpvl.org. 900 A
 update add esx-01.v101.hpvl.org. 900 A
 update add esx-01-mgmt.v101.hpvl.org. 900 A
zone 101.10.in-addr.arpa.
update add 900 PTR ad.v101.hpvl.org.
 update add 900 PTR vma.v101.hpvl.org.
 update add 900 PTR esx-01.v101.hpvl.org.

239 entries in a fraction of a second.


More information about the samba mailing list