Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am not so experienced with networking in Linux so you'd excuse me if my question looks silly.
I've successfully installed Red Hat Linux Enterprise 5.2 on a VMware host.
When I issued nslookup command, it returns "connection timed out" error as follows:
Code:
[root@rac1 ~]# time nslookup rac1
;; connection timed out; no servers could be reached
real 0m15.038s
user 0m0.000s
sys 0m0.000s
My questions are:
(1) is that error normal?
(2) is there a way to decrease the 15.038s value? rac1 is the local hostname, so why it takes all that time to resolve it.
Following info may help:
Code:
[root@rac1 ~]# hostname
rac1.mydomain.com
[root@rac1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
#eth0 - PUBLIC
192.0.2.100 rac1.mydomain.com rac1
[root@rac1 ~]# ping -c 4 rac1
PING rac1.mydomain.com (192.0.2.100) 56(84) bytes of data.
64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=1 ttl=64 time=0.015 ms
64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=3 ttl=64 time=0.029 ms
64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=4 ttl=64 time=0.029 ms
--- rac1.mydomain.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.015/0.025/0.029/0.007 ms
There is a way to decrease that wait time; 1) Configure it to query the correct DNS server(s). 2) Use a different command "getent hosts hostname" will hit the /etc/hosts file.
If this (or any post helps), please rate that post. If your problem is solved, please use "Thread Tools" to mark the thread [SOLVED].
Should I edit /etc/resolv.conf? what shall I put in it?
No and no.
If this or any other post helps you, make sure you mark that post as "helpful". If your problem gets solved, use "thread tools" at the tippy-top of the page to mark this thread as [SOLVED].
Actually the nlslookup command is used by a software to check the response time. And the software requires a response time less than 15 Seconds. I thought as no nds server is actually used and only the local file /etc/hosts is used, the response time should easily by less than 15 s!
The error displayed by Oracle has nothing to do with Linux.
Anyway, thanks for your helpful reply.
If you're curious, following is the error I got from Oracle
Code:
PRVF-5636 : The DNS response time for an unreachable node exceeded "15000" ms on
following nodes: rac1,rac2 *- Cause:* The DNS response time for an unreachable
node exceeded the value specified on nodes specified. *- Action:* Make sure that
'options timeout', 'options attempts' and 'nameserver' entries in file resolv.conf
are proper. On HPUX these entries will be 'retrans', 'retry' and 'nameserver'.
On Solaris these will be 'options retrans', 'options retry' and 'nameserver'.
I had the same issue with 11.2.0.2 and I could not find work around since i do not have DNS server, BUT with Oracle 11.2.0.1 and Oracle Linux 5 Update 5 no issues of any kind to build a RAC.
good luck, let me know
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.