Searched refs:hostname (Results 1 - 25 of 26) sorted by relevance

12

/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/bind9/include/bind9/
H A Dgetaddresses.h24 bind9_getaddresses(const char *hostname, in_port_t port,
27 * Use the system resolver to get the addresses associated with a hostname.
29 * If a hostname lookup is performed and addresses of an unknown family is
37 *\li 'hostname' is not NULL.
46 *\li #ISC_R_FAMILYNOSUPPORT - 'hostname' is an IPv6 address, and IPv6 is
/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/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/lib/lwres/
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...]
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,
/bind-9.11.3/contrib/queryperf/missing/
H A Dgetaddrinfo.c109 "Address family for hostname not supported", /* EAI_ADDRFAMILY */
115 "No address associated with hostname", /* EAI_NODATA */
116 "hostname nor servname provided, or not known",/* EAI_NONAME */
199 getaddrinfo(hostname, servname, hints, res)
200 const char *hostname, *servname;
227 if (hostname == NULL && servname == NULL)
330 * hostname == NULL.
334 if (hostname == NULL) {
374 /* hostname as numeric name */
376 if (inet_pton(afdl[i].a_af, hostname, pto
[all...]
/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/bin/tests/system/builtin/ns2/
H A Dnamed.conf25 server-id hostname;
/bind-9.11.3/bin/tests/system/builtin/ns3/
H A Dnamed.conf25 hostname "this.is.a.test.of.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/tests/system/checkconf/
H A Dbad-many.conf26 hostname none;
H A Dgood.conf36 hostname none;
138 zone "hostname.bind" chaos {
140 database "_builtin hostname";
/bind-9.11.3/bin/tests/system/builtin/
H A Dtests.sh70 echo "I:Checking that default hostname works for query ($n)"
71 $DIG +short hostname.bind txt ch @10.53.0.1 -p 5300 > dig.out.ns1.$n
77 echo "I:Checking that custom hostname works for query ($n)"
78 $DIG +short hostname.bind txt ch @10.53.0.3 -p 5300 > dig.out.ns3.$n
79 grep "^\"this.is.a.test.of.hostname\"$" dig.out.ns3.$n > /dev/null || ret=1
92 echo "I:Checking that server-id hostname works for query ($n)"
99 echo "I:Checking that server-id hostname works for EDNS name server ID request ($n)"
/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/bin/named/
H A Dbuiltin.c13 * The built-in "version", "hostname", "id", "authors" and "empty" databases.
333 if (ns_g_server->hostname == NULL)
336 return (put_txt(lookup, ns_g_server->hostname));
466 else if (strcmp(argv[0], "hostname") == 0)
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...]
/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/contrib/dnsperf-2.1.0.0-1/
H A Dconfigure560 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
4063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
/bind-9.11.3/contrib/perftcpdns/
H A Dconfigure560 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1478 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
/bind-9.11.3/contrib/queryperf/
H A Dconfigure540 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1485 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3517 on `(hostname || uname -n) 2>/dev/null | sed 1q`
/bind-9.11.3/unit/atf-src/bootstrap/
H A Dtestsuite1156 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
/bind-9.11.3/
H A Dconfigure581 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
2520 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
24385 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25629 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:

Completed in 237 milliseconds

12