DNS lookups. More...
#include "config.h"
#include <netdb.h>
#include <string.h>
#include <sys/socket.h>
#include <time.h>
#include <unistd.h>
#include "mutt/lib.h"
#include "lib.h"
Go to the source code of this file.
Functions | |
static struct addrinfo * | mutt_getaddrinfo (const char *node, const struct addrinfo *hints) |
Lookup the host's name using getaddrinfo() | |
int | getdnsdomainname (struct Buffer *result) |
Lookup the host's name using DNS. | |
DNS lookups.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file getdomain.c.
|
static |
Lookup the host's name using getaddrinfo()
node | Hostname, got by gethostname() |
hints | Flags to pass to getaddrinfo() |
ptr | Address info |
NULL | Error |
Definition at line 102 of file getdomain.c.
int getdnsdomainname | ( | struct Buffer * | result | ) |
Lookup the host's name using DNS.
result | Buffer were result of the domain name lookup will be stored |
0 | Success |
-1 | Error |
Definition at line 124 of file getdomain.c.