Hi again<br>
Thanks for the response. I am sorry I took a while to reply, but
I am far behind my mail. Anyway, it look like you are getting the
expected response, while it is failing on my box. Here is what i get
when I try your example word to word<br>
<br>
# host <a href="http://tlug.ss.org">tlug.ss.org</a><br>
;; connection timed out; no servers could be reached<br>
]# host <a href="http://waltdnes.org">waltdnes.org</a><br>
;; connection timed out; no servers could be reached<br>
# host <a href="http://192.234.254.38">192.234.254.38</a><br>
;; connection timed out; no servers could be reached<br>
<br>
Can't really explain it. I am using the same host to respond to this
email which mean I can't be having nwtwork problems. Could there be a
specific port I need to have iptable allow? Nothing else make sense as
to why it should work for you while its failing for me.<br>
As for what I was trying to so, I was helping a friend set up
evolution. He currently use a webmail and I wanted to poke his mail
provider IP with nmap and see if pop port is open. Unfortunately, I
only had domain name with me, and nmap doesn't work very well
with domain name for me. I hence tried using "host" to extract the Ip
and that is how I landed in above issue.<br>
Thank you for your help. At least I know I am in the write path,
just getting killed by some funky issues that I can't fathom<br>
<br>
William<br>
<br><br><div><span class="gmail_quote">On 26/05/06, <b class="gmail_sendername">Walter Dnes</b> <<a href="mailto:waltdnes-SLHPyeZ9y/tg9hUCZPvPmw@public.gmane.org">waltdnes-SLHPyeZ9y/tg9hUCZPvPmw@public.gmane.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, May 26, 2006 at 09:21:44AM +0300, Kihara Muriithi wrote<br>> Hi,<br>> There is this tool called host that is supposed to resolve a host<br>> names to an IP. I am having issues on how to use it, i.e the syntax
<br>> and switch use to make it helpful. Man page is a little unfriendly<br>> and google threw way too way too many useless pages due to the<br>> heavy usage of the word "host" in other context. Would someone be
<br>> kind enough to type a few oxamples of how to use this tool, i.e one<br>> extracting a name from IP address and the other doing reverse?<br><br> It's a general tool that can do *A LOT* of different things. It also
<br>deals with DNS information, which is a complex area. That's why it's<br>not simple. Some of the more common uses are...<br><br><br>1) Looking up IP addresses for specific machines. It will also list<br>mail handlers (MX)...
<br><br>[m3000][waltdnes][~] host <a href="http://tlug.ss.org">tlug.ss.org</a><br><a href="http://tlug.ss.org">tlug.ss.org</a> has address <a href="http://192.234.254.38">192.234.254.38</a><br><a href="http://tlug.ss.org">
tlug.ss.org</a> mail is handled by 1 <a href="http://dsl.ss.org">dsl.ss.org</a>.<br><br>[m3000][waltdnes][~] host <a href="http://waltdnes.org">waltdnes.org</a><br><a href="http://waltdnes.org">waltdnes.org</a> has address
<a href="http://216.40.33.117">216.40.33.117</a><br><a href="http://waltdnes.org">waltdnes.org</a> mail is handled by 10 <a href="http://manson.clss.net">manson.clss.net</a>.<br><br><br>2) Converting IP addresses to machine names... if the machine has an
<br>rDNS entry in the first place<br><br>[m3000][root][~] host <a href="http://192.234.254.38">192.234.254.38</a><br>Host 38.254.234.192.in-addr.arpa not found: 3(NXDOMAIN)<br><br>[m3000][waltdnes][~] host <a href="http://216.40.33.117">
216.40.33.117</a><br>117.33.40.216.in-addr.arpa domain name pointer <a href="http://ddwww.tucows.com">ddwww.tucows.com</a>.<br><br><br>3) Listing specific DNS records (MX, CNAME, etc)<br><br>[m3000][root][~] host -t CNAME
<a href="http://www.waltdnes.org">www.waltdnes.org</a><br><a href="http://www.waltdnes.org">www.waltdnes.org</a> is an alias for <a href="http://www.clss.net">www.clss.net</a>.<br><br>[m3000][waltdnes][~] host -t MX <a href="http://waltdnes.org">
waltdnes.org</a><br><a href="http://waltdnes.org">waltdnes.org</a> mail is handled by 10 <a href="http://manson.clss.net">manson.clss.net</a>.<br><br><br>--<br>Walter Dnes <<a href="mailto:waltdnes-SLHPyeZ9y/tg9hUCZPvPmw@public.gmane.org">waltdnes-SLHPyeZ9y/tg9hUCZPvPmw@public.gmane.org
</a>> In linux /sbin/init is Job #1<br>My musings on technology and security at <a href="http://tech_sec.blog.ca">http://tech_sec.blog.ca</a><br>--<br>The Toronto Linux Users Group. Meetings: <a href="http://tlug.ss.org">
http://tlug.ss.org</a><br>TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>How to UNSUBSCRIBE: <a href="http://tlug.ss.org/subscribe.shtml">http://tlug.ss.org/subscribe.shtml</a><br></blockquote></div><br>