--- dns_123.c Thu Mar 19 21:56:30 2009 +++ dns_new.c Thu Feb 19 20:17:12 2009 @@ -308,6 +305,13 @@ dns_lookup(const char *name) { u8_t i; +#ifdef DNS_HAS_HOSTS_FILE + u32_t result; + + /* First check any local hosts file */ + result = sys_hosts_file_dns_lookup(name); + if (result != 0) return result; +#endif /* Walk through name list, return entry if found. If not, return NULL. */ for (i = 0; i < DNS_TABLE_SIZE; ++i) {