summaryrefslogtreecommitdiff
path: root/source4/dns_server
Commit message (Collapse)AuthorAgeFilesLines
* lib/param: Create a seperate server role for "active directory domain ↵Andrew Bartlett2012-06-151-1/+1
| | | | | | | | | | | | | | | controller" This will allow us to detect from the smb.conf if this is a Samba4 AD DC which will allow smarter handling of (for example) accidentially starting smbd rather than samba. To cope with upgrades from existing Samba4 installs, 'domain controller' is a synonym of 'active directory domain controller' and new parameters 'classic primary domain controller' and 'classic backup domain controller' are added. Andrew Bartlett
* s4:dns-server: remove an extra blank line from handle_question()Michael Adam2012-06-061-1/+0
|
* s4 dns: Correctly handle A questions for CNAMEsKai Blin2012-06-061-5/+56
| | | | | | | | | | | | When an A/AAAA lookup is made for a name that actually is a CNAME record, we need to return the CNAME record, and then do the A/AAAA lookup for the name the CNAME points at. This still fails for CNAMEs pointing at records for domains we need to ask our forwarders for. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Jun 6 15:23:55 CEST 2012 on sn-devel-104
* s4-dns: Use W_ERROR_HAVE_NO_MEMORY in create_response_rrKai Blin2012-05-301-24/+8
|
* s4-dns: Use proper talloc hierarchy for NS records in create_response_rrKai Blin2012-05-301-1/+2
|
* s4-dns: Use proper talloc hierarchy for AAAA records in create_response_rrKai Blin2012-05-301-1/+2
|
* s4-dns: Remove sync dns_processVolker Lendecke2012-05-301-24/+0
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Make the TCP dns server asyncVolker Lendecke2012-05-301-21/+39
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Make the UDP dns server asyncVolker Lendecke2012-05-301-18/+38
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Remove sync dns_server_process_queryVolker Lendecke2012-05-302-39/+0
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Make dns_process_send asynVolker Lendecke2012-05-303-80/+148
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Remove unused sync ask_forwarder wrapperVolker Lendecke2012-05-301-30/+0
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Make dns_server_process_query asyncVolker Lendecke2012-05-301-37/+120
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Make ask_forwarder asyncVolker Lendecke2012-05-301-43/+111
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Create a proper talloc hierarchy in create_response_rrVolker Lendecke2012-05-301-3/+15
| | | | | | Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Add debug output for unmappable WERROR to DNS errcodeVolker Lendecke2012-05-301-1/+1
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Fix some typosVolker Lendecke2012-05-302-2/+2
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Remove some break; statementsVolker Lendecke2012-05-301-8/+0
| | | | | | | We fall through implicitly, and that pattern is used elsewhere in Samba as well. Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Fix an unlikely potential memleakVolker Lendecke2012-05-301-2/+4
| | | | | | | If state was alloc'ed to NULL, in_packet to != NULL and out_packet to NULL, we leak in_packet. Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Use talloc_asprintf_append_buffer in create_response_rrVolker Lendecke2012-05-301-2/+2
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Add some NULL checks to create_response_rrVolker Lendecke2012-05-301-0/+15
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* dlz_bind9: Make the talloc destructor static and return 0.Amitay Isaacs2012-05-241-1/+2
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu May 24 03:32:50 CEST 2012 on sn-devel-104
* dlz_bind9: Fix the named crash on reloading namedAmitay Isaacs2012-05-241-1/+17
| | | | | | | | | | When reloading zones, named first creates new zone instance and then shuts down the old instance. Since ldb layer, keeps the same LDB open, talloc_free() on samdb handle, causes talloc "access after use" error. This patch keeps only single context (dlz_bind9_data) and uses reference counting to decide when to actually free the context. Since samdb handle is reused, use talloc_unlink() instead of talloc_free() on samdb handle.
* libcli/dns: make 'clidns' private library out of DNS code in WAF buildAlexander Bokovoy2012-05-231-1/+1
| | | | | | | | | | | | | | | | After consolidating DNS resolver code to lib/addns, there is one piece that still needs to be moved into a common DNS resolver library: DNS_HOSTS_FILE subsystem. Unfortunately, direct move would require lib/addns to depend on libcli/util/{ntstatus.h,werror.h} (provided by errors subsystem). In addition, moving libcli/dns/* code to lib/addns/ would make conflicting the dns_tkey_record struct. The conflict comes from source4/dns_server/ and is due to use of IDL to define the struct. lib/addns/ library also provides its own definition so we either need to keep them in sync (rewrite code in lib/addns/ a bit) or depend on generated IDL headers. Thus, making a private library and subsystem clidns is an intermediate step that allows to buy some time fore refactoring.
* Introduce system MIT krb5 build with --with-system-mitkrb5 option.Alexander Bokovoy2012-05-231-2/+5
| | | | | | | | | | | | | | | | | System MIT krb5 build also enabled by specifying --without-ad-dc When --with-system-mitkrb5 (or --withou-ad-dc) option is passed to top level configure in WAF build we are trying to detect and use system-wide MIT krb5 libraries. As result, Samba 4 DC functionality will be disabled due to the fact that it is currently impossible to implement embedded KDC server with MIT krb5. Thus, --with-system-mitkrb5/--without-ad-dc build will only produce * Samba 4 client libraries and their Python bindings * Samba 3 server (smbd, nmbd, winbindd from source3/) * Samba 3 client libraries In addition, Samba 4 DC server-specific tests will not be compiled into smbtorture. This in particular affects spoolss_win, spoolss_notify, and remote_pac rpc tests.
* s4 dns: unify error handling when bailing outKai Blin2012-05-081-12/+11
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue May 8 15:48:25 CEST 2012 on sn-devel-104
* s4-dns: Build BIND DLZ modules with correct private libraryAmitay Isaacs2012-05-071-2/+2
| | | | | | | This fixes rpath for samdb-common private library after make install. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon May 7 07:40:29 CEST 2012 on sn-devel-104
* dns server: move very verbose debug to higher level 2 -> 8Matthieu Patou2012-04-291-4/+4
|
* dlz_bind9: Also produce and install binary plugin for bind 9.9Andrew Bartlett2012-04-221-1/+1
| | | | | | | | | Thanks to Alexander Bokovoy <ab@samba.org> for the fix! Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Apr 22 10:51:57 CEST 2012 on sn-devel-104
* dlz_bind9: Build shared libraries for both BIND versions 9.8 and 9.9Amitay Isaacs2012-04-163-0/+28
| | | | | This adds #define BIND_VERSION_9_8 and keeps the current version as 9.9, so shared libraries can be built for both BIND versions.
* dlz_bind9: changes to make dlz_bind9 work with BIND 9.9.0Amitay Isaacs2012-04-162-22/+53
| | | | | | | The main changes are: DLZ_DLOPEN_VERSION changed from 1 to 2 isc_boolean_t changed from bool to int dlz_lookup() now takes 2 additional arguments
* s4 dns: Allow updating PTR records.Kai Blin2012-03-301-0/+4
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Mar 30 19:26:52 CEST 2012 on sn-devel-104
* s4 dns: Only do recursive queries when allowed/desiredKai Blin2012-03-271-7/+26
| | | | | | | | If recursive queries are switched off in smb.conf or the client doesn't ask for recursion, don't recurse. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 27 17:39:26 CEST 2012 on sn-devel-104
* s4 dns: Check smb.conf if we should allow recursionKai Blin2012-03-271-2/+3
|
* s4 dns: Allow changing the dns operation flags in handlersKai Blin2012-03-274-5/+23
|
* s4 dns: Only forward for zones we don't ownKai Blin2012-03-273-2/+33
|
* s4 dns: Forward questions we can't answer to another serverKai Blin2012-03-272-7/+80
| | | | | This makes use of libdns and currently hardcodes the forward server, but it works. :)
* s4 dns: Test deleting records and fix a small buKai Blin2012-03-111-0/+4
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Sun Mar 11 02:27:45 CET 2012 on sn-devel-104
* s4 dns: Be less chatty during testsKai Blin2012-03-111-4/+6
|
* s4 dns: Support TXT updates, add testsKai Blin2012-03-111-8/+29
|
* s4 dns: Support TXT queriesKai Blin2012-03-111-0/+11
|
* s4 dns: Add support for PTR queries.Kai Blin2012-03-091-1/+5
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Fri Mar 9 12:27:38 CET 2012 on sn-devel-104
* dlz_bind9: Log Samba DEBUG() messages to the bind9 logsAndrew Bartlett2012-03-081-2/+29
|
* s4 dns: Fix TCP handling in the DNS serverKai Blin2012-03-061-13/+13
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Mar 6 21:17:19 CET 2012 on sn-devel-104
* dlz_bind9: Match PTR records as DNS names and not just stringsAmitay Isaacs2012-03-011-1/+1
| | | | | | | This fixes the dynamic update of PTR records. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Thu Mar 1 15:58:05 CET 2012 on sn-devel-104
* s4-dns: Fix handling of TXT DNS RecordAmitay Isaacs2012-03-022-3/+21
|
* dlz_bind9: Fix handling of TXT records with multiple quoted stringsAmitay Isaacs2012-03-021-4/+33
|
* dlz_bind9: This fixes the problem with adding/deleting rdatasetAmitay Isaacs2012-03-021-11/+16
| | | | | | | | | Fix commit 169db333033b72b6f9ac1e7b23f0f2c151218c1f. This change allowed for LDB records without dnsRecord attribute to exist to prevent large number of deleted records. This change fixes the handling of missing dnsRecord attribute and correctly deleting dnsRecord attribute.
* dlz_bind9: Fix the log message levelAmitay Isaacs2012-02-211-5/+5
|
* dlz_bind9: Do not remove LDB record in subrdataset and delrdatasetAmitay Isaacs2012-02-211-13/+8
| | | | | | | | | | | This fixes the problem of large number of deleted records in DNS partitions due to frequent dynamic dns updates from windows clients. The typical pattern for dynamic update get converted into subrdataset() followed by addrdataset(). If there are no dnsRecord attributes left as a result of sub/delrdataset(), leave the LDB entry for dns name as is. The subsequent addrdataset() would add the dnsRecord attribute without re-creating the same entry.