[Samba] bind-dns configuration is generated incorrectly after "domain backup restore" + samba_upgradedns

Emil Sandnabba emil at sandnabba.se
Wed Dec 11 20:39:38 UTC 2024


> While I do not think it will cure your problem (though it may do), can
> you please try again, but this time with correct values to your options:
>
> The domain in --domain is the NetBIOS domain, not the DNS domain and
> the dot is illegal in a NetBIOS domain name.
>
> The --realm should be the DNS domain in uppercase.
>
> If you want to use a registered dns domain, then I suggest you use a
> subdomain of that, something like  'ad.domain.se' instead of 'domain.se'

Ah, I see now that I was a bit hasty in obfuscating the data.
I am actually using a subdomain. We can call it sub.domain.se.
And the realm is another keyword.

Here is a more complete version of the provisioning command:
samba-tool domain provision --use-rfc2307 --adminpass={adminpassword}
--domain=COMPANY --realm=SUB.DOMAIN.SE --site=mysite --server-role=dc
--dns-backend=BIND9_DLZ

In my previous email, all instances of "DC=domain,DC=se" are actually
"DC=sub,DC=domain,DC=se".
So, I believe the provisioning was done correctly.

I've also compared the output of `samba-tool dns zonelist 127.0.0.1`
and `samba-tool dns serverinfo 127.0.0.1`, and the output is 100%
identical before and after the backup restore.

Any other ideas on where to look or what to check?

Thanks,

Emil



More information about the samba mailing list