Re: Can I specify the resolver timeout?

2004-05-31 Thread adp
It would be nice to see this in 4.10 or 4.11 (if there will be one). We
aren't looking to move to 5.x within the next several months, if not longer.
FreeBSD is just too stable to upgrade. :)

- Original Message -
From: "Giorgos Keramidas" <[EMAIL PROTECTED]>
To: "Matthew Seaman" <[EMAIL PROTECTED]>; "adp"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, May 31, 2004 3:16 AM
Subject: Re: Can I specify the resolver timeout?


> On 2004-05-31 08:20, Matthew Seaman <[EMAIL PROTECTED]>
wrote:
> > On Mon, May 31, 2004 at 06:38:58AM +0300, Giorgos Keramidas wrote:
> > > Hmmm, I *am* running 5.X.  Looking at the manpage source I see that
this
> > > option's missing from the 4.X sources :(
> >
> > This came up on the list quite recently.  The source for the FreeBSD
> > resolver.5 man page (/usr/src/share/man/man5/resolver.5) is maintained
> > separately from the equivalent BIND source contributed from the ISC
> > (/usr/src/contrib/bind/doc/man/resolver.5) The 'timeout:' and
> > 'attempts:' entries in the FreeBSD man page are there in HEAD and have
> > been for 5 months, but (despite the CVS comment on version 1.10 of the
> > page) haven't been MFC'd to RELENG_4 or RELENG_5_2 yet.
> >
> > Whether this means that support is available in the underlying
> > resolver libraries is another question.
>
> I just looked at the sources of src/lib/libc/net/res_init.c and it seems
> that support for "timeout:" only exists in CURRENT.  RELENG_4,
> RELENG_5_0, RELENG_5_1 and RELENG_5_2 lack the part of res_init.c that
> sets the timeout to the value configured in the `resolv.conf' file.
>
> I'm not sure if there are any plans to merge this back to 4.X or the
> release branches of 5.X though.
>
> - Giorgos
>
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can I specify the resolver timeout?

2004-05-31 Thread Giorgos Keramidas
On 2004-05-31 08:20, Matthew Seaman <[EMAIL PROTECTED]> wrote:
> On Mon, May 31, 2004 at 06:38:58AM +0300, Giorgos Keramidas wrote:
> > Hmmm, I *am* running 5.X.  Looking at the manpage source I see that this
> > option's missing from the 4.X sources :(
>
> This came up on the list quite recently.  The source for the FreeBSD
> resolver.5 man page (/usr/src/share/man/man5/resolver.5) is maintained
> separately from the equivalent BIND source contributed from the ISC
> (/usr/src/contrib/bind/doc/man/resolver.5) The 'timeout:' and
> 'attempts:' entries in the FreeBSD man page are there in HEAD and have
> been for 5 months, but (despite the CVS comment on version 1.10 of the
> page) haven't been MFC'd to RELENG_4 or RELENG_5_2 yet.
>
> Whether this means that support is available in the underlying
> resolver libraries is another question.

I just looked at the sources of src/lib/libc/net/res_init.c and it seems
that support for "timeout:" only exists in CURRENT.  RELENG_4,
RELENG_5_0, RELENG_5_1 and RELENG_5_2 lack the part of res_init.c that
sets the timeout to the value configured in the `resolv.conf' file.

I'm not sure if there are any plans to merge this back to 4.X or the
release branches of 5.X though.

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can I specify the resolver timeout?

2004-05-31 Thread Matthew Seaman
On Mon, May 31, 2004 at 06:38:58AM +0300, Giorgos Keramidas wrote:
> On 2004-05-30 22:26, adp <[EMAIL PROTECTED]> wrote:
> >"Giorgos Keramidas" <[EMAIL PROTECTED]> wrote:
> >>On 2004-05-30 12:04, adp <[EMAIL PROTECTED]> wrote:
> >>> Is there a way to override this timeout value? I know it is possible
> >>> on other UNIX systems, such as AIX.
> >>>
> >>> Basically, we want to get a response within 3 seconds or the resolver
> >>> should try the second DNS server.
> >>
> >> Look at resolv.conf(5).  More specifically at the "options timeout" option.
> >
> > I did in fact look at the manpage and did not find that option. I just
> > looked again and I still can't find it.
> >
> > # man resolv.conf | grep -i timeout
> > # uname -r
> > 4.10-BETA
> >
> > Are you running FreeBSD 5.x perhaps?
> >
> > If the option is available and my manpage is wrong then that's fine.
> > Just let me know. :)
> 
> Hmmm, I *am* running 5.X.  Looking at the manpage source I see that this
> option's missing from the 4.X sources :(

This came up on the list quite recently.  The source for the FreeBSD
resolver.5 man page (/usr/src/share/man/man5/resolver.5) is maintained
separately from the equivalent BIND source contributed from the ISC
(/usr/src/contrib/bind/doc/man/resolver.5) The 'timeout:' and
'attempts:' entries in the FreeBSD man page are there in HEAD and have
been for 5 months, but (despite the CVS comment on version 1.10 of the
page) haven't been MFC'd to RELENG_4 or RELENG_5_2 yet.

Whether this means that support is available in the underlying
resolver libraries is another question.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpF2u7lAhMVW.pgp
Description: PGP signature


Re: Can I specify the resolver timeout?

2004-05-30 Thread Giorgos Keramidas
On 2004-05-30 22:26, adp <[EMAIL PROTECTED]> wrote:
>"Giorgos Keramidas" <[EMAIL PROTECTED]> wrote:
>>On 2004-05-30 12:04, adp <[EMAIL PROTECTED]> wrote:
>>> Is there a way to override this timeout value? I know it is possible
>>> on other UNIX systems, such as AIX.
>>>
>>> Basically, we want to get a response within 3 seconds or the resolver
>>> should try the second DNS server.
>>
>> Look at resolv.conf(5).  More specifically at the "options timeout" option.
>
> I did in fact look at the manpage and did not find that option. I just
> looked again and I still can't find it.
>
> # man resolv.conf | grep -i timeout
> # uname -r
> 4.10-BETA
>
> Are you running FreeBSD 5.x perhaps?
>
> If the option is available and my manpage is wrong then that's fine.
> Just let me know. :)

Hmmm, I *am* running 5.X.  Looking at the manpage source I see that this
option's missing from the 4.X sources :(

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can I specify the resolver timeout?

2004-05-30 Thread adp
I did in fact look at the manpage and did not find that option. I just
looked again and I still can't find it.

# man resolv.conf | grep -i timeout
# uname -r
4.10-BETA

Are you running FreeBSD 5.x perhaps?

If the option is available and my manpage is wrong then that's fine. Just
let me know. :)

- Original Message -
From: "Giorgos Keramidas" <[EMAIL PROTECTED]>
To: "adp" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, May 30, 2004 10:12 PM
Subject: Re: Can I specify the resolver timeout?


> On 2004-05-30 12:04, adp <[EMAIL PROTECTED]> wrote:
> > Is there a way to override this timeout value? I know it is possible
> > on other UNIX systems, such as AIX.
> >
> > Basically, we want to get a response within 3 seconds or the resolver
> > should try the second DNS server.
>
> Look at resolv.conf(5).  More specifically at the "options timeout"
option.
>
> - Giorgos
>
>

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can I specify the resolver timeout?

2004-05-30 Thread Giorgos Keramidas
On 2004-05-30 12:04, adp <[EMAIL PROTECTED]> wrote:
> Is there a way to override this timeout value? I know it is possible
> on other UNIX systems, such as AIX.
>
> Basically, we want to get a response within 3 seconds or the resolver
> should try the second DNS server.

Look at resolv.conf(5).  More specifically at the "options timeout" option.

- Giorgos
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can I specify the resolver timeout?

2004-05-30 Thread adp
We have two internal DNS servers in a FreeBSD web cluster. If the first DNS
server fails then after a timeout period the client's resolver will try the
second DNS server. This works fine, but is a bit slow. It looks like the
timeout takes 10 to 15 seconds on FreeBSD 4.9-STABLE. Is there a way to
override this timeout value? I know it is possible on other UNIX systems,
such as AIX.

Basically, we want to get a response within 3 seconds or the resolver should
try the second DNS server.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"