How to make resolv.conf find another DNS server?
Team, I have a problem and need your help. I am on latest Easyos.
-I use three dns servers (two from google and one provided by isp).
Many a times, isp provided dns server is down and hence I want to tune resolv.conf.
Adding " timeout and attempts options" is not helping to switch to next available one faster
-If I add options "timeout and attempts", it does not help. It still takes same time (seems default time) for lookups.
With or without these options, it still takes same time to resolv. Should it not resolv faster with those optons defined?
1. time command output without "timeout and attempts options defined (time nslookup yahoo.com)
resolv.conf as follows.
nameserver 192.168.1.15
nameserver 8.8.8.8
nameserver 8.8.4.4
# time nslookup yahoo.com
Server: 8.8.8.8
Address: 8.8.8.8:53
Non-authoritative answer:
Name: yahoo.com
Address: 74.6.231.20
Name: yahoo.com
Address: 74.6.231.21
Name: yahoo.com
Address: 98.137.11.164
Name: yahoo.com
Address: 74.6.143.25
Name: yahoo.com
Address: 74.6.143.26
Name: yahoo.com
Address: 98.137.11.163
Non-authoritative answer:
Name: yahoo.com
Address: 2001:4998:44:8001
Name: yahoo.com
Address: 2001:4998:124:f001
Name: yahoo.com
Address: 2001:4998:124:f000
Name: yahoo.com
Address: 2001:4998:44:8000
Name: yahoo.com
Address: 2001:4998:24:1:0
Name: yahoo.com
Address: 2001:4998:24:1:1
real 0m5.018s
user 0m0.000s
sys 0m0.002s
2. time command output with "timeout and attempts options defined (time nslookup yahoo.com)
resolv.conf as follows
options timeout:1 attempts:1
nameserver 192.168.1.15
nameserver 8.8.8.8
nameserver 8.8.4.4
# time nslookup yahoo.com
Server: 8.8.8.8
Address: 8.8.8.8:53
Non-authoritative answer:
Name: yahoo.com
Address: 2001:4998:44:8001
Name: yahoo.com
Address: 2001:4998:44:8000
Name: yahoo.com
Address: 2001:4998:124:f000
Name: yahoo.com
Address: 2001:4998:124:f001
Name: yahoo.com
Address: 2001:4998:24:1:1
Name: yahoo.com
Address: 2001:4998:24:1:0
Non-authoritative answer:
Name: yahoo.com
Address: 74.6.143.25
Name: yahoo.com
Address: 98.137.11.163
Name: yahoo.com
Address: 74.6.143.26
Name: yahoo.com
Address: 74.6.231.20
Name: yahoo.com
Address: 74.6.231.21
Name: yahoo.com
Address: 98.137.11.164
real 0m5.019s
user 0m0.001s
sys 0m0.000s