[Samba] DNS Full export and reimport
travis at rosecitysolutions.com
Wed Aug 9 04:10:39 UTC 2023
I have been testing and trying to muddle my way through this and am very
The three things I found were 1 export to csv via the gui rsat tool dns.
Looks like a list of a records and ns records but importing doesn't seem to
use the file.
The second is the powershell cmdlet export-dnsserverzone
Export-DNSServerZone "net.samdom.com" "net.samdom.com.bkup" -computername
Export-DNSServerZone : Failed to export the zone content for net.samdom.com
on server dc01 to the file
At line:1 char:1
+ Export-DNSServerZone "net.samdom.com" "net.samdom ...
+ CategoryInfo : NotSpecified:
+ FullyQualifiedErrorId : WIN32 120,Export-DnsServerZone
Something a bit off.
The third way is
dnscmd dc01 /zoneexport net.samdom.com net.samdom.com.dns.backup
Command failed: 120 0x78
It was pointed out in the wiki that the way to fix an old domain that was
created on server 2003 is a full reimport via powershell.
I am trying to do that or find another way eg rejoin an old 2008 server and
upgrade with that before reverting back to samba.
We use sernet and are on 4.18.5 running on debian 12 so this is not an old
Any help would be greatly appreciated.
On Fri, Jul 14, 2023 at 7:16 PM Travis Wenks <travis at rosecitysolutions.com>
> Hi all
> In this page of the Samba Wiki
> There is this note re a domain join issue.
> A full re-import of your DNS database via PowerShell is one way to ensure
> that DNS records are only in the modern locations.
> Can you tell me how to do this? I have found several articles but I am
> unsure of the exact method.
> Thank you very much.
> Travis Wenks
> Rose City Solutions
> * Phone *503.821.7000 <3464881845>
> * Website *rosecitysolutions.com <https://rosecitysolutions.com>
> * Email * travis at rosecitysolutions.com
More information about the samba