}
-struct hostent *dns_forward(
- const char *name)
-{
- struct hostent *host;
-
- if ((host = gethostbyname(name)))
- return host;
- else
- return NULL;
-}
-
-
static struct dns_results *findip(
struct mtr_ctl *ctl,
ip_t * ip)
extern char *dns_lookup2(
struct mtr_ctl *ctl,
ip_t * address);
-extern struct hostent *dns_forward(
- const char *name);
extern char *strlongip(
sa_family_t family,
ip_t * ip);
struct mtr_ctl *ctl = (struct mtr_ctl *) data;
struct hostent *addr;
- addr = dns_forward(gtk_entry_get_text(GTK_ENTRY(entry)));
+ addr = gethostbyname(gtk_entry_get_text(GTK_ENTRY(entry)));
if (addr) {
net_reopen(ctl, addr);
net_send_batch(ctl);