How do you change the hostname of a non-global zone in solaris 10?
Printable View
How do you change the hostname of a non-global zone in solaris 10?
Cydrome Leader a écrit :[color=blue]
> How do you change the hostname of a non-global zone in solaris 10?[/color]
The same way you change it on a global zone, or on older versions
of Solaris.
There is nothing specific that I'm aware about zones hostnames.
Jean-Louis Liagre <jlliagre@localhost.fr> wrote:[color=blue]
> Cydrome Leader a ?crit :[color=green]
>> How do you change the hostname of a non-global zone in solaris 10?[/color]
>
> The same way you change it on a global zone, or on older versions
> of Solaris.
>
> There is nothing specific that I'm aware about zones hostnames.[/color]
I've altered /etc/hosts and rebooted and the old hostname comes back.
I cannot figure out where it's even grabbing the one one from.
Cydrome Leader a écrit :[color=blue]
> Jean-Louis Liagre <jlliagre@localhost.fr> wrote:
>[color=green]
>>Cydrome Leader a ?crit :
>>[color=darkred]
>>>How do you change the hostname of a non-global zone in solaris 10?[/color]
>>
>>The same way you change it on a global zone, or on older versions
>>of Solaris.
>>
>>There is nothing specific that I'm aware about zones hostnames.[/color]
>
>
> I've altered /etc/hosts and rebooted and the old hostname comes back.
> I cannot figure out where it's even grabbing the one one from.
>[/color]
/etc/hosts doesn't change the hostname, whether on a zone or not.
/etc/nodename, /etc/hostname.<interface> are the place where the
hostname is picked.
sys-unconfig can be used to reset a system configuration.
Cydrome Leader <presence@mungepanix.com> wrote:[color=blue]
> How do you change the hostname of a non-global zone in solaris 10?[/color]
solved:
I had to edit /etc/nodename
So, sun.com is the wrong place to be looking for helpful information.
Cydrome Leader a écrit :[color=blue]
> Cydrome Leader <presence@mungepanix.com> wrote:
>[color=green]
>>How do you change the hostname of a non-global zone in solaris 10?[/color]
>
> solved:
>
> I had to edit /etc/nodename
>
> So, sun.com is the wrong place to be looking for helpful information.[/color]
Well, may be are you a part of the problem.
Going to docs.sun.com and searching "Solaris 10 change hostname" lead
to the system administration manual, then it's quite easy to locate
chapter 12:
"Displaying and Changing System Information"
"Changing System Information"
"How to change a System's host name"
Jean-Louis Liagre <jlliagre@localhost.fr> wrote:[color=blue]
> Cydrome Leader a ?crit :[color=green]
>> Jean-Louis Liagre <jlliagre@localhost.fr> wrote:
>>[color=darkred]
>>>Cydrome Leader a ?crit :
>>>
>>>>How do you change the hostname of a non-global zone in solaris 10?
>>>
>>>The same way you change it on a global zone, or on older versions
>>>of Solaris.
>>>
>>>There is nothing specific that I'm aware about zones hostnames.[/color]
>>
>>
>> I've altered /etc/hosts and rebooted and the old hostname comes back.
>> I cannot figure out where it's even grabbing the one one from.
>>[/color]
>
> /etc/hosts doesn't change the hostname, whether on a zone or not.
>
> /etc/nodename, /etc/hostname.<interface> are the place where the
> hostname is picked.[/color]
There are no hostname interface files in a zone.[color=blue]
>
> sys-unconfig can be used to reset a system configuration.[/color]
What an ugly way to change a setting.
Jean-Louis Liagre <jlliagre@localhost.fr> wrote:[color=blue]
> Cydrome Leader a ?crit :[color=green]
>> Cydrome Leader <presence@mungepanix.com> wrote:
>>[color=darkred]
>>>How do you change the hostname of a non-global zone in solaris 10?[/color]
>>
>> solved:
>>
>> I had to edit /etc/nodename
>>
>> So, sun.com is the wrong place to be looking for helpful information.[/color]
>
> Well, may be are you a part of the problem.[/color]
I am the problem. When I wrote the hostname man page for solaris 10, I
decided not to reference anything about where initial hostnames are set.[color=blue]
>
> Going to docs.sun.com and searching "Solaris 10 change hostname" lead
> to the system administration manual, then it's quite easy to locate
> chapter 12:[/color]
That's funny, I get this:
Search results for: solaris 10 zone change hostname
No matches found
Cydrome Leader a écrit :[color=blue]
> Jean-Louis Liagre <jlliagre@localhost.fr> wrote:
>[color=green]
>>Cydrome Leader a ?crit :
>>[color=darkred]
>>>Cydrome Leader <presence@mungepanix.com> wrote:
>>>
>>>
>>>>How do you change the hostname of a non-global zone in solaris 10?
>>>
>>>solved:
>>>
>>>I had to edit /etc/nodename
>>>
>>>So, sun.com is the wrong place to be looking for helpful information.[/color]
>>
>>Well, may be are you a part of the problem.[/color]
>
>
> I am the problem. When I wrote the hostname man page for solaris 10, I
> decided not to reference anything about where initial hostnames are set.[/color]
The hostname man page references uname(1), which states:
Use sys-unconfig(1M) to change a host's name permanently.
[color=blue][color=green]
>>Going to docs.sun.com and searching "Solaris 10 change hostname" lead
>>to the system administration manual, then it's quite easy to locate
>>chapter 12:[/color]
>
>
> That's funny, I get this:
>
> Search results for: solaris 10 zone change hostname
> No matches found[/color]
Zone is irrelevant here, there is nothing special with zones
and hostnames.
Cydrome Leader a écrit :[color=blue]
> Jean-Louis Liagre <jlliagre@localhost.fr> wrote:
>[color=green]
>>Cydrome Leader a ?crit :
>>[color=darkred]
>>>Jean-Louis Liagre <jlliagre@localhost.fr> wrote:
>>>
>>>
>>>>Cydrome Leader a ?crit :
>>>>
>>>>
>>>>>How do you change the hostname of a non-global zone in solaris 10?
>>>>
>>>>The same way you change it on a global zone, or on older versions
>>>>of Solaris.
>>>>
>>>>There is nothing specific that I'm aware about zones hostnames.
>>>
>>>
>>>I've altered /etc/hosts and rebooted and the old hostname comes back.
>>>I cannot figure out where it's even grabbing the one one from.
>>>[/color]
>>
>>/etc/hosts doesn't change the hostname, whether on a zone or not.
>>
>>/etc/nodename, /etc/hostname.<interface> are the place where the
>>hostname is picked.[/color]
>
>
> There are no hostname interface files in a zone.
>[color=green]
>>sys-unconfig can be used to reset a system configuration.[/color]
>
>
> What an ugly way to change a setting.[/color]
Certainly better that yours, who forget to change several files.
man sys-unconfig tells what files it changes, so if you prefer
doing it manually, nothing prevents you to do it.
Cydrome Leader <presence@mungepanix.com> wrote:[color=blue]
> Jean-Louis Liagre <jlliagre@localhost.fr> wrote:[color=green]
>> Cydrome Leader a ?crit :[color=darkred]
>>> How do you change the hostname of a non-global zone in solaris 10?[/color]
>>
>> The same way you change it on a global zone, or on older versions
>> of Solaris.
>>
>> There is nothing specific that I'm aware about zones hostnames.[/color]
>
> I've altered /etc/hosts and rebooted and the old hostname comes back.
> I cannot figure out where it's even grabbing the one one from.[/color]
Try the man page for sys-unconfig, it lists all the locations that
you must modify if you want to permanently change a host name.
Jean-Louis Liagre <jlliagre@localhost.fr> wrote:[color=blue]
> Cydrome Leader a ?crit :[color=green]
>> Jean-Louis Liagre <jlliagre@localhost.fr> wrote:
>>[color=darkred]
>>>Cydrome Leader a ?crit :
>>>
>>>>Cydrome Leader <presence@mungepanix.com> wrote:
>>>>
>>>>
>>>>>How do you change the hostname of a non-global zone in solaris 10?
>>>>
>>>>solved:
>>>>
>>>>I had to edit /etc/nodename
>>>>
>>>>So, sun.com is the wrong place to be looking for helpful information.
>>>
>>>Well, may be are you a part of the problem.[/color]
>>
>>
>> I am the problem. When I wrote the hostname man page for solaris 10, I
>> decided not to reference anything about where initial hostnames are set.[/color]
>
> The hostname man page references uname(1), which states:
>
> Use sys-unconfig(1M) to change a host's name permanently.[/color]
Again, I just write better docs than sun ever could.
[color=blue][color=green][color=darkred]
>>>Going to docs.sun.com and searching "Solaris 10 change hostname" lead
>>>to the system administration manual, then it's quite easy to locate
>>>chapter 12:[/color]
>>
>>
>> That's funny, I get this:
>>
>> Search results for: solaris 10 zone change hostname
>> No matches found[/color]
>
> Zone is irrelevant here, there is nothing special with zones
> and hostnames.[/color]
You're right. My query was completely unreasonable. I should have searched
for "solaris" instead, then drilled down 400 books.
Cydrome Leader <presence@mungepanix.com> wrote:[color=blue]
> Again, I just write better docs than sun ever could.[/color]
Can you provide us your bibliography?
Please mark your comments with <rant></rant> in the future.
--
Daniel
Daniel Rock <v200617@deadcafe.de> wrote:[color=blue]
> Cydrome Leader <presence@mungepanix.com> wrote:[color=green]
>> Again, I just write better docs than sun ever could.[/color]
>
> Can you provide us your bibliography?[/color]
Please check usenet archives for my version of adding a new disk to
solaris 10. It replaces about 57 sun documents.
[color=blue]
> Please mark your comments with <rant></rant> in the future.[/color]
Please surround yours with <dumbass says></dumbass says> next time.
In a zone:
1) edit your /etc/hosts file
2) etc /etc/nodename
3) uname -S newhostname
Then reboot your zone. That should do it.
[QUOTE=jeepinjgoff;1682378]In a zone:
1) edit your /etc/hosts file
2) etc /etc/nodename
3) uname -S newhostname
Then reboot your zone. That should do it.[/QUOTE]
Thanks. That helped me a lot.
- Luke
[url]http://directpro.com[/url]