[Samba] samba_upgradedns --dns-backend=BIND9_DLZ does not fix hard link issue

Francesco Malvezzi francesco.malvezzi at unimore.it
Wed Nov 13 07:02:56 MST 2013


Hi all,

according to:
http://wiki.samba.org/index.php/Dns-backend_bind#New_added_DNS_entries_are_not_resolvable

when there is a inode mismatch between

./private/sam.ldb.d
and
./private/dns/sam.ldb.d

updating dns is going to fail.

According to the very same document, the command:
samba_upgradedns --dns-backend=BIND9_DLZ
+ restart bind9
would fix the issue.

I am running samba-4.1.1 on Debian GNU/Linux, but I cannot complete the
procedure: the command executes with the following output:

lpcfg_load: refreshing parameters from /opt/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file
"/opt/samba/etc/smb.conf"
Reading domain information
lpcfg_load: refreshing parameters from /opt/samba/etc/smb.conf
params.c:pm_process() - Processing configuration file
"/opt/samba/etc/smb.conf"
DNS accounts already exist
No zone file /opt/samba/private/dns/AD.TEST.IT.zone
DNS records will be automatically created
DNS partitions already exist
dns-ateneo account already exists
See /opt/samba/private/named.conf for an example configuration include
file for BIND
and /opt/samba/private/named.txt for further documentation required for
secure DNS updates
Finished upgrading DNS

I restart bind9

but private/dns/sam.ldb.d/ files are not hard link to private/dns/sam.ldb.d/

ls -lai private/sam.ldb.d private/dns/sam.ldb.d/
private/dns/sam.ldb.d/:
totale 26776
 5575539 drwxrwx--- 2 root bind    4096 nov 13 14:56 .
29375078 drwxrwx--- 3 root bind      36 nov 13 14:56 ..
29375081 -rw-rw---- 1 root bind 8757248 nov 13 14:56
CN=CONFIGURATION,DC=AD,DC=TEST,DC=IT.ldb
29375082 -rw-rw---- 1 root bind 8445952 nov 13 14:56
CN=SCHEMA,CN=CONFIGURATION,DC=AD,DC=TEST,DC=IT.ldb
 5575540 -rw-rw---- 1 root bind 1286144 nov 13 14:56 DC=AD,DC=TEST,DC=IT.ldb
29375073 -rw-rw---- 2 root bind 4251648 nov 13 14:34
DC=DOMAINDNSZONES,DC=AD,DC=TEST,DC=IT.ldb
29375074 -rw-rw---- 2 root bind 4251648 nov  8 16:10
DC=FORESTDNSZONES,DC=AD,DC=TEST,DC=IT.ldb
29375075 -rw-rw---- 2 root bind  421888 nov 13 14:57 metadata.tdb

private/sam.ldb.d:
totale 456152
29375069 drwxr-x--- 2 root bind      4096 nov 13 14:56 .
29629440 drwxr-xr-x 8 root root      4096 nov 13 14:57 ..
29375071 -rw------- 1 root root  16400384 nov  8 16:10
CN=CONFIGURATION,DC=AD,DC=TEST,DC=IT.ldb
29375072 -rw------- 1 root root  10391552 nov  8 16:11
CN=SCHEMA,CN=CONFIGURATION,DC=AD,DC=TEST,DC=IT.ldb
29375070 -rw------- 1 root root 431374336 nov 13 14:57
DC=AD,DC=TEST,DC=IT.ldb
29375073 -rw-rw---- 2 root bind   4251648 nov 13 14:34
DC=DOMAINDNSZONES,DC=AD,DC=TEST,DC=IT.ldb
29375074 -rw-rw---- 2 root bind   4251648 nov  8 16:10
DC=FORESTDNSZONES,DC=AD,DC=TEST,DC=IT.ldb
29375075 -rw-rw---- 2 root bind    421888 nov 13 14:57 metadata.tdb

What am I doing wrong?

Thank you for your attention

Francesco

PS: the issue stems out from my unability to modify dns with nsupdate:

nsupdate -vvv -g ~/nsupdate.cmd
Outgoing update query:
;; ->>HEADER<<- opcode: UPDATE, status: NOERROR, id:      0
;; flags:; ZONE: 0, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
;; ZONE SECTION:
;ad.test.it.			IN	SOA

;; UPDATE SECTION:
WIMPYSHELL.ad.test.it. 0	ANY	AAAA	

update failed: SERVFAIL

bind log:
13-Nov-2013 15:00:05.987 database: info: samba_dlz: starting transaction
on zone ad.test.it
13-Nov-2013 15:00:05.996 database: info: samba_dlz: allowing update of
signer=adminad\@AD.TEST.IT name=WIMPYSHELL.ad.test.it
tcpaddr=192.168.1.1 type=AAAA key=2530213264.sig-ateneo.ad.test.it/160/0
13-Nov-2013 15:00:05.998 database: info: samba_dlz: cancelling
transaction on zone ad.test.it

Doesn't it look like a filesystem issue?


More information about the samba mailing list