2007/2/16, Colin Whittaker [EMAIL PROTECTED]:
Well, that didn't really work... The for loop doesn't traverse when there
is one server.
Thanks for the patches. I tried to figure out what the surrounding
code does, and I think the logic calling sres_next_server() and
reacting to
Ok, I took a stab a this, but I think you may have a better or more
complete solution.
I basically just timed out the dns_icmp and dns_error on the servers.
Here is the diff:
sres.c
2688a2689,2690
#define DNS_ICMP_TIMEOUT 60 // Retry after 1 min
and ICMP error
#define DNS_ERROR_TIMEOUT 3600
Well, that didn't really work... The for loop doesn't traverse when
there is one server.
Here is another attempt:
sres.c
2688a2689,2690
#define DNS_ICMP_TIMEOUT 60 // Retry after 1 min
and ICMP error
#define DNS_ERROR_TIMEOUT 3600 // Retry after 1 hour and
"perm" error
2697a2700
time_t now
On 12/11/06, Colin Whittaker [EMAIL PROTECTED] wrote:
I've started using DNS, and it appears that I must specify the FQDN for
the proxy or registrar, and that the DNS server must have any entry.
Is there a way to get the sresolv module to use the /etc/hosts file ?
I've setup nsswitch.conf to
Pekka Pessi wrote:
On 12/11/06, Colin Whittaker [EMAIL PROTECTED] wrote:
I've started using DNS, and it appears that I must specify the FQDN for
the proxy or registrar, and that the DNS server must have any entry.
Is there a way to get the sresolv module to use the /etc/hosts file