Results 1 to 7 of 7

Thread: Host name change on openSUSE 12.1

  1. #1
    Join Date
    Feb 2012
    Location
    Greece
    Posts
    119

    Default Host name change on openSUSE 12.1

    What's the right way to change your hostname? The command hostname is an easy way but is it enough? Is it safe to edit /etc/HOSTNAME? Or do you have to do it through YaST? the command hostname in my case reports "linux-7vld.site" but when I navigate to Network Services, Hostnames, I see a table with 3 coulnns: IP Address, Hostnames and Aliases. Unfortunately none of the hostname matches mine. BTW, I am not in a network with other computers, so my guess is I don't need that...

    - pascal

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,792
    Blog Entries
    16

    Default Re: Host name change on openSUSE 12.1

    On 28/03/12 20:46, pligdas wrote:
    >
    > What's the right way to change your hostname? The command hostname is an
    > easy way but is it enough? Is it safe to edit /etc/HOSTNAME? Or do you
    > have to do it through YaST? the command hostname in my case reports
    > "linux-7vld.site" but when I navigate to Network Services, Hostnames, I
    > see a table with 3 coulnns: IP Address, Hostnames and Aliases.
    > Unfortunately none of the hostname matches mine. BTW, I am not in a
    > network with other computers, so my guess is I don't need that...
    >
    > - pascal
    >
    >



    Is it safe to edit /etc/HOSTNAME?
    Yes

    linux-7vld.site > eg > mybox-suse.site

  3. #3
    Join Date
    Feb 2012
    Location
    Greece
    Posts
    119

    Default Re: Host name change on openSUSE 12.1

    Thanks!

    - pascal

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    2,841

    Default Re: Host name change on openSUSE 12.1

    IMO probably the question to the point is likely what you're trying to accomplish.

    AFAIK /etc/HOSTNAME is only for local appearances on the machine... More commonly, people want to change or control the machine's name seen through the network and i that is set in /etc/hosts.

    HTH,
    TS

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    14,772

    Default Re: Host name change on openSUSE 12.1

    YaST > Network devices > Network Configuration and then the Hostname/DNS tab.

    YaST will care for all the places involved.
    Henk van Velden

  6. #6
    Join Date
    Feb 2012
    Location
    Greece
    Posts
    119

    Default Re: Host name change on openSUSE 12.1

    Quote Originally Posted by hcvv View Post
    YaST > Network devices > Network Configuration and then the Hostname/DNS tab.

    YaST will care for all the places involved.
    Thanks, I found it under YaST > Network Devices > Network Settings, then Hostname/DNS tab. It was the same as the edited HOSTNAME. The DNS field was empty of course, as I don't have a statis IP address. I was interested for the local appearance only.

    - pascal

  7. #7
    Join Date
    Feb 2012
    Location
    Greece
    Posts
    119

    Default Re: Host name change on openSUSE 12.1

    Quote Originally Posted by tsu2 View Post
    AFAIK /etc/HOSTNAME is only for local appearances on the machine... More commonly, people want to change or control the machine's name seen through the network and i that is set in /etc/hosts.
    I was interested for local apperances.

    - pascal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •