LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2012, 01:23 AM   #1
connnor
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Rep: Reputation: Disabled
wget - "Temporary failure in name resolution"


Hey,

I'm a server host who is in a spot of trouble with one of my servers. I have looked everywhere for a fix and read many topics on how to fix this and after attempting the same fixes: nothing changed.

So here is my error:
Code:
--2012-08-09 08:12:32--  http://www.damngoodgaming.co.uk/mc.zip
Resolving www.damngoodgaming.co.uk... failed: Temporary failure in name resolution.
wget: unable to resolve host address âwww.damngoodgaming.co.ukâ
------------------------------

This happens if I try to wget anything.

I haved tried changing my DNS servers to 208.67.222.222
208.67.220.220
however when I saved the file (!wq) the write was successful but when I "reboot" the server the file is no longer contains the DNS servers which I had inputted previously.

-------------------------------
Extra info.

OS: Centos 6 (64bit)
Provider: OVH
------------------------------

Thank you for taking the time to read my post.

Kind Regards,
Connor Murray
 
Old 08-09-2012, 02:18 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can edit etc/sysconfig/network-scripts/ifcfg-eth0 (assuming eth0 is your nic) and set
Code:
PEERDNS=no
Regards
 
Old 08-09-2012, 02:51 AM   #3
connnor
LQ Newbie
 
Registered: Aug 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by bathory View Post
Hi,

You can edit etc/sysconfig/network-scripts/ifcfg-eth0 (assuming eth0 is your nic) and set
Code:
PEERDNS=no
Regards
Unfortunately that didn't work.
 
Old 08-09-2012, 03:20 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Unfortunately that didn't work.
Then take a look at post #3 here.

There is also an ugly hack to use as a last resort. Make /etc/resolv.conf immutable after editing it and adding your favorite nameservers.
Code:
chattr +i /etc/resolv.conf
 
  


Reply



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
WGET skipping files in -I mode , Temporary failure in name resolution RadishTP Linux - Newbie 4 06-28-2009 05:55 PM
Command "mail" returns "panic: temporary file seek" kenneho Linux - Software 5 12-23-2008 03:27 AM
Problems with wget... "Temporary failure in name resolution" beantier Linux - Newbie 1 04-19-2008 03:49 AM
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 07:59 PM
"getaddrinfo failed: Temporary failure in name resolution" SammyK Linux - Networking 3 03-09-2005 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 AM.

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