Hi,

It appears that evdns_addrinfo functions doesn't return any static values 
configured in /etc/hosts

    struct evutil_addrinfo hints;
    ZERO_STRUCT(hints);
    hints.ai_family = AF_INET;
    hints.ai_socktype = SOCK_STREAM;

    req = evdns_getaddrinfo(a_dns,
                                         "www.zyx.com",
                                         NULL,
                                         &hints,
                                         dns_cb,
                                          ip_addr);

Is there any option to make it look at /etc/hosts as well.

Thanks a lot for the help,
Krishna


On Wednesday, November 5, 2014 5:07 PM, Krishna Sankaran 
<[email protected]> wrote:
 


Hi,

It appears that evdns_addrinfo functions doesn't return any static values 
configured in /etc/hosts

    struct evutil_addrinfo hints;
   ZERO_STRUCT(hints);
    hints.ai_family = AF_INET;
    hints.ai_socktype = SOCK_STREAM;

    req = evdns_getaddrinfo(a_dns,
                                         "www.zyx.com",
                                         NULL,
                                         &hints,
                                         dns_cb,
                                          ip_addr);

Is there any option to make it look at /etc/hosts as well.

Thanks a lot for the help,
Krishna

Reply via email to