Networking :: Nslookup Returns Connection Timed Out
Feb 4, 2011
I am not so experienced with networking in Linux. 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
I am relatively new to Ubuntu. Currently running Lucid Lynx, but I cannot connect to the internet. I can ping 127.0.0.1, and google.com. Software update works as well, but the connection times out when I try connecting to a web site e.g. bbc.uk.
I did a clean install of the latest version of Ubuntu. For some reason, there are still internet-issues. When I tried out the following command
Code: telnet open ftp.microsoft.com 21 I got Code: telnet: Unable to connect to remote host: Connection timed out
Also, during install of the new ubuntu, it was unable to reach the repos for downloading. Odd thing is that I can go online, and that when I type 'ftp.microsoft.com' in my browser, it displays the file-hierarchy.
I used gnome network manager to connect to a free wireless internet in the airport nm-applet showed connection established and ifconfig looked like this:
[Code]...
when I opened the browser, nothing showed up, eventually the browser told me "connection timed out" and I couldn't ping out say www.google.com I couldn't even ping the router 10.224.134.1 I am pretty sure my driver is working correctly, bcs I use wireless both at home and in school
Linux printing appeared to be working fine up until yesterday. Today typing lpq gives the following: lpq Printer 'sdst@other.domain' - cannot open connection - Connection timed out Make sure LPD server is running on the server
The /etc/cups/printers.conf file is properly set, the printers appear in localhost:631 and they are printing test pages. However, all command line print commands seem to be trying to print to sdst@other.domain I don't know why printers.conf is being ignored and why and how sdst@other.domain was added. Seems like it might have been auto-discovered?
# dit: sdst@other.domain was mentioned in /usr/local/etc/lpd.conf I'm not sure why lpd.conf is being used instead of /etc/cups/printers.conf
I have set up an ubuntu server running PPTP Server for VPN connections. I can successfully connect from a laptop within the LAN, but taking that same machine to an internet connection and trying to connect back in does not work. The only difference is that when I connect from within the network, I am obviously using the server's LAN (non-routable) address, and when I am connecting from outside the network (from Verizon Business DSL ), I am using the Comcast connection's static IP address.
I have a static IP address on a Comcast Business Class internet connection. Router is set to forward pptp and GRE ports.
Works: VPN Server <- Laptop iPhone -> Internet -> Router -> VPN Server
Does not work: Laptop -> Internet -> Router -> VPN Server
Here is the weird thing. I have an iPhone that connects flawlessly every time through it's AT&T data connection. The laptop however, gets to "verifying username and password", and then returns error 619. It seems that there is an issue only when going through the router using the PPTP client built into MS windows.
PPPOE connection Timed Out-i have downloaded the rp-pppoe utility and installed for PPPOE connection.As per the instruction given with the utility i followed that .i have given pppoe-setup and given all the parameters required like service name , username ,password,firewall as none ,dsn as server an all the option .finally i got the message as congratulation you have successfully setup the pppoe connection.you can use pppoe-start and pppoe-status.
I have SSH running on port 8662 and 22. I use 8662 for the outside world (eth0 which is 192.168 network) Here are the only lines I have changed in sshd_config:
Port 22 Port 8662 #Protocol 2,1
[code]....
BTW, ports forwarded on my firewall, checked and triple checked it.
I am building 1 system includes 1 firewall server using iptables 1 Webserver && 1 FTP server. On FTP server IP: 192.168.1.2 - GW: 192.168.1.1, I installed ProFTPD successfully. In LAN I do everything successful.
On Firewall server <IP PUBLIC> on eth0 && IP LAN eth1: 192.168.1.1 Iptables rules: Code: # Generated by iptables-save v1.3.5 on Sun Mar 7 21:01:16 2010 *nat :PREROUTING ACCEPT [950:126970] :POSTROUTING ACCEPT [89:5880] :OUTPUT ACCEPT [19:1342] -A PREROUTING -d <IP PUBLIC> -i eth0 -p tcp -m tcp --dport 21 -j DNAT --to-destination 192.168.1.2:21 -A POSTROUTING -s 192.168.1.2 -o eth0 -j SNAT --to-source <IP PUBLIC> COMMIT # Completed on Sun Mar 7 21:01:16 2010 # Generated by iptables-save v1.3.5 on Sun Mar 7 21:01:16 2010 *filter :INPUT DROP [1599:157409] :FORWARD DROP [0:0] :OUTPUT ACCEPT [232:34452] -A INPUT -i lo -j ACCEPT -A INPUT -i eth1 -j ACCEPT -A FORWARD -i eth0 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT -A FORWARD -o eth0 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT -A OUTPUT -o lo -j ACCEPT -A OUTPUT -o eth1 -j ACCEPT COMMIT # Completed on Sun Mar 7 21:01:16 2010 In FTP server i access to internet good. I check port 21 on IP PUBLIC , it's return Open.
But when I using ftp command then it's show Code: Connected to <IP PUBLIC>. 220 ProFTPD 1.3.3 Server (FTP Server) [192.168.1.2] User (<IP PUBLIC>:(none)): longvnit 331 Password required for longvnit Password: 230 User longvnit logged in ftp> dir 200 PORT command successful Aborting any active data connections... ftp> bye
C:Documents and SettingsLONGVNIT>ftp <IP PUBLIC> Connected to <IP PUBLIC>. 220 ProFTPD 1.3.3 Server (FTP Server) [192.168.1.2] User (<IP PUBLIC>:(none)): longvnit 331 Password required for longvnit Password: 230 User longvnit logged in ftp> dir 200 PORT command successful 425 Unable to build data connection: Connection timed out ftp> dir 200 PORT command successful 425 Unable to build data connection: Connection timed out ftp>
when I try to connect via PuTTY from a windows machine I get " PuTTY Fatal error connection timed out. I try to do so via a router redirecting IPadr:86 to local adr:22 on the Linux machine.
I seems not to be a routing issue since the router is setup to redirect apparently correctly.
Well I have stopped iptables and selinux is disabled. The sshd deamon is running. I can logon with ssh locally "ssh webcamATlocal adr".
In our development box we are configured postgresql to work with Jboss. The thing is we have firewall iptables in our linux box. when the iptables is stopped we can connect the postgres db locally using -h option, also we can connect thru a weblink we have created using Jboss. But when the iptables is started we can't connect the db locally using the -h option and the web is giving the below error. Caused by:
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.postgresql.core.v3.ConnectionFactoryImpl.openC
I am having alot of trouble setting up evolution to work with gmail. I am using pop for recieving mail and it's slow but still works. When I try to send mail with smtp.gmail.com I get the error message that the connection timed out. How can I set this up to send and recieve email?
I have 2 different networks :the first one is gateway machine (eth0), and the second is a private machine (eth1). So, I've configured the iptables and forwarding stuff and when I try to ping [url]..... on the gateway machine, it works, while it doesn't work on the private network. Note: I am using VmWare 7, CentOS 5.
I could say that the problem in DNS:because when I use this command in the private network machine: [url]...., it says connection timed out; no servers could be reached ,while in the public one, it works properly.....
I've been trying since yesterday to install autoten per instructions below [URL]. However it has failed each time I have tried. Below is the terminal response.
Code: [colyn@Fedora ~]$ su Password: [root@Fedora colyn]# rpm -Uvh [URL] Retrieving [URL] curl: (6) Could not resolve host: dnmouse.org; Connection timed out error: skipping [URL] - transfer failed [root@Fedora colyn]#
I am doing a copy/paste so I am not mis-typing the information. It says that the connection has timed out but I get the error message within 5 seconds of hitting enter.
I get the below errors when trying to connect to the below repos.It has almost always worked in the past. Is the site "packages.medibuntu.org" down again !?
Err http://packages.medibuntu.org karmic Release.gpg Could not connect to packages.medibuntu.org:80 (88.191.82.11), connection timed out Err http://packages.medibuntu.org karmic/free Translation-en_CA
I have a problem sending emails in the command line. I have introduced this command:
sendEmail -f my.account@gmail.com -t myself@domain.tld -u this is the test tile -m "this is a test message" -s smtp.gmail.com -o tls=yes -xu usernameonly -xp mypasswd
But then I received this message: sendEmail[13230]: ERROR => Connection attempt to smtp.gmail.com:25 failed: IO::Socket::INET: connect: Connection timed out
I am not able to connect to remote server through secureCRT . my local team has said that server is working fine . but I am not able to connect it remotely . what more i can do to connect it to server
I've ben punding myhead on this issue. I've setup a new postifx server on rhel5. After editing the needed entries, i can't seem to send any outbound mails to yahoo or any other domains.My postconf -n is as follows:
Not really a linux specific thing I have gooled the heck out of it and tried nslookup -a and a few other options nothing gets me what I need. The question is I have a machine with several aliases in dns. How do I do a nslookup and display all the aliases for a system.
I am trying to see if something it aliased correctly but i cannot list all the names a system is know by.
I am sure its something simple I am missing with a switch.
I have been trying to solve this problem for two days now looking at various forums and websites but can't really figure out what's going on here.I have setup postfix on my ubuntu and I can send emails using "telnet localhost 25" and the ehlo thingy. Apache can also send emails. My problem is with incoming emails. When I try to send an email (through Gmail) I get the following error message:
Code: Delivery to the following recipient has been delayed: root@example.com
I am trying to copy the file on remote server, but I am getting error " ssh: connect to host 172.28.21.14 port 22: Connection timed outlost connection "My two server are bastion10 and newlink, I want to copy file from newlink to bastion10 buet unable. I am able to ping, when i run " lsof -i :22 " command on link3new server I am getting
link3-new:lsof -i :22 sshd 6992 root 4u IPv6 11878 TCP *:ssh (LISTEN) while on bation10 it is ( ESTABLISHED ) ..
I'm finding that I can not resolve .local domains anywhere except with nslookup and found on the LucidLynx release notes that there is a problem with avahi causing this. Although the avahi service is convenient for locating printers and such can anyone else tell me what other services/options will be impacted on a default installation of Ubuntu if I disable this service?