Lines Matching refs:hostname

57  * Once a hostname has been resolved (or found to be non-existent),
341 * Scans the local host-list for a hostname.
343 * @param hostname Hostname to look for in the local host-list
344 * @return The first IP address for the hostname in the local host-list or
348 dns_lookup_local(const char *hostname)
353 if(strcmp(entry->name, hostname) == 0) {
361 if(strcmp(local_hostlist_static[i].name, hostname) == 0) {
370 /** Remove all entries from the local host-list for a specific hostname
373 * @param hostname hostname for which entries shall be removed from the local
379 dns_local_removehost(const char *hostname, const ip_addr_t *addr)
385 if (((hostname == NULL) || !strcmp(entry->name, hostname)) &&
406 * Add a hostname/IP address pair to the local host-list.
409 * @param hostname hostname of the new entry
414 dns_local_addhost(const char *hostname, const ip_addr_t *addr)
418 LWIP_ASSERT("invalid host name (NULL)", hostname != NULL);
419 namelen = strlen(hostname);
426 MEMCPY((char*)entry->name, hostname, namelen);
437 * Look up a hostname in the array of known hostnames.
440 * hostnames, it does not send out a query for the hostname if none
442 * for a hostname.
444 * @param name the hostname to look up
445 * @return the hostname's IP address, as u32_t (instead of ip_addr_t to
446 * better check for failure: != IPADDR_NONE) or IPADDR_NONE if the hostname
485 * entry (otherwise, answers might arrive late for hostname not on the list
488 * @param query hostname (not encoded) from the dns_table
489 * @param response encoded hostname in the DNS response
554 * @param name hostname to query
555 * @param id index of the hostname in dns_table, used as transaction ID in the
590 /* convert hostname into suitable query format. */
852 * Queues a new hostname to resolve and sends out a DNS query for that hostname
854 * @param name the hostname that is to be queried
917 * Resolve a hostname (string) into an IP address.
921 * - ERR_OK if hostname is a valid IP address string or the host
925 * - ERR_ARG: dns client not initialized or invalid hostname
927 * @param hostname the hostname that is to be queried
936 dns_gethostbyname(const char *hostname, ip_addr_t *addr, dns_found_callback found,
941 * or invalid hostname or invalid hostname length */
943 (!hostname) || (!hostname[0]) ||
944 (strlen(hostname) >= DNS_MAX_NAME_LENGTH)) {
949 if (strcmp(hostname, "localhost")==0) {
956 ipaddr = ipaddr_addr(hostname);
959 ipaddr = dns_lookup(hostname);
967 return dns_enqueue(hostname, found, callback_arg);