[Samba] Undeletable DNS Records
Thomas Zeitinger
thomas.zeitinger at it2.at
Thu Oct 10 08:58:34 MDT 2013
Hi,
I build a setup on a Debian Wheezy with samba 4.0.9 and a compiled bind
9.8.4 with this configure options:
./configure --prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--sysconfdir=/etc/bind \
--localstatedir=/var \
--enable-threads \
--enable-largefile \
--with-libtool \
--enable-shared \
--enable-static \
--with-openssl=/usr \
--with-gssapi=/usr \
--with-gnu-ld \
--with-geoip=/usr \
--enable-ipv6 \
--disable-linux-caps \
--disable-threads \
--with-dlopen=yes
After that I added a host with the Windows Management Konsole and
changed the IP.
But when I dig after it, I saw that both addresses are served:
root at sambas9:~# dig @localhost kerios9.domain.local
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @localhost kerios9.domain.local
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17655
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;kerios9.domain.local. IN A
;; ANSWER SECTION:
kerios9.domain.local. 0 IN A 192.168.0.21
kerios9.domain.local. 0 IN A 192.168.1.14
;; AUTHORITY SECTION:
domain.local. 900 IN NS sambas9.domain.local.
;; ADDITIONAL SECTION:
sambas9.domain.local. 900 IN A 192.168.1.13
;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Oct 10 16:43:37 2013
;; MSG SIZE rcvd: 105
When I query with samba-tool, I only see one IP:
root at sambas9:~# samba-tool dns query 127.0.0.1 domain.local kerios9 A
Password for [administrator at domain.LOCAL]:
Name=, Records=1, Children=0
A: 192.168.0.21 (flags=f0, serial=34, ttl=900)
and
root at sambas9:~# samba-tool dns query 127.0.0.1 domain.local @ All
Password for [administrator at domain.LOCAL]:
Name=, Records=4, Children=0
NS: sambas9.domain.local. (flags=600000f0, serial=1, ttl=900)
A: 192.168.1.13 (flags=600000f0, serial=1, ttl=900)
A: 192.168.0.13 (flags=600000f0, serial=3, ttl=900)
SOA: serial=34, refresh=900, retry=600, expire=86400,
ns=sambas9.domain.local., email=hostmaster.domain.local.
(flags=600000f0, serial=34, ttl=3600)
Name=_msdcs, Records=0, Children=0
Name=_sites, Records=0, Children=1
Name=_tcp, Records=0, Children=4
Name=_udp, Records=0, Children=2
[...]
Name=ForestDnsZones, Records=0, Children=2
Name=kerios9, Records=1, Children=0
A: 192.168.0.21 (flags=f0, serial=34, ttl=900)
[...]
But I can not delete the wrong entry:
root at sambas9:~# samba-tool dns delete 127.0.0.1 domain.local kerios9 A
192.168.1.14
Password for [administrator at domain.LOCAL]:
ERROR: Record does not exist
Does someone have a hint for me?
Best regards
Tom
--
Thomas Zeitinger
Kundenbetreuung
IT-Quadrat EDV Dienstleistungs- und Handels GmbH
Krongasse 8/2 A-1050 Wien
Tel: +43 (1) 311 44 00 - 10
Fax: +43 (1) 311 44 00 - 90
Thomas.Zeitinger at it2.at
www.it2.at
FN 287345t
UID ATU63123113
More information about the samba
mailing list