1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 ***************************************************************************/
22
23#include "curl_setup.h"
24
25/***********************************************************************
26 * Only for builds using synchronous name resolves
27 **********************************************************************/
28#ifdef CURLRES_SYNCH
29
30#ifdef HAVE_NETINET_IN_H
31#include <netinet/in.h>
32#endif
33#ifdef HAVE_NETDB_H
34#include <netdb.h>
35#endif
36#ifdef HAVE_ARPA_INET_H
37#include <arpa/inet.h>
38#endif
39#ifdef __VMS
40#include <in.h>
41#include <inet.h>
42#endif
43
44#ifdef HAVE_PROCESS_H
45#include <process.h>
46#endif
47
48#include "urldata.h"
49#include "sendf.h"
50#include "hostip.h"
51#include "hash.h"
52#include "share.h"
53#include "url.h"
54#include "curl_memory.h"
55/* The last #include file should be: */
56#include "memdebug.h"
57
58/*
59 * Function provided by the resolver backend to set DNS servers to use.
60 */
61CURLcode Curl_set_dns_servers(struct Curl_easy *data,
62 char *servers)
63{
64 (void)data;
65 (void)servers;
66 return CURLE_NOT_BUILT_IN;
67
68}
69
70/*
71 * Function provided by the resolver backend to set
72 * outgoing interface to use for DNS requests
73 */
74CURLcode Curl_set_dns_interface(struct Curl_easy *data,
75 const char *interf)
76{
77 (void)data;
78 (void)interf;
79 return CURLE_NOT_BUILT_IN;
80}
81
82/*
83 * Function provided by the resolver backend to set
84 * local IPv4 address to use as source address for DNS requests
85 */
86CURLcode Curl_set_dns_local_ip4(struct Curl_easy *data,
87 const char *local_ip4)
88{
89 (void)data;
90 (void)local_ip4;
91 return CURLE_NOT_BUILT_IN;
92}
93
94/*
95 * Function provided by the resolver backend to set
96 * local IPv6 address to use as source address for DNS requests
97 */
98CURLcode Curl_set_dns_local_ip6(struct Curl_easy *data,
99 const char *local_ip6)
100{
101 (void)data;
102 (void)local_ip6;
103 return CURLE_NOT_BUILT_IN;
104}
105
106#endif /* truly sync */
107