AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only

DNS options timeout and attempts in resolv.conf d'ont work

  • 1.  DNS options timeout and attempts in resolv.conf d'ont work

    Posted Wed September 02, 2009 03:58 AM

    Originally posted by: maliverney


    Hi,

    I can't use options timeout and attempts in /etc/resolv.conf

    oslevel -s
    6100-02-02-0849

    Here my /etc/resolv.conf
    options attempts:1
    options timeout:1
    domain internet.sf.intra.laposte.fr
    nameserver 172.26.1.2
    nameserver 172.26.1.10

    when i do a nslookup, he don't do One attempts of 1 second
    1. time nslookup toto
    ;; Got SERVFAIL reply from 172.26.1.2, trying next server
    ;; connection timed out; no servers could be reached

    real 0m14.97s
    user 0m0.01s
    sys 0m0.01s

    The options doesn't work.

    The only way i have is to force timeout to 1 and attemps to 1 in nslookup command
    1. nslookup
    > set timeout=1
    > set retry=1
    > toto
    ;; Got SERVFAIL reply from 172.26.1.2, trying next server
    ;; connection timed out; no servers could be reached

    And then i have well the 1 second and 1 attempts.

    I also put RES_RETRY=1 and RES_TIMEOUT=1 in /etc/environment but it doesn't any work.

    Francois.