Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem Setting up Domainname
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rohit_nanda1443
n00b
n00b


Joined: 16 Nov 2004
Posts: 30

PostPosted: Thu Nov 18, 2004 6:53 am    Post subject: Problem Setting up Domainname Reply with quote

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
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Thu Nov 18, 2004 10:37 am    Post subject: Reply with quote

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
View user's profile Send private message
rohit_nanda1443
n00b
n00b


Joined: 16 Nov 2004
Posts: 30

PostPosted: Thu Nov 18, 2004 2:59 pm    Post subject: Reply with quote

I have done as you told me but still I am getting rohit.unknown_domain
I have also removed nisdomainname
Back to top
View user's profile Send private message
AlexTM
n00b
n00b


Joined: 08 Oct 2004
Posts: 23
Location: Pisa

PostPosted: Tue Nov 30, 2004 4:33 pm    Post subject: Reply with quote

Have you tried using domainname command?

machinename root # domainname my_domain
Back to top
View user's profile Send private message
br0mGreV
Apprentice
Apprentice


Joined: 28 Jul 2004
Posts: 265
Location: Paris, France

PostPosted: Tue Nov 30, 2004 8:37 pm    Post subject: Reply with quote

The subject has been discussed here :
https://forums.gentoo.org/viewtopic.php?t=257120&highlight=domainname

Hope you'll get an answer there.
_________________
Rien n'est éternel, pas même les problèmes...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum