DNS problems this morning -

Tim ignored_mailbox at yahoo.com.au
Tue Nov 13 18:04:56 UTC 2012


Tim wrote:
> > I seem to recall that there is a way to set the timeout delay before
> > abandoning the first query, and querying the next server, but I don't
> > recall the details, and there's no man file for resolv.conf on this
> > installation of F17.  I don't know if there's configuration options
> > about always trying the first server, first.

Bob Goodwin:
> It looks like there is a way.

As I mentioned further down in my prior message...  (the same details,
and the strange lack of a resolv.conf man file on my installation).

>  From man resolv.conf:
> 
>     options
> 
>     Options allows certain internal resolver variables to be modified.
>     The syntax is options option ...
> 
>     where option is one of the following:
> 
>     timeout:n
> 
>     sets the amount of time the resolver will wait for a response from a
>     remote name server before retrying the query via a different name
>     server. Measured in seconds, the default is RES_TIMEOUT (currently
>     5, see <resolv.h>). The value for this option is silently capped to 30.

The default timeout on my system is definitely not 5 seconds, so it's
been reset /somewhere/.


>     attempts:n
> 
>     sets the number of times the resolver will send a query to its name
>     servers before giving up and returning an error to the calling
>     application. The default is RES_DFLRETRY (currently 2, see
>     <resolv.h>). The value for this option is silently capped to 5.
> 
> It's not clear to me how to type the command though. The 5 second
> timeout seems much to long when combined with 5 tries, perhaps fewer
> tries would be better? However I imagine there were good reasons for
> the defaulsts ...

My reading of the man file suggested that one would add the options into
the resolv.conf file.  Else why else are they mentioned in the man file
for it?

e.g.
/etc/resolv.conf 
domain lan.example.com.
search lan.example.com.
nameserver 192.168.1.2
options timeout:1

But what would the syntax be?  Like I've tried, above?  Are there any
samples in your man file?



-- 
[tim at localhost ~]$ uname -rsvp
Linux 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov 5 21:59:35 UTC 2012 x86_64

All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.





More information about the users mailing list