Skip to content Skip to sidebar Skip to footer

Mengubah Hostname di Debian

Dalam jaringan komputer, nama hos (hostname, dulu dipanggil dengan nama nodename) adalah label yang ditetapkan untuk perangkat yang terhubung ke jaringan komputer dan yang digunakan untuk mengidentifikasi perangkat dalam berbagai bentuk komunikasi elektronik.



Syarat syarat yang dibutuhkan

Harus masuk ke mode super user ( su / sudo)


langkah pertama tampilkan nama hostname kita saat ini

hostnamectl

   Static hostname: host.rebelsec.id

         Icon name: computer-vm

           Chassis: vm

        Machine ID: 2cc2688b8138434a81dd7b3133e66b2e

           Boot ID: e378a0971e9e415cb70e7e953a2362bc

    Virtualization: qemu

  Operating System: Debian GNU/Linux 9 (stretch)

            Kernel: Linux 4.9.0-7-amd64

      Architecture: x86-64

1.  Menggunakan hostnamectl 

sudo hostnamectl set-hostname server.rebelsec.id

2. Edit file /etc/hosts 

sudo nano /etc/hosts

127.0.0.1 localhost

# untuk ganti hostname server

127.0.0.1 server.rebelsec.id

# The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

cek perubahan yang kita buat tadi

 hostnamectl

   Static hostname: server.linuxid.net

         Icon name: computer-vm

           Chassis: vm

        Machine ID: 2cc2688b8138434a81dd7b3133e66b2e

           Boot ID: e378a0971e9e415cb70e7e953a2362bc

    Virtualization: qemu

  Operating System: Debian GNU/Linux 9 (stretch)

            Kernel: Linux 4.9.0-7-amd64

      Architecture: x86-64-64

Sekian dulu pembahasan mengenai Mengubah Hostname di Debian jika ada kesalahan saya mohon maaf, terima kasih. 

Author
Author “Yes I'm seeking for someone, to help me. So that some day I will be the someone to help some other one.”

Post a Comment for "Mengubah Hostname di Debian"