Searched defs:hostname (Results 1 - 12 of 12) sorted by relevance

/bind-9.11.3/bin/tests/system/
H A Dfeature-test.c76 char hostname[MAXHOSTNAMELEN]; local
92 n = gethostname(hostname, sizeof(hostname));
97 fprintf(stdout, "%s\n", hostname);
/bind-9.11.3/lib/samples/
H A Dsample-gai.c23 do_gai(int family, char *hostname) { argument
32 error = getaddrinfo(hostname, "http", &hints, &res0);
35 hostname, family, gai_strerror(error));
53 printf("%s(%s/%s)=%s:%s\n", hostname,
/bind-9.11.3/lib/lwres/
H A Dgetrrset.c17 * a hostname, class, and type. hostname is a pointer a to
131 /*% Returns a set of resource records associated with a hostname, class, and type. hostname is a pointer a to null-terminated string. */
133 lwres_getrrsetbyname(const char *hostname, unsigned int rdclass, argument
172 lwresult = lwres_getrdatabyname(lwrctx, hostname,
H A Dgetaddrinfo.c30 * numbers for host hostname and service servname. The function is the
32 * RFC2133. hostname and servname are pointers to null-terminated strings
33 * or NULL. hostname is either a host name or a numeric host address
48 * char *ai_canonname; // canonical name for hostname
79 * containing the canonical name of the specified hostname in
83 * case, if the hostname argument is a NULL pointer, then the IP
93 * will be set to the loopback address if hostname is a NULL
96 * If ai_flags is set to AI_NUMERICHOST it indicates that hostname
127 * listed in gai_strerror() if an error occurs. If both hostname and
163 static int add_ipv4(const char *hostname, in
177 lwres_getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument
563 add_ipv4(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
626 add_ipv6(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
[all...]
/bind-9.11.3/lib/bind9/
H A Dgetaddresses.c40 bind9_getaddresses(const char *hostname, in_port_t port, argument
55 REQUIRE(hostname != NULL);
72 if (inet_pton(AF_INET, hostname, &in4) == 1) {
79 } else if (strlen(hostname) <= 127U) {
83 strlcpy(tmpbuf, hostname, sizeof(tmpbuf));
140 result = getaddrinfo(hostname, NULL, &hints, &ai);
183 he = gethostbyname(hostname);
/bind-9.11.3/contrib/sdb/ldap/
H A Dldapdb.c62 char *hostname; member in struct:ldapdb_data
199 *ldp = ldap_open(data->hostname, data->portno);
487 if (data->hostname != NULL)
488 isc_mem_free(ns_g_mctx, data->hostname);
628 data->hostname = isc_mem_strdup(ns_g_mctx, data->hostport + (*data->hostport == '[' ? 1 : 0));
629 if (data->hostname == NULL) {
635 (s = strchr(data->hostname, ']')) != NULL )
638 s = data->hostname;
H A Dzone2ldap.c76 /* Put a hostname into a char ** array */
77 char **hostname_to_dn_list (char *hostname, char *zone, unsigned int flags);
620 /* take a hostname, and split it into a char ** of the dc parts,
625 hostname_to_dn_list (char *hostname, char *zone, unsigned int flags) argument
633 zname = strdup (hostname);
/bind-9.11.3/bin/dig/
H A Dhost.c141 " [-R number] [-m flag] hostname [server]\n"
666 char hostname[MXNAME]; local
849 strlcpy(hostname, argv[isc_commandline_index], sizeof(hostname));
859 if (get_reverse(store, sizeof(store), hostname,
866 strlcpy(lookup->textname, hostname, sizeof(lookup->textname));
/bind-9.11.3/lib/irs/
H A Dgetaddrinfo.c15 * numbers for host hostname and service servname as defined in RFC3493.
16 * hostname and servname are pointers to null-terminated strings
17 * or NULL. hostname is either a host name or a numeric host address
32 * char *ai_canonname; // canonical name for hostname
63 * containing the canonical name of the specified hostname in
67 * case, if the hostname argument is a NULL pointer, then the IP
77 * will be set to the loopback address if hostname is a NULL
80 * If ai_flags is set to AI_NUMERICHOST it indicates that hostname
110 * listed in gai_strerror() if an error occurs. If both hostname and
166 resolve_name(int family, const char *hostname, in
187 getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *hints, struct addrinfo **res) argument
533 make_resstate(isc_mem_t *mctx, gai_statehead_t *head, const char *hostname, const char *domain, gai_resstate_t **statep) argument
618 make_resstates(isc_mem_t *mctx, const char *hostname, gai_statehead_t *head, irs_resconf_t *resconf) argument
894 resolve_name(int family, const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
1127 add_ipv4(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
1150 add_ipv6(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
[all...]
/bind-9.11.3/contrib/dlz/modules/mysqldyn/
H A Ddlz_mysqldyn_mod.c492 * Generate a full hostname from a (presumably relative) name 'name'
759 * might be an IP address or a hostname. (XXX: switch
1241 char hostname[1024]; local
1245 fqhn(row[0], zone, hostname);
1246 result = state->putnamedrr(allnodes, hostname,
/bind-9.11.3/bin/named/include/named/
H A Dserver.h55 isc_boolean_t hostname_set; /*%< User has set hostname */
56 char * hostname; /*%< User-specified hostname */ member in struct:ns_server
57 /*% Use hostname for server id */
/bind-9.11.3/bin/named/
H A Dserver.c3184 /* "hostname" is interpreted as boolean ISC_TRUE */
8302 result = ns_config_get(maps, "hostname", &obj);
8304 CHECKM(setoptstring(server, &server->hostname, obj), "strdup");
8314 /* The parser translates "hostname" to ISC_TRUE */
8901 server->hostname = NULL;
9024 if (server->hostname != NULL)
9025 isc_mem_free(server->mctx, server->hostname);
10549 char line[1024], hostname[256]; local
10580 result = ns_os_gethostname(hostname, sizeof(hostname));
[all...]

Completed in 59 milliseconds