Samba4 dns: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=Internal dns= | =Internal dns= | ||
==editing the tdb database by hand== | ==editing the tdb database by hand== | ||
The samba4 internal dns server used to have a bug where multiple database entries could get added for the same host. | The samba4 internal dns server used to have a bug where multiple database entries could get added for the same host. [https://lists.samba.org/archive/samba/2013-September/175477.html see here for others experiencing the same] | ||
When this happens, the relevant dns host can resolve with a dns query, but the entries are not shown in the RSAT gui, nor via sambatool. They can't be edited, removed or updated with the common administration tools. The fix is to remove the database entries by hand, and then recreate it via normal means. | When this happens, the relevant dns host can resolve with a dns query, but the entries are not shown in the RSAT gui, nor via sambatool. They can't be edited, removed or updated with the common administration tools. The fix is to remove the database entries by hand, and then recreate it via normal means. | ||
Removing the duplicate entries requires using tdb to find the relevant entries and then remove them. | Removing the duplicate entries requires using tdb to find the relevant entries and then remove them. |
Revision as of 13:39, 26 July 2017
Internal dns
editing the tdb database by hand
The samba4 internal dns server used to have a bug where multiple database entries could get added for the same host. see here for others experiencing the same When this happens, the relevant dns host can resolve with a dns query, but the entries are not shown in the RSAT gui, nor via sambatool. They can't be edited, removed or updated with the common administration tools. The fix is to remove the database entries by hand, and then recreate it via normal means. Removing the duplicate entries requires using tdb to find the relevant entries and then remove them.
in my case I have a hostname 'openbsd' resolving to address 192.168.1.14. It resolves fine, but does not show up with RSAT or samba-tool A queries.
# host openbsd openbsd.lippmann.us has address 192.168.1.14
Below paths assume samba4 is installed from source and so has /usr/local paths. If installed via a package, the relevant database and binary files are in /usr/share/samba etc. instead.
To edit the tdb database by hand I use tdbtool, provided with the samba install.
/usr/local/samba/bin/tdbtool