LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2007, 12:55 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Rep: Reputation: 30
host command options


Will any one tell me the option to find out the CNAME of a domain?
i can find out the MX of a domain using
host -tMX domain.com?
How can i find out the CNAME using host command?
 
Old 07-05-2007, 02:13 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The same way?!

host -tCNAME domain.

You could also use dig.
 
Old 07-05-2007, 02:16 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
no, you don't ask for the CNAME record from a name server. i guess that the equivalent use of asking for the CNAME's would be to ask which other domains are CNAME's to the A record, which you can't, and wouldn't do. A CNAME is a stepping stone to an A record. maybe some context on what you wish to acheive by this...?
 
Old 07-05-2007, 03:14 AM   #4
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
"host -tCNAME domain" It did not work.
Chris,
Thank you for your feed. But i can't understand what you wrote. Please repeat it with a lower version of English.(Sorry, my mother tongue is not English, and am learning).
 
Old 07-05-2007, 03:17 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
ok, no problem... just go from this angle... why do you want to do this? what problem are you trying to fix?
 
Old 07-05-2007, 03:34 AM   #6
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
oh..ho.
I am just asking for knowledge. Actually today my friend (who is a website reseller) ask me this. He is having his own DNS for his sites, but for mail he is using google servers as MX.so he asked me to check it. When i came across one by one...
host -tNS domain
host -tMX domain
host -tCNAME domain .....???/?

SO this is the story. Nothing more in it...
 
Old 07-05-2007, 03:42 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well its' the wrong kind of record. the way you are asking doesn't make sense. you DO want to know what the MX record is for a site, but you DON'T want to know what the CNAME's associated with it are. it's not useful information in itself.
 
Old 07-05-2007, 03:56 AM   #8
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Yes i have less knowledge on CNAME records..
Ok.. chris will you please tell me the way to find out the CNAME by some other commands too, other than host. I just want to learn it.

Sorry , if i didn't understand what you say?

Last edited by ZAMO; 07-05-2007 at 04:12 AM.
 
Old 07-05-2007, 04:16 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well you just don't find out the cname. you can find out that the DNS entry you are querying IS a CNAME, but you don't ask google.com what it's CNAME's are in the same way you'd ask what it's MX records are. it's not like that.
 
Old 07-05-2007, 04:29 AM   #10
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
You mean i must not query like this
"host -tNS domain
host -tMX domain
host -tCNAME domain .....???/?"
CNAME is entirely different from NS,MX????(IS it like that?)
 
Old 07-05-2007, 04:34 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
you CAN do that, but it doesn't really tell you anything useful. the fact that a dns domain name is a CNAME is not "interesting", but MX and NS records are extremely important and work in very different ways.
 
Old 07-05-2007, 04:43 AM   #12
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 598

Original Poster
Rep: Reputation: 30
Thank you ., chris
 
Old 12-30-2008, 02:00 AM   #13
please
Member
 
Registered: Apr 2007
Posts: 195

Rep: Reputation: 30
Hi

how to add interface option in host command?



If can`t ,what command is good ?
I have 2 NICs so I want to know which eth was used host command

Thanks
 
Old 12-30-2008, 02:04 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
don't drag up dead threads. new question = new thread.
 
  


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
help with command line options jaepi Linux - Newbie 7 04-29-2007 07:26 PM
Command Line Options AUSanders79 Linux - Software 8 03-10-2005 10:24 AM
Wget command options help??? tekhead2 Linux - Software 1 06-23-2004 06:58 AM
unzip command options jaa1180 Linux - Software 4 11-04-2003 11:10 AM
Command Line Options in C++ crichards Programming 5 03-08-2003 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration