Aw: Re: [PATCH] Use samba-tool to add DNS entries with samba_dnsupdate

support at remsnet.de support at remsnet.de
Wed Mar 4 05:54:29 MST 2015


Hello ,


Forgive me my ignorance somehow,

> Hi Andrew,
> 
> > I've been asked by a client to help them rename a DC (in a reproducible,
> > scripted way to assist in creating a test clone of their production
> > network), and it turned out to be much more work than I ever imagined. 
> > 

@andrew .. same issues i seen here , remeber my asks ?

> > I ended up rewriting samba_dnsupdate to use samba-tool when kinit fails.
> > This is important, because if you change (say with the renamedc script)
> > the host name, and the IP (because if you are moving to the test bench),
> > then Kerberos is the *last* thing that will work.
> > 
> > This uses NTLMSSP to one of the interface IP addresses.
> > 
> > Please review/comment/push!
> 
> I may push some of them.
> 
> > Metze,
> > 
> > Why did you not add NS records to the dns_update_list?  Are we unable to
> > add those with dynamic DNS updates for some reason?  (If so, I'll make a
> > special case to force these to samba-tool). 
> 
> Yes, this is not allowed via dns updates against Windows.
>

samba4 are on linux and there are *many* KMU to Big Irons  that have NO MORE any windows DCś . 

Thus - there must be *save* samba4 dns update an way's either windows server dns or i.e for support the isc dhcpd directly.

... Either with DC Joins , desktop pcś dynamnic dns updates and more .

This shuold be soon fully supported at 4.2.x please.
It had been working for samba 3.6 with isc-dhcp but for samba 4.x its a pitty .

> 
> I'd propose the following syntax:
> 
> RPC ${ZONE} ${TYPE} ${NAME} ${TARGET}
> 
> SERVER = NS server von ZONE
> => samba-tool dns add ${SERVER} ${ZONE} ${NAME}. ${TYPE} ${TARGET}
> 
> ${IF_RWDNS_DOMAIN}RPC ${DNSDOMAIN} NS ${DNSDOMAIN} ${HOSTNAME}
> => samba-tool dns add ${SERVER} ${DNSDOMAIN} ${DNSDOMAIN}. NS ${HOSTNAME}
> ${IF_RWDNS_FOREST}RPC _msdcs.${DNSFOREST} NS _msdcs.${DNSFOREST} ${HOSTNAME}
> => samba-tool dns add ${SERVER} _msdcs.${DNSFOREST} _msdcs.${DNSFOREST}.
> NS ${HOSTNAME}
> ${IF_RWDNS_FOREST}RPC ${DNSFOREST} NS _msdcs.${DNSFOREST} ${HOSTNAME}
> => samba-tool dns add ${SERVER} ${DNSFOREST} _msdcs.${DNSFOREST}. NS
> ${HOSTNAME}
> 
> See
> https://git.samba.org/?p=metze/samba/wip.git;a=commitdiff;h=c57c578539e65ce4fa9c4bc2c61b08ad9900a40a
> 
> metze
> 
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addressbook.vcf
Type: text/x-vcard
Size: 901 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150304/3a1f3f15/attachment.vcf>


More information about the samba-technical mailing list