summaryrefslogtreecommitdiffstats
path: root/source4/dns_server/dns_query.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:dns_server: make use of gensec_update_ev()Stefan Metzmacher2014-03-271-2/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* bug #10471: Don't respond with NXDOMAIN to records that exist with another typeKai Blin2014-03-041-6/+8
| | | | | | | | | | DNS queries for records with the wrong type need to trigger an empty response with RCODE_OK instead of returning NXDOMAIN. This adds a test and fixes bug #10471 Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* dns: Support larger queries when asking forwarderKai Blin2013-05-261-0/+13
| | | | | | | This should fix bug #9632 Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* dns: Add support for MX queriesKai Blin2013-05-161-0/+8
| | | | | | | | | | Due to an oversight, the internal DNS server supports MX record updates, but not MX record queries. Add support for MX queries and tests. This should fix bug #9485 Signed-off-by: Kai Blin <kai@samba.org> Reviewed-By: Amitay Isaacs <amitay@gmail.com>
* dns: Use new DNS debugclass in DNS serverKai Blin2013-05-161-0/+3
| | | | | Signed-off-by: Kai Blin <kai@samba.org> Reviewed-By: Amitay Isaacs <amitay@gmail.com>
* s4 dns: Make debug output less noisyKai Blin2012-09-071-1/+1
| | | | | Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Fri Sep 7 00:31:56 CEST 2012 on sn-devel-104
* s4 dns: When we got a TKEY, we need to remember which key to use for signingKai Blin2012-09-051-2/+12
|
* s4 dns: TKEY record needs to remember incoming algorithmKai Blin2012-09-051-1/+9
| | | | Samba3 (and older windows versions) use gss.microsoft.com, win7 (and the RFC) use gss-tsig
* s4 dns: Move dns_find_tkey to an extra fileKai Blin2012-09-051-55/+31
|
* s4 dns: Revert erroneous push from wrong branchKai Blin2012-09-051-52/+58
| | | | | | | I've pushed the wrong branch for this, sorry about that. Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Wed Sep 5 14:10:54 CEST 2012 on sn-devel-104
* s4 dns: Handle GSS-TSIG signaturesKai Blin2012-09-051-58/+52
|
* s4 dns: Store TKEYs in a ringbufferKai Blin2012-08-311-55/+70
| | | | | | | This stops us from potentially being DoSed by tons of TKEYs Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Fri Aug 31 22:46:01 CEST 2012 on sn-devel-104
* s4 dns: Negotiate GSSAPI-based TKEYsKai Blin2012-08-311-0/+224
| | | | | Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Fri Aug 31 10:38:35 CEST 2012 on sn-devel-104
* 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_server_process_queryVolker Lendecke2012-05-301-31/+0
| | | | Signed-off-by: Kai Blin <kai@samba.org>
* s4-dns: Make dns_process_send asynVolker Lendecke2012-05-301-2/+2
| | | | 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: Fix some typosVolker Lendecke2012-05-301-1/+1
| | | | 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>
* 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: Allow changing the dns operation flags in handlersKai Blin2012-03-271-0/+2
|
* s4 dns: Only forward for zones we don't ownKai Blin2012-03-271-2/+3
|
* s4 dns: Forward questions we can't answer to another serverKai Blin2012-03-271-6/+79
| | | | | This makes use of libdns and currently hardcodes the forward server, but it works. :)
* 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
* s4 dns: Move record lookup to dns_utils.cKai Blin2011-12-171-36/+7
|
* s4 dns: Handle QCLASS_NONE queriesKai Blin2011-11-041-0/+5
|
* s4 dns: Support DNS_QTYPE_ALL queriesKai Blin2011-11-041-109/+59
|
* dns: Do as BIND and MS DNS and drop quries with qdcount != 1Kai Blin2011-09-281-5/+11
| | | | | Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Sep 28 03:37:22 CEST 2011 on sn-devel-104
* dns: The QCLASS is called IN, not IPKai Blin2011-09-281-6/+6
|
* s4:dns_server - fix counter typesMatthias Dieter Wallnöfer2010-10-231-3/+2
|
* s4 dns: Switch to WERRORKai Blin2010-10-231-26/+26
|
* s4 dns: Split up the code into multiple files for easier developmentKai Blin2010-10-231-0/+233