View previous topic :: View next topic |
Author |
Message |
rohit_nanda1443 n00b
Joined: 16 Nov 2004 Posts: 30
|
Posted: Thu Nov 18, 2004 6:53 am Post subject: Problem Setting up Domainname |
|
|
I am new to Gentoo. I had religeously followed the Gentoo Doc on my Installation CD. Ver 2004.2
I had created the /etc/hostname, /etc/dnsdomainname and followed all the steps on the doc.
As I boot it gives my hostname correct (rohit). After reading manpage of hostname I found that domainname is on the file /etc/domainname I also created that . I even created /etc/nisdomainname.
Problem:
1) It gives rohit.unknown_domainv as my hostname.
2) After installing gnome it has started giving rohit.(none) as domainname.
My domainname i have put is ronix_world
How do I do the needful.so that it shows rohit.ronix_world as my full hostname.
I have also added in /etc/hosts an alias as rohit to 127.0.0.1.
3) what is the nisdomainname. Do I need it? Do I also need dnsdomainname. and was the install doc correct which told me to create a dnsdomainname instead of domainname files.
Thanking you. |
|
Back to top |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Thu Nov 18, 2004 10:37 am Post subject: |
|
|
You need to modify /etc/hosts to display it correctly, this is from my /etc/hosts so you need to modify it a bit:
Code: |
127.0.0.1 thoroughbred.oktane.net thoroughbred localhost
|
If you don't know what's NIS domainname, you don't need it
The Right Way(tm) to setup hostnames and domainnames is:
Code: |
echo foo > /etc/hostname
echo bar > /etc/dnsdomainname
echo something > /etc/nisdomainname # If you need NIS domainname
rc-update add domainname default
|
|
|
Back to top |
|
|
rohit_nanda1443 n00b
Joined: 16 Nov 2004 Posts: 30
|
Posted: Thu Nov 18, 2004 2:59 pm Post subject: |
|
|
I have done as you told me but still I am getting rohit.unknown_domain
I have also removed nisdomainname |
|
Back to top |
|
|
AlexTM n00b
Joined: 08 Oct 2004 Posts: 23 Location: Pisa
|
Posted: Tue Nov 30, 2004 4:33 pm Post subject: |
|
|
Have you tried using domainname command?
machinename root # domainname my_domain |
|
Back to top |
|
|
br0mGreV Apprentice
Joined: 28 Jul 2004 Posts: 265 Location: Paris, France
|
|
Back to top |
|
|
|