summaryrefslogtreecommitdiffstats
path: root/source4/libcli/resolve
Commit message (Collapse)AuthorAgeFilesLines
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-201-2/+2
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* s4-ipv6: fixed a crash in the IPv6 DNS codeAndrew Tridgell2011-06-071-1/+1
|
* s4-ipv6: fixed DNS handling with new IPv6 codeAndrew Tridgell2011-06-071-1/+16
|
* s4-ipv6: allow for IPv6 in resolver top level callsAndrew Tridgell2011-06-061-4/+2
|
* s4-ipv6: cope with IPv6 in our async DNS client codeAndrew Tridgell2011-06-061-28/+28
|
* s4-ipv6: update callers to load_interface_list()Andrew Tridgell2011-06-062-2/+2
|
* do an explicit A record search for SRV entriesLuke Howard2011-05-131-4/+22
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-082-4/+4
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* s4-libcli Remove resolve_name() as it conflicts with Samba3.Andrew Bartlett2011-05-031-12/+0
| | | | | | | This was just a wrapper around resolve_name_ex(), so just call that instead. Andrew Bartlett
* s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij2010-12-111-1/+1
| | | | | | | | This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
* s4:libcli/resolve/dns_ex.c - fix "const" warningMatthias Dieter Wallnöfer2010-10-031-1/+2
|
* s4-dns: avoid search domains expansion in DNS resolverAndrew Tridgell2010-09-271-0/+8
| | | | add a '.' if the name contains a '.' already, but not at the end
* s4:libcli/resolve/file.c - fix "const" warningMatthias Dieter Wallnöfer2010-09-241-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4-resolve: the file backend should not look at the name typeAndrew Tridgell2010-09-151-1/+1
| | | | | | this matches the behaviour of our DNS resolver Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-resolve: added resolve_name_multiple_recv()Andrew Tridgell2010-09-151-0/+34
| | | | | | this allows for multiple replies to a SRV lookup Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dns: fixed lookup of SRV records using dns_exAndrew Tridgell2010-09-151-2/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-resolve: added resolve_name_ex_send()Andrew Tridgell2010-09-021-8/+33
| | | | | | this allows access to the flags that control name resolution Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-resolve: add a default domain for unqualified names in file backendAndrew Tridgell2010-09-021-5/+15
| | | | this better emulates what happens with real DNS
* s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell2010-07-164-7/+7
| | | | | | | this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-2/+1
|
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-262-0/+2
| | | | These were causing thousands of warnings on solaris8
* s4:libcli/resovle File based lookup module for DNS name typesAndrew Bartlett2010-03-112-0/+152
| | | | | | | | This uses the new common code to read a file containing DNS host names, so we don't have to use real DNS lookups in our test environment. Andrew Bartlett
* s4:libcli/resolve Use a more robust way to return the string addressAndrew Bartlett2010-03-111-2/+11
| | | | | | | | | By going via these tevent functions, we avoid needing to dereference the struct socket_address, which may contain a 'struct sockaddr' or strings. The new dns_host_file resolver returns in the form of a struct sockaddr. Andrew Bartlett
* s4-dns-ex: use autoclose on the dns child pipeAndrew Tridgell2010-03-051-2/+1
| | | | | | | I'm hoping this will fix an occasional segfault I've noticed where epoll still calls events on a closed fde Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4: Fix result check for getaddrinfo()Kamen Mazdrashki2010-01-061-6/+11
| | | | | | | | | I think this completes commit 50feca550eed7828198b7c0fc5f0e5ddc863313d. Now result should be handled correctly both for systems that support EAI_NODATA but returns EAI_NONAME (as my Ubuntu 9.x) and systems that doesn't support EAI_NODATA at all. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-resolve: fixed a crash bug on timeoutAndrew Tridgell2009-09-191-3/+5
| | | | | | | We were creating the name resolution context as a child of lp_ctx, which meant when we gave up on a connection the timer on name resolution kept running, and when it timed out the callback crashed as the socket was already removed.
* s4/libcli: when we get a DNS lookup failure show the nameAndrew Tridgell2009-09-111-0/+2
| | | | | When tracking down complex connection problems its useful knowing what name lookups failed.
* s4:heimdal: import lorikeet-heimdal-200906080040 (commit ↵Andrew Bartlett2009-06-121-16/+16
| | | | | | | | | | | 904d0124b46eed7a8ad6e5b73e892ff34b6865ba) Also including the supporting changes required to pass make test A number of heimdal functions and constants have changed since we last imported a tree (for the better, but inconvenient for us). Andrew Bartlett
* s4:resolve/dns_ex: undefine class because it's used in ↵Stefan Metzmacher2009-02-021-0/+5
| | | | | | heimdal/lib/roken/resolve.h metze
* s4: simplify some overly-complicated logicTim Prouty2008-12-301-1/+1
|
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-298-14/+14
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* s4: Fix a getaddrinfo/EAI_NODATA portability issueTim Prouty2008-12-221-0/+4
| | | | | | FreeBSD has explicitly deprecated EAI_NODATA as a return value from getaddrinfo by removing it from netdb.h. On systems that don't have EAI_NODATA, EAI_NONAME should be used instead.
* s4:libcli/replace: add some RESOLVE_NAME_FLAG* flagsStefan Metzmacher2008-12-184-18/+43
| | | | metze
* s4:libcli/resolve: specify the port for the resulting socket_addressesStefan Metzmacher2008-12-178-9/+25
| | | | metze
* s4:libcli/resolve: optionally return the name that belongs to the returned ↵Stefan Metzmacher2008-12-178-23/+82
| | | | | | | | address E.g. this helps for DNS CNAME and SRV results. metze
* s4:libcli/resolve: pass down flags to the resolver backendsStefan Metzmacher2008-12-178-8/+29
| | | | metze
* s4:libcli/resolve: remove all backend specific sync functionsStefan Metzmacher2008-12-175-85/+0
| | | | metze
* s4:libcli/resolve: let the "host" module use the dns_ex.c codeStefan Metzmacher2008-12-171-183/+11
| | | | | | That means we now return all ip addresses instead of just the first one. metze
* s4:libcli/resolve: add getaddrinfo()/dns_looup() resolvingStefan Metzmacher2008-12-171-0/+484
| | | | | | | | | | | | | | | | | | | This "dns_ex" module provides flexible lookup methods for dns lookups. The getaddrinfo() part looks at /etc/hosts and dns. As it handles CNAME replies badly we fallback to use dns_lookup(name, "A"). The dns_lookup() makes DNS SRV lookups possible. This module is not a real resolve module, it's just a generic helper as the nbtlist.c code is. The next step will be that the "host" module will use the dns_ex.c code. metze
* s4:libcli/resolve: don't use __RESOLVE_H__ it might be used by system ↵Stefan Metzmacher2008-12-171-3/+3
| | | | | | headers too metze
* s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher2008-12-172-1/+1
| | | | | | | We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
* s4:libcli/resolve: add resolve_name_all*() which return all addresses not ↵Stefan Metzmacher2008-12-117-49/+115
| | | | | | only the first one metze
* s4:libcli/resolve: don't ignore SIGCHLD anymoreStefan Metzmacher2008-11-161-7/+15
| | | | | | | | | | | | This broke ldbedit against a LDAP server, as the editor is called by "system()" which relies on getting something useful out of waitpid(). TODO: we should create a generic infrastructure to handle temporary forks and integrate the signal handling with signal events there. metze
* Use global iconv convenience rather than global loadparm.Jelmer Vernooij2008-11-021-1/+1
|
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+1
| | | | remove some unused functions.
* Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij2008-10-121-1/+1
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* - make bcast name resolution match other name resolution modules forAndrew Tridgell2008-09-302-2/+8
| | | | | | host not found errors - when we have no resolve context return NT_STATUS_OBJECT_NAME_NOT_FOUND
* return a more useful error message when no name resolution methods areAndrew Tridgell2008-09-291-0/+4
| | | | available