Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/hostname and domainname?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Azaghal
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2003
Posts: 103

PostPosted: Wed Jun 04, 2003 11:22 am    Post subject: /etc/hostname and domainname? Reply with quote

I've been recently reinstalling gentoo, but now I ran into a problem I didn't have before. I apperently had an outdated manual. In the old manual, hostname and domainname would be set by simply putting machine.domain.name in /etc/hostname, and I used this method to reinstall gentoo. But, when I boot up, I get 'welcome to machine.mydomain.(none) blabla'. When checking manual, it now says, machinename goes into /etc/hostname, and domainname in /etc/dnsdomainname. I did this now, but it won't change. I still get when I do $ domainname && echo $domainname ---> (none)

How do I update this? I've been trying everything from etc-update and env-update to exporting $hostname and $domainname.

thanks!
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Wed Jun 04, 2003 12:47 pm    Post subject: Reply with quote

Normally it would have to be rebooted to reset the machine name as far as I know.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
Azaghal
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2003
Posts: 103

PostPosted: Wed Jun 04, 2003 1:11 pm    Post subject: Reply with quote

I've of course rebooted quite a few times when trying stuff out. But to no success...
Back to top
View user's profile Send private message
piotraf
n00b
n00b


Joined: 01 Apr 2003
Posts: 43
Location: Łódź - Poland

PostPosted: Wed Jun 04, 2003 4:41 pm    Post subject: I have the same problem after 1 of the upgrades Reply with quote

Unfortunatelly I don't know which one :) Besides - probably that's why I'm missing 'canonical host name' in phpsysinfo - though I didn't have that before the loss so I am just guessing.
_________________
best regards/ pozdrawiam
PiotrAF
Back to top
View user's profile Send private message
Xeper
n00b
n00b


Joined: 03 Jun 2003
Posts: 17
Location: Duisburg/Germany

PostPosted: Wed Jun 04, 2003 11:50 pm    Post subject: Reply with quote

Guys i have exact the same problem. The machine didnt takes the domainname in /etc/dnsdomainname instead of that its just (none). :roll: I guess itss a bug 'cause i reinstalled to and before that i didnt had that problem. No resolv for that?? :evil: btw. domainname has nothing to do with dnsdomainname. domainname is a NIS/YP program. (just for know) :wink:
Back to top
View user's profile Send private message
blade-
n00b
n00b


Joined: 28 May 2003
Posts: 16

PostPosted: Thu Jun 05, 2003 2:53 am    Post subject: Reply with quote

try doing

echo whateverdomain > /etc/dnsdomainname

thats how it is done in install guide
Back to top
View user's profile Send private message
piotraf
n00b
n00b


Joined: 01 Apr 2003
Posts: 43
Location: Łódź - Poland

PostPosted: Mon Jun 09, 2003 3:17 pm    Post subject: Reply with quote

blade- wrote:
try doing

echo whateverdomain > /etc/dnsdomainname

thats how it is done in install guide


Buahhaha. Thnx for trying, but AFAIK we've done that, especially that as you read we had everything OK till one of the updates.
Anyone knows which package is responsible for that?
_________________
best regards/ pozdrawiam
PiotrAF
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Mon Jun 09, 2003 3:19 pm    Post subject: Reply with quote

afaik baselayout is responsible for the hostname stuff
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
volusene
n00b
n00b


Joined: 01 Jan 2003
Posts: 2

PostPosted: Mon Jun 09, 2003 6:46 pm    Post subject: Reply with quote

I first saw the machine.(none) with /etc/issue talking, with the new baselayout.

echo domainname > /etc/nisdomainname fixed it for me. :)
Back to top
View user's profile Send private message
Azaghal
Tux's lil' helper
Tux's lil' helper


Joined: 02 May 2003
Posts: 103

PostPosted: Mon Jun 09, 2003 7:55 pm    Post subject: Reply with quote

Yeah, that will fix it, just as
Code:

# domainname yourdomain

will fix it.

But in both cases, what you're doing is setting a NIS domain, and I don't think that's what we all have? Not sure.
Back to top
View user's profile Send private message
scmasaru
n00b
n00b


Joined: 03 Dec 2002
Posts: 36

PostPosted: Wed Jun 18, 2003 8:30 am    Post subject: Reply with quote

Code:
rc-update add domainname boot
Back to top
View user's profile Send private message
piotraf
n00b
n00b


Joined: 01 Apr 2003
Posts: 43
Location: Łódź - Poland

PostPosted: Wed Jun 18, 2003 2:11 pm    Post subject: Reply with quote

[quote="Azaghal"]Yeah, that will fix it, just as
Code:

# domainname yourdomain

will fix it.

it does not. Yes, it fixes the
#domainname
(none)
to
#domainname
mydomain
but only till reboot and still canoninacal hostname is N/A in phpsysinfo.
_________________
best regards/ pozdrawiam
PiotrAF
Back to top
View user's profile Send private message
piotraf
n00b
n00b


Joined: 01 Apr 2003
Posts: 43
Location: Łódź - Poland

PostPosted: Wed Jun 18, 2003 2:12 pm    Post subject: Reply with quote

scmasaru wrote:
Code:
rc-update add domainname boot

I don't have that in the stable version, though I had it in the unstable and even than it did not help AFAIR
_________________
best regards/ pozdrawiam
PiotrAF
Back to top
View user's profile Send private message
atac
Apprentice
Apprentice


Joined: 04 Jan 2003
Posts: 234
Location: haninge, swe

PostPosted: Wed Jun 18, 2003 4:21 pm    Post subject: Reply with quote

i simply removed ".\o" from /etc/issue
_________________
1 + 1 + 1 = 11
Back to top
View user's profile Send private message
piotraf
n00b
n00b


Joined: 01 Apr 2003
Posts: 43
Location: Łódź - Poland

PostPosted: Wed Jun 18, 2003 5:14 pm    Post subject: ?? Reply with quote

I dont have any /etc/issue
:(
By the way - I've visited your screenshots - how did you manage to get e17 working?
I tried it twice and all I had was the background pic and no reaction :( had to reboot manually to get out.
_________________
best regards/ pozdrawiam
PiotrAF
Back to top
View user's profile Send private message
atac
Apprentice
Apprentice


Joined: 04 Jan 2003
Posts: 234
Location: haninge, swe

PostPosted: Wed Jun 18, 2003 5:29 pm    Post subject: Reply with quote

a little of topic,
but i only merged the latest ebuild at that time (december 2002 i think).
_________________
1 + 1 + 1 = 11
Back to top
View user's profile Send private message
piotraf
n00b
n00b


Joined: 01 Apr 2003
Posts: 43
Location: Łódź - Poland

PostPosted: Wed Jun 18, 2003 6:01 pm    Post subject: Reply with quote

atac wrote:
a little of topic,


What do you mean and what's with that /etc/issue ?

atac wrote:
but i only merged the latest ebuild at that time (december 2002 i think).


OK, I willlook for that version in case of trouble. thnx
_________________
best regards/ pozdrawiam
PiotrAF
Back to top
View user's profile Send private message
scmasaru
n00b
n00b


Joined: 03 Dec 2002
Posts: 36

PostPosted: Sat Jun 21, 2003 7:45 am    Post subject: Reply with quote

piotraf wrote:
scmasaru wrote:
Code:
rc-update add domainname boot

I don't have that in the stable version, though I had it in the unstable and even than it did not help AFAIR


Yes I'm using the unstalbe version. The trick is to create both /etc/nisdomainname and /etc/dnsdomainname and /etc/domainname and boom it'll work -- on unstable version
Back to top
View user's profile Send private message
BigBaaadBob
Guru
Guru


Joined: 19 Apr 2003
Posts: 342
Location: Swampscott, MA USA

PostPosted: Thu Jul 10, 2003 5:30 pm    Post subject: Reply with quote

scmasaru wrote:
The trick is to create both /etc/nisdomainname and /etc/dnsdomainname and /etc/domainname and boom it'll work -- on unstable version

If you use the ypbind port, don't you need to also update /etc/conf/ypbind? This seems a pain because it should just look to see if the nisdomainname was already set. I wonder if someine is making sure these two features play nice together?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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