Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to install latest version of mysql server. I tried to uninstall mysql 4.1 using rpm -e .

Once uninstallation done I tried to download mysql packages:

Command :

wget http://www.mysql.com/Downloads/MySQL-client-5.1.73-1.glibc23.x86_64.rpm

but it is throwing " temporary failed name resolution "

Can anybody help me to install mysql through command-line in linux server?


/etc/resolv.conf file

   nameserver 18X.3x.86.XX // added now
   nameserver 2XX.232.2.XX
share|improve this question

1 Answer 1

That's what the problem was with your attempt to uninstall mysql with yum remove. Your system isn't on the network, or isn't fully configured for the network. Start with getting network connectivity working such that you can do dig www.google.com and get a valid response (example below), then you should be able to use the wget command normally.

Example dig output:

$ dig www.google.com

; <<>> DiG 9.8.1 <<>> www.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24890
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 4, ADDITIONAL: 0

;www.google.com.                        IN      A

www.google.com.         136     IN      A
www.google.com.         136     IN      A
www.google.com.         136     IN      A
www.google.com.         136     IN      A
www.google.com.         136     IN      A
www.google.com.         136     IN      A

google.com.             69743   IN      NS      ns4.google.com.
google.com.             69743   IN      NS      ns1.google.com.
google.com.             69743   IN      NS      ns2.google.com.
google.com.             69743   IN      NS      ns3.google.com.

;; Query time: 5 msec
;; WHEN: Tue May 27 14:20:30 2014
;; MSG SIZE  rcvd: 200
share|improve this answer
yes.you are right. if I access using dig @<ip address> www.google.com ill get the response. So what will be the wget command? –  stefun May 27 at 18:29
You have to get the local nameserver configuration correct. The wget command you have is correct, it's not working because you have name resolution problems. Fix the nameservers in /etc/resolv.conf. –  John May 27 at 18:42
I have added ip address in /etc/resolv.conf file .Now I can dig google.com. But now both yum and wget command giving timeout error –  stefun May 27 at 19:20
Then you have some sort of firewall issue going on. But ultimately your problem is networking, not the commands you're trying to use. –  John May 27 at 19:22
iptables -L -n doesn't show any firwall –  stefun May 27 at 19:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.