2
* jabberd - Jabber Open Source Server
3
* Copyright (c) 2002 Jeremie Miller, Thomas Muldowney,
4
* Ryan Eatmon, Robert Norris
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307USA
28
#define DNS_QUERY_TYPE_A (1)
29
#define DNS_QUERY_TYPE_AAAA (2)
30
#define DNS_QUERY_TYPE_SRV (3)
32
typedef struct dns_host_st {
33
struct dns_host_st *next;
42
typedef struct dns_srv_st {
43
unsigned int priority;
51
extern dns_host_t dns_resolve(const char *zone, int type);
52
extern void dns_free(dns_host_t dns);