LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   host: parse of /etc/resolv.conf failed (https://www.linuxquestions.org/questions/linux-software-2/host-parse-of-etc-resolv-conf-failed-575852/)

D.A. 08-09-2007 05:35 AM

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?:scratch:

MensaWater 08-09-2007 09:39 AM

"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.

farslayer 08-09-2007 09:49 AM

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

D.A. 08-09-2007 12:16 PM

host
 
Hm, it's strange...
I've removed resolv.conf, and "host" started working...:study:

MensaWater 08-09-2007 12:30 PM

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


All times are GMT -5. The time now is 10:11 AM.