1999-04-17 00:37:12 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2001-12-11 15:32:16 +00:00
|
|
|
| PHP Version 4 |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2002-12-31 16:08:15 +00:00
|
|
|
| Copyright (c) 1997-2003 The PHP Group |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
|
|
| available at through the world-wide-web at |
|
|
|
|
| http://www.php.net/license/2_02.txt. |
|
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2002-11-19 02:34:13 +00:00
|
|
|
| Authors: The typical suspects |
|
|
|
|
| Marcus Boerger <helly@php.net> |
|
|
|
|
| Pollita <pollita@php.net> |
|
1999-04-17 00:37:12 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
*/
|
1999-04-17 00:37:12 +00:00
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#ifndef DNS_H
|
|
|
|
#define DNS_H
|
1999-04-17 00:37:12 +00:00
|
|
|
|
2002-11-19 02:34:13 +00:00
|
|
|
#if HAVE_RES_NMKQUERY & HAVE_RES_NSEND & HAVE_DN_EXPAND & HAVE_DN_SKIPNAME
|
|
|
|
#define HAVE_DNS_FUNCS 1
|
|
|
|
#endif
|
|
|
|
|
1999-05-16 11:19:26 +00:00
|
|
|
PHP_FUNCTION(gethostbyaddr);
|
|
|
|
PHP_FUNCTION(gethostbyname);
|
|
|
|
PHP_FUNCTION(gethostbynamel);
|
2001-03-16 14:45:46 +00:00
|
|
|
|
|
|
|
#if HAVE_RES_SEARCH && !(defined(__BEOS__)||defined(PHP_WIN32))
|
2002-11-19 02:34:13 +00:00
|
|
|
|
|
|
|
PHP_FUNCTION(dns_check_record);
|
2003-02-24 00:09:18 +00:00
|
|
|
# if HAVE_DN_SKIPNAME && HAVE_DN_EXPAND
|
2003-02-21 08:45:58 +00:00
|
|
|
PHP_FUNCTION(dns_get_mx);
|
2003-02-24 00:09:18 +00:00
|
|
|
# endif
|
2002-11-19 02:34:13 +00:00
|
|
|
|
|
|
|
# if HAVE_DNS_FUNCS
|
|
|
|
|
|
|
|
PHP_FUNCTION(dns_get_record);
|
|
|
|
|
|
|
|
PHP_MINIT_FUNCTION(dns);
|
|
|
|
|
|
|
|
# endif
|
1999-04-17 00:37:12 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INT16SZ
|
|
|
|
#define INT16SZ 2
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INT32SZ
|
|
|
|
#define INT32SZ 4
|
|
|
|
#endif
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* DNS_H */
|