LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2007, 05:35 AM   #1
D.A.
LQ Newbie
 
Registered: Aug 2007
Location: Prague, Czech Republic
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Red face host: parse of /etc/resolv.conf failed


host: parse of /etc/resolv.conf failed

That message's coming everytime I'm tryin to use "host" command. I've tried to change file resolv.conf, I've entered here "nameserver 127.0.0.1" as it was advised in some messages i've googled. But the problem remains... Does anybody knows what's wrong in there?
 
Old 08-09-2007, 09:39 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
"parse of" failed. This suggests to me either the syntax is wrong or it doesn't have permission to read the file. You might try adjusting its permissions or typing a brand new file to eliminate the possibility of hidden control characters.

Pasting your resolv.conf here would let us know if you have syntax errors (other than hidden characters).

Setting 127.0.0.1 tells it to use the nameserver you're running on the local host. If you're not running one (BIND, tinyDNS, etc...) it may be pointing to nothing but I would expect it to give a different error int hat case.
 
1 members found this post helpful.
Old 08-09-2007, 09:49 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Your resolv.conf should not point to your local machine (127.0.0.1) unless your local machine is a DNS server.. .

/etc/resolv.conf should have either:

the IP address of your broadband router,
the IP Address of your Corporate DNS Server,
or the IP Address of your ISP's DNS Servers
 
Old 08-09-2007, 12:16 PM   #4
D.A.
LQ Newbie
 
Registered: Aug 2007
Location: Prague, Czech Republic
Distribution: Slackware
Posts: 6

Original Poster
Rep: Reputation: 0
host

Hm, it's strange...
I've removed resolv.conf, and "host" started working...
 
Old 08-09-2007, 12:30 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
If this server is a DHCP client it will recreate resolv.conf whenever you reboot based on the DHCP server's settings.
 
  


Reply


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
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
slow resolv host time EAD Linux - Networking 1 03-18-2006 12:47 PM
Who changes /etc/resolv.conf? lmp Debian 4 11-29-2005 08:08 AM
resolv.conf stanleytiew Linux - Newbie 2 05-13-2005 04:25 PM
resolv.conf?? wrat Linux - Newbie 3 06-14-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 PM.

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