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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Other Distributions > Arch Linux Help
Reload this Page host not working
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Arch Linux Help Help an discussion related to Arch

Site Navigation
Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
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
Job Search
keyword location
Post a Job »
job title, keywords or company
city, state or zip jobs by job search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 5.04 2.6.20 kernel, PS/2 mouse not working. Already did basic configurations. daxumaming Debian Linux Help 6 11-15-2007 02:51 AM
sendmail using SMART host not working with hostname/masquerading windangel44 Redhat / Fedora Linux Help 0 03-26-2007 08:37 PM
DNS Host Names not resolving jimmysavage Redhat / Fedora Linux Help 3 03-07-2007 09:47 PM
Intel 2915 ipw2200 problem linuxmunky Mandriva Linux Help 6 10-16-2005 08:17 PM

Free Magazines
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say. So when it comes right down to it, how does the Google selection stack up against the rest of messaging security's big guns?
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 08:08 PM.




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

Content Relevant URLs by vBSEO 3.2.0