Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-14-2015, 12:13 PM   #1
LQ Newbie
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
decrease nslookup timeout

I type this command:
# nslookup UNKNOWN
to search for unknown host in DNS and it returns that no host found after this period of time
real 0m15.248s

what are the steps required to decrease this time on linux???
Old 10-14-2015, 12:55 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Normally an NXDOMAIN reply should be fairly quick. If your DNS does not support IPv6, then there may be a timeout due to the initial AAAA request.
To test this try:
dig -t A UNKNOWN
Old 10-14-2015, 12:56 PM   #3
LQ Newbie
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
I found the solution

vi /etc/resolv.conf
#add these two lines
options timeout:1
options attempts:2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VPNC seems to timeout quickly- how do I lengthen the timeout? spiffytech Linux - Software 30 10-05-2018 04:04 AM
how to really decrease TIME_WAIT fancylad Linux - Networking 3 05-11-2011 03:03 PM
[SOLVED] how to DEcrease disk size Basher52 Linux - Software 65 04-26-2011 03:08 PM
How do you decrease available ram dbrazeau Linux - Embedded & Single-board computer 2 08-06-2009 06:38 PM
decrease TIME_WAIT izghitu Linux - Networking 3 06-14-2007 10:51 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration