LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-12-2018, 06:24 AM   #1
karthickraj
LQ Newbie
 
Registered: Jul 2018
Posts: 4

Rep: Reputation: Disabled
Unhappy How to get domain name in domain server in linux


I want to get a domain name in domain server, I already used the domainname command but it response noun. How I get the domain name correctly. please give me also some reference
 
Old 07-12-2018, 06:29 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by karthickraj View Post
I want to get a domain name in domain server, I already used the domainname command but it response noun. How I get the domain name correctly. please give me also some reference
It doesn't respond "noun" but "(none)"...did you read the man page on the domainname command? If you did, you would have seen that the command pulls NIS/YP domain name...so if you're not running NIS, you won't get anything. Similarly, reading the man page for the hostname command would tell you that it will return the entire FQDN, and typing in "dnsdomainname" will give you just the domain.

Read the "Question Guidelines" link in my posting signature.
 
1 members found this post helpful.
Old 07-12-2018, 06:45 AM   #3
karthickraj
LQ Newbie
 
Registered: Jul 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you, for your response. Then how do to get domain name please explain step by step , i am new to linux.
i am using centos 7.
 
Old 07-12-2018, 06:52 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by karthickraj View Post
Thank you, for your response. Then how do to get domain name please explain step by step , i am new to linux. i am using centos 7.
Did you not read or understand the previous post??? You were TOLD HOW already.
 
Old 07-12-2018, 07:07 AM   #5
karthickraj
LQ Newbie
 
Registered: Jul 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
I can't get anything, this Linux site was more confusing, unlike windows support service. if u have a time please explain me step by step, otherwise give me the reference page. then explain what is man page.
 
Old 07-12-2018, 07:22 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by karthickraj View Post
I can't get anything, this Linux site was more confusing, unlike windows support service. if u have a time please explain me step by step, otherwise give me the reference page. then explain what is man page.
You were **GIVEN THE EXACT COMMAND** to type in...it cannot be more plain; type it in and press ENTER. Man pages are Linux commands that give you the manual for ANY command. Type in "man hostname" and it tells you all about that command.

You again need to read the "Question Guidelines" link in my posting signature, as well as the LQ Rules about text-speak and NOT using it. And if you read the "Question Guidelines" link, you'd see that doing basic research should be the FIRST thing you do before posting. The commands you were given can easily be found with a brief search, as could what a man page is and how to access them. If you feel that Windows is better, then please use it, if it's a better fit for you. We volunteer our time, unlike Windows support, and because of that we expect others to do some research and show some of their OWN EFFORTS, rather than asking others to look things up for them.
 
2 members found this post helpful.
Old 07-12-2018, 08:57 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
How is your domain configured? Your probably not running a NIS server and I assume your actually trying to find its DNS FQDN. Try the command

hostname --all-fqdns
 
Old 07-12-2018, 09:26 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by michaelk View Post
How is your domain configured? Your probably not running a NIS server and I assume your actually trying to find its DNS FQDN. Try the command

hostname --all-fqdns
Yep...suggested the hostname command in post #2, along with dnsdomainname, and informed the OP about NIS/domainname also.
 
1 members found this post helpful.
  


Reply



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
[SOLVED] Linux Domain Controller on a current Windows Server Domain LaurelRaven Linux - Server 3 02-02-2012 07:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:29 AM.

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
Open Source Consulting | Domain Registration