summaryrefslogtreecommitdiff
path: root/source4/libcli/resolve
AgeCommit message (Collapse)AuthorFilesLines
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell4-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>
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-2/+1
2010-03-26libutil: moved the networking defines to util_net.hAndrew Tridgell2-0/+2
These were causing thousands of warnings on solaris8
2010-03-11s4:libcli/resovle File based lookup module for DNS name typesAndrew Bartlett2-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
2010-03-11s4:libcli/resolve Use a more robust way to return the string addressAndrew Bartlett1-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
2010-03-05s4-dns-ex: use autoclose on the dns child pipeAndrew Tridgell1-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>
2010-01-06s4: Fix result check for getaddrinfo()Kamen Mazdrashki1-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>
2009-09-19s4-resolve: fixed a crash bug on timeoutAndrew Tridgell1-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.
2009-09-11s4/libcli: when we get a DNS lookup failure show the nameAndrew Tridgell1-0/+2
When tracking down complex connection problems its useful knowing what name lookups failed.
2009-06-12s4:heimdal: import lorikeet-heimdal-200906080040 (commit ↵Andrew Bartlett1-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
2009-02-02s4:resolve/dns_ex: undefine class because it's used in ↵Stefan Metzmacher1-0/+5
heimdal/lib/roken/resolve.h metze
2008-12-30s4: simplify some overly-complicated logicTim Prouty1-1/+1
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher8-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
2008-12-22s4: Fix a getaddrinfo/EAI_NODATA portability issueTim Prouty1-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.
2008-12-18s4:libcli/replace: add some RESOLVE_NAME_FLAG* flagsStefan Metzmacher4-18/+43
metze
2008-12-17s4:libcli/resolve: specify the port for the resulting socket_addressesStefan Metzmacher8-9/+25
metze
2008-12-17s4:libcli/resolve: optionally return the name that belongs to the returned ↵Stefan Metzmacher8-23/+82
address E.g. this helps for DNS CNAME and SRV results. metze
2008-12-17s4:libcli/resolve: pass down flags to the resolver backendsStefan Metzmacher8-8/+29
metze
2008-12-17s4:libcli/resolve: remove all backend specific sync functionsStefan Metzmacher5-85/+0
metze
2008-12-17s4:libcli/resolve: let the "host" module use the dns_ex.c codeStefan Metzmacher1-183/+11
That means we now return all ip addresses instead of just the first one. metze
2008-12-17s4:libcli/resolve: add getaddrinfo()/dns_looup() resolvingStefan Metzmacher1-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
2008-12-17s4:libcli/resolve: don't use __RESOLVE_H__ it might be used by system ↵Stefan Metzmacher1-3/+3
headers too metze
2008-12-17s4: fix LIBEVENTS dependencies and use more forward declarationsStefan Metzmacher2-1/+1
We should only include events.h where we really need it and prefer forward declarations of 'struct event_context' metze
2008-12-11s4:libcli/resolve: add resolve_name_all*() which return all addresses not ↵Stefan Metzmacher7-49/+115
only the first one metze
2008-11-16s4:libcli/resolve: don't ignore SIGCHLD anymoreStefan Metzmacher1-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
2008-11-02Use global iconv convenience rather than global loadparm.Jelmer Vernooij1-1/+1
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-0/+1
remove some unused functions.
2008-10-12Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij1-1/+1
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-09-30- make bcast name resolution match other name resolution modules forAndrew Tridgell2-2/+8
host not found errors - when we have no resolve context return NT_STATUS_OBJECT_NAME_NOT_FOUND
2008-09-29return a more useful error message when no name resolution methods areAndrew Tridgell1-0/+4
available
2008-09-23s4-nbt: use ../libcli/nbtGünther Deschner3-3/+3
Guenther
2008-09-23s4-nbt: use private_data instead of private.Günther Deschner1-2/+2
Guenther
2008-05-14Fix an uninitialized variable introduced by 3045d391Volker Lendecke1-2/+1
Simo, please check! Volker (This used to be commit 0c09d28acf42400d26cc27675e37226060de26d3)
2008-04-21Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce3-12/+5
the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-02-21Remove more global_loadparm instance.sJelmer Vernooij1-1/+2
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-02-21Remove yet more uses of global_loadparm.Jelmer Vernooij3-7/+18
(This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
2007-12-21r26437: remove another use of global_loadparm.Jelmer Vernooij4-14/+54
(This used to be commit 703f17bc0986775bf3fe489eb5c876937dabaa9d)
2007-12-21r26426: Remove uses of global_loadparm.Jelmer Vernooij1-5/+6
(This used to be commit e1d177c8c1101965479f7ade2270490cd6fae4f2)
2007-12-21r26402: Require a talloc context in libnetif.Jelmer Vernooij2-2/+3
(This used to be commit a35e51871bbf1ab33fc316fa59e597b722769c50)
2007-12-21r26401: Don't cache interfaces context in libnetif.Jelmer Vernooij3-6/+14
(This used to be commit 9f975417cc66bfd4589da38bfd23731dbe0e6153)
2007-12-21r26397: Fix circular dependency in samba-socket.Jelmer Vernooij3-22/+47
(This used to be commit 801c8c766cb6a104751be8829593e0e123508134)
2007-12-21r26391: samba4 doesn't support 'lmhosts' as resolve moduleStefan Metzmacher1-1/+1
metze (This used to be commit cdb64b41018928122898257f65d2573109b473cc)
2007-12-21r26378: Remove use of global_loadparm.Jelmer Vernooij2-5/+6
(This used to be commit 81333de5353ce70512a3ed1d4960c09aa78954c6)
2007-12-21r26376: Add context for libcli_resolve.Jelmer Vernooij6-45/+112
(This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
2007-12-21r26325: Remove use of global_loadparm in netif.Jelmer Vernooij2-4/+5
(This used to be commit e452cb28594f23add7c00247ed39e8323aea78a6)
2007-12-21r26309: Move specification of port higher up the all stack.Jelmer Vernooij1-0/+1
(This used to be commit 7de55cde7c7fe0141c05c8a38248667ebf3a9033)
2007-12-21r26264: pass name resolve order explicitly, use torture context for settings ↵Jelmer Vernooij1-4/+2
in dssync tests. (This used to be commit c7eae1c7842f9ff8b70cce9e5d6f3ebbbe78e83b)
2007-12-21r25903: Move more files out of torture/Jelmer Vernooij1-0/+90
(This used to be commit f734df3144cdd9ff280ee1cac2c3a7f972716f5d)