---
title: "Discussion on \"How to change your hostname per network in Linux (Ubuntu desktop)\" | Hashnode"
description: "Discussion on \"How to change your hostname per network in Linux (Ubuntu desktop)\". TLDR;\n$ nmcli connection modify <connection-name> ipv4.dhcp.hostname=<new_name>"
url: "https://hashnode.com/posts/how-to-change-your-hostname-per-network-in-linux-ubuntu-desktop/6342e21dad57b15b2565c8f1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to change your hostname per network in Linux (Ubuntu desktop)](https://blog.davidassigbi.com/how-to-change-your-hostname-per-network-in-linux-ubuntu-desktop?utm_source=hashnode&utm_medium=feed)

TLDR; $ nmcli connection modify <connection-name> ipv4.dhcp.hostname=<new\_name>

Oct 9, 2022 · 1 min read · blog.davidassigbi.com  
Read the article

-   [#network-manager](https://hashnode.com/tag/network-manager)
-   [#linux](https://hashnode.com/tag/linux)
-   [#ubuntu](https://hashnode.com/tag/ubuntu)
-   [#dhcp](https://hashnode.com/tag/dhcp)
-   [#hostname](https://hashnode.com/tag/hostname)

## Written by

[Mensah David Assigbi](https://hashnode.com/@davidassigbi)

@davidassigbi

  
[View profile](https://hashnode.com/@davidassigbi)

Full Stack IT Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
