hello i would like to know if there a way to add multiple dns records in samba AD-DC if i run samba-tool dns add for each record, it is realy long, may because of the authentification part... samba-tool dns does not allow bulk add is there a way to do it faster?
On Tue, 24 Jul 2018 11:30:00 +0200 Arnaud FLORENT via samba <samba at lists.samba.org> wrote:> hello > > i would like to know if there a way to add multiple dns records in > samba AD-DC > > if i run samba-tool dns add for each record, it is realy long, may > because of the authentification part... > > samba-tool dns does not allow bulk add > > is there a way to do it faster? > > >Write a script around samba-tool getting the data from a comma separated list Rowland
See: https://github.com/thctlo/samba4/blob/master/samba-dns-mass-add.sh Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Arnaud FLORENT via samba > Verzonden: dinsdag 24 juli 2018 11:30 > Aan: samba at lists.samba.org > Onderwerp: [Samba] bulk dns add > > hello > > i would like to know if there a way to add multiple dns > records in samba > AD-DC > > if i run samba-tool dns add for each record, it is realy long, may > because of the authentification part... > > samba-tool dns does not allow bulk add > > is there a way to do it faster? > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
thank you i have got my own script with a loop on samba-tool dns add but i had to run it for 4000 CNAME and it lasts almost one hour... i was looking for an faster alternative (ldap add?) Le 24/07/2018 à 11:47, L.P.H. van Belle via samba a écrit :> See: > https://github.com/thctlo/samba4/blob/master/samba-dns-mass-add.sh > > > Greetz, > > Louis > > >> -----Oorspronkelijk bericht----- >> Van: samba [mailto:samba-bounces at lists.samba.org] Namens >> Arnaud FLORENT via samba >> Verzonden: dinsdag 24 juli 2018 11:30 >> Aan: samba at lists.samba.org >> Onderwerp: [Samba] bulk dns add >> >> hello >> >> i would like to know if there a way to add multiple dns >> records in samba >> AD-DC >> >> if i run samba-tool dns add for each record, it is realy long, may >> because of the authentification part... >> >> samba-tool dns does not allow bulk add >> >> is there a way to do it faster? >> >> >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> >> >
Hello,> 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 10.101.0.1 update add vma.v101.hpvl.org. 900 A 10.101.0.3 update add esx-01.v101.hpvl.org. 900 A 10.101.0.11 update add esx-01-mgmt.v101.hpvl.org. 900 A 10.100.1.27 ... zone 101.10.in-addr.arpa. update add 1.0.101.10.in-addr.arpa 900 PTR ad.v101.hpvl.org. update add 3.0.101.10.in-addr.arpa 900 PTR vma.v101.hpvl.org. update add 11.0.101.10.in-addr.arpa 900 PTR esx-01.v101.hpvl.org. ... send -- 239 entries in a fraction of a second. Cheers, Thomas
Seemingly Similar Threads
- Samba AD 4.8.3 Windows Server 2016 Active Directory Users and Computers: The procedure number is out of range
- Samba AD 4.8.3 Windows Server 2016 Active Directory Users and Computers: The procedure number is out of range
- Samba AD 4.8.3 Windows Server 2016 Active Directory Users and Computers: The procedure number is out of range
- sprintf error: "only 100 arguments allowed"
- Question about normalization to a set of internal standards