View previous topic :: View next topic |
Author |
Message |
Azaghal Tux's lil' helper
Joined: 02 May 2003 Posts: 103
|
Posted: Wed Jun 04, 2003 11:22 am Post subject: /etc/hostname and domainname? |
|
|
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 |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Wed Jun 04, 2003 12:47 pm Post subject: |
|
|
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 |
|
|
Azaghal Tux's lil' helper
Joined: 02 May 2003 Posts: 103
|
Posted: Wed Jun 04, 2003 1:11 pm Post subject: |
|
|
I've of course rebooted quite a few times when trying stuff out. But to no success... |
|
Back to top |
|
|
piotraf n00b
Joined: 01 Apr 2003 Posts: 43 Location: Łódź - Poland
|
Posted: Wed Jun 04, 2003 4:41 pm Post subject: I have the same problem after 1 of the upgrades |
|
|
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 |
|
|
Xeper n00b
Joined: 03 Jun 2003 Posts: 17 Location: Duisburg/Germany
|
Posted: Wed Jun 04, 2003 11:50 pm Post subject: |
|
|
Guys i have exact the same problem. The machine didnt takes the domainname in /etc/dnsdomainname instead of that its just (none). I guess itss a bug 'cause i reinstalled to and before that i didnt had that problem. No resolv for that?? btw. domainname has nothing to do with dnsdomainname. domainname is a NIS/YP program. (just for know) |
|
Back to top |
|
|
blade- n00b
Joined: 28 May 2003 Posts: 16
|
Posted: Thu Jun 05, 2003 2:53 am Post subject: |
|
|
try doing
echo whateverdomain > /etc/dnsdomainname
thats how it is done in install guide |
|
Back to top |
|
|
piotraf n00b
Joined: 01 Apr 2003 Posts: 43 Location: Łódź - Poland
|
Posted: Mon Jun 09, 2003 3:17 pm Post subject: |
|
|
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 |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Mon Jun 09, 2003 3:19 pm Post subject: |
|
|
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 |
|
|
volusene n00b
Joined: 01 Jan 2003 Posts: 2
|
Posted: Mon Jun 09, 2003 6:46 pm Post subject: |
|
|
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 |
|
|
Azaghal Tux's lil' helper
Joined: 02 May 2003 Posts: 103
|
Posted: Mon Jun 09, 2003 7:55 pm Post subject: |
|
|
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 |
|
|
scmasaru n00b
Joined: 03 Dec 2002 Posts: 36
|
Posted: Wed Jun 18, 2003 8:30 am Post subject: |
|
|
Code: | rc-update add domainname boot |
|
|
Back to top |
|
|
piotraf n00b
Joined: 01 Apr 2003 Posts: 43 Location: Łódź - Poland
|
Posted: Wed Jun 18, 2003 2:11 pm Post subject: |
|
|
[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 |
|
|
piotraf n00b
Joined: 01 Apr 2003 Posts: 43 Location: Łódź - Poland
|
Posted: Wed Jun 18, 2003 2:12 pm Post subject: |
|
|
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 |
|
|
atac Apprentice
Joined: 04 Jan 2003 Posts: 234 Location: haninge, swe
|
Posted: Wed Jun 18, 2003 4:21 pm Post subject: |
|
|
i simply removed ".\o" from /etc/issue _________________ 1 + 1 + 1 = 11 |
|
Back to top |
|
|
piotraf n00b
Joined: 01 Apr 2003 Posts: 43 Location: Łódź - Poland
|
Posted: Wed Jun 18, 2003 5:14 pm Post subject: ?? |
|
|
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 |
|
|
atac Apprentice
Joined: 04 Jan 2003 Posts: 234 Location: haninge, swe
|
Posted: Wed Jun 18, 2003 5:29 pm Post subject: |
|
|
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 |
|
|
piotraf n00b
Joined: 01 Apr 2003 Posts: 43 Location: Łódź - Poland
|
Posted: Wed Jun 18, 2003 6:01 pm Post subject: |
|
|
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 |
|
|
scmasaru n00b
Joined: 03 Dec 2002 Posts: 36
|
Posted: Sat Jun 21, 2003 7:45 am Post subject: |
|
|
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 |
|
|
BigBaaadBob Guru
Joined: 19 Apr 2003 Posts: 342 Location: Swampscott, MA USA
|
Posted: Thu Jul 10, 2003 5:30 pm Post subject: |
|
|
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 |
|
|
|