<< All Posts
How to change the hostname of a computer running OpenBSD


This is how you can change the hostname of a computer/server running OpenBSD. As you can see, after every bash-3.1# you’ll see each command. Make sure you’re running this as root user.

bash-3.1# uname -a;id
OpenBSD localhost.localdomain 4.0 GENERIC#1362 i386
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty), 5(operator), 20(staff), 31(guest)
-bash-3.1# vi /etc/myname
-bash-3.1# ksh /etc/netstart
DHCPREQUEST on pcn0 to 255.255.255.255 port 67
DHCPACK from 192.168.164.254
bound to 192.168.164.129 -- renewal in 900 seconds.
-bash-3.1# uname -a;id</strong>
 OpenBSD OpenBSD 4.0 GENERIC#1362 i386
uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty), 5(operator), 20(staff), 31(guest)

Done!



<< All Posts

rodolfo.io

🇧🇷 🇨🇦
Runs on OpenBSD 🐡