]> jfr.im git - irc/rqf/shadowircd.git/blame - include/res.h
Mention effect of /accept on umode +R.
[irc/rqf/shadowircd.git] / include / res.h
CommitLineData
212380e3 1/*
2 * res.h for referencing functions in res.c, reslib.c
3 *
4 * $Id: res.h 2023 2006-09-02 23:47:27Z jilles $
5 */
6
7#ifndef _CHARYBDIS_RES_H
8#define _CHARYBDIS_RES_H
9
10#include "ircd_defs.h"
11#include "common.h"
212380e3 12#include "reslib.h"
13ae2f4b 13#include "match.h"
212380e3 14#include "ircd.h"
15
16/* Maximum number of nameservers in /etc/resolv.conf we care about
17 * In hybrid, this was 2 -- but in Charybdis, we want to track
18 * a few more than that ;) --nenolod
19 */
20#define IRCD_MAXNS 10
21
22struct DNSReply
23{
24 char *h_name;
3ea5fee7 25 struct rb_sockaddr_storage addr;
212380e3 26};
27
28struct DNSQuery
29{
30 void *ptr; /* pointer used by callback to identify request */
31 void (*callback)(void* vptr, struct DNSReply *reply); /* callback to call */
32};
33
3ea5fee7 34extern struct rb_sockaddr_storage irc_nsaddr_list[];
212380e3 35extern int irc_nscount;
36
37extern void init_resolver(void);
38extern void restart_resolver(void);
39extern void delete_resolver_queries(const struct DNSQuery *);
40extern void gethost_byname_type(const char *, struct DNSQuery *, int);
3ea5fee7 41extern void gethost_byaddr(const struct rb_sockaddr_storage *, struct DNSQuery *);
212380e3 42extern void add_local_domain(char *, size_t);
43extern void report_dns_servers(struct Client *);
44
45#endif