1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) 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 * SPDX-License-Identifier: curl
22 *
23 ***************************************************************************/
24
25#include "curl_setup.h"
26
27/***********************************************************************
28 * Only for builds using synchronous name resolves
29 **********************************************************************/
30#ifdef CURLRES_SYNCH
31
32#ifdef HAVE_NETINET_IN_H
33#include <netinet/in.h>
34#endif
35#ifdef HAVE_NETDB_H
36#include <netdb.h>
37#endif
38#ifdef HAVE_ARPA_INET_H
39#include <arpa/inet.h>
40#endif
41#ifdef __VMS
42#include <in.h>
43#include <inet.h>
44#endif
45
46#include "urldata.h"
47#include "sendf.h"
48#include "hostip.h"
49#include "hash.h"
50#include "share.h"
51#include "url.h"
52#include "curl_memory.h"
53/* The last #include file should be: */
54#include "memdebug.h"
55
56/*
57 * Function provided by the resolver backend to set DNS servers to use.
58 */
59CURLcode Curl_set_dns_servers(struct Curl_easy *data,
60 char *servers)
61{
62 (void)data;
63 (void)servers;
64 return CURLE_NOT_BUILT_IN;
65
66}
67
68/*
69 * Function provided by the resolver backend to set
70 * outgoing interface to use for DNS requests
71 */
72CURLcode Curl_set_dns_interface(struct Curl_easy *data,
73 const char *interf)
74{
75 (void)data;
76 (void)interf;
77 return CURLE_NOT_BUILT_IN;
78}
79
80/*
81 * Function provided by the resolver backend to set
82 * local IPv4 address to use as source address for DNS requests
83 */
84CURLcode Curl_set_dns_local_ip4(struct Curl_easy *data,
85 const char *local_ip4)
86{
87 (void)data;
88 (void)local_ip4;
89 return CURLE_NOT_BUILT_IN;
90}
91
92/*
93 * Function provided by the resolver backend to set
94 * local IPv6 address to use as source address for DNS requests
95 */
96CURLcode Curl_set_dns_local_ip6(struct Curl_easy *data,
97 const char *local_ip6)
98{
99 (void)data;
100 (void)local_ip6;
101 return CURLE_NOT_BUILT_IN;
102}
103
104#endif /* truly sync */
105