Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Arch Linux Help > host not working

Forgot Password?
 Arch Linux Help   Help an discussion related to Arch

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-18-2007   #1 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 27
host not working

I'm trying to setup a number of different things which rely on the host command to function, however it is not working for me.


Code:
[root@Omega ~]# host www.google.com
 *** www.google.com does not exist (Authoritative answer)

for some reason it is dns querying:

PTR 255.255.255.255.in-addr.arpa

and predictably my dns server replies with not found, any ideas?
koontar is offline  


Reply With Quote
Old 06-18-2007   #2 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
cat /etc/resolv.conf

?
anomie is offline   Reply With Quote
Old 06-18-2007   #3 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 27
Code:
# Generated by dhcpcd for interface eth0
search hsd1.ca.comcast.net.
nameserver 68.87.76.178
nameserver 68.87.78.130
seems normal.. those are my isp's nameservers.

while were at it heres /etc/hosts
Code:
#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost
127.0.0.1       Omega.schreknet.net     Omega

# End of file
koontar is offline   Reply With Quote
Old 06-18-2007   #4 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Try explicitly like this:
Code:
$ host google.com 68.87.76.178
Then like this (using opendns server):
Code:
$ host google.com 208.67.222.222
Anything?
anomie is offline   Reply With Quote
Old 06-18-2007   #5 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 27
Code:
[root@Omega ~]# host google.com 68.87.76.178
 *** google.com does not exist at cns.sanjose.ca.sanfran.comcast.net (Authoritative answer)

Code:
[root@Omega ~]# host google.com 208.67.222.222
 *** google.com does not exist at resolver1.opendns.com (Authoritative answer)
koontar is offline   Reply With Quote
Old 06-18-2007   #6 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Btw, that /etc/hosts entry seems strange to me.

Code:
127.0.0.1       Omega.schreknet.net     Omega
You want that to apply to your external interface, right? e.g.:

Code:
10.0.0.80       Omega.schreknet.net     Omega
I'm not sure if that may be related to the problem.
anomie is offline   Reply With Quote
Old 06-18-2007   #7 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 27
could be it?? set it that way from a wiki post I read a while ago

so:

Code:
127.0.0.1       localhost
192.168.0.2     Omega.schreknet.net     Omega
??

anyway to apply that without restarting the entire system?
koontar is offline   Reply With Quote
Old 06-18-2007   #8 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
You should not need to restart at all. Changes to /etc/hosts should take immediately.
anomie is offline   Reply With Quote
Old 06-18-2007   #9 (permalink)
Just Joined!
 
Join Date: Jun 2006
Posts: 27
ah, then no didn't help.
koontar is offline   Reply With Quote
Old 06-18-2007   #10 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Ok, something's borked.

Look at your output when you explicitly specified nameservers. It did a reverse lookup and gave you the host name of the dns server!

How about try a ping or nslookup (anything other than host) to google.com.
anomie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:25 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2