{"id":16004,"date":"2024-08-04T13:14:14","date_gmt":"2024-08-04T09:44:14","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=16004"},"modified":"2024-08-04T13:14:14","modified_gmt":"2024-08-04T09:44:14","slug":"check-and-change-hostname-on-debian","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/check-and-change-hostname-on-debian\/","title":{"rendered":"Check and change hostname in Debian"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">Introduction<\/h2>\n<p>The hostname of a Linux system is an important part of the system. You can use it not only to identify the system to yourself, but also to software, which often requires a properly configured hostname for clear identification. In practice, a hostname is a name that appears to be your IP address. A hostname is the domain name given to the host machine. You can configure multiple hostnames, but to be fully qualified, we should configure only one name for each host.<\/p>\n<p>For example, if you only have one server for a small static web page, you could use something like foo.bar.<\/p>\n<p>However, the recommended way is to choose a name that is displayable to the server, for example:<\/p>\n<ul>\n<li>Mail for a mail server<\/li>\n<li>Web for a web server<\/li>\n<\/ul>\n<h5 id=\"%d9%be%db%8c%d8%b4-%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\">Prerequisites<\/h5>\n<ul>\n<li>To make the hostname fully qualified, you need to set your device&#039;s rDNS entry to the desired FQHN (Fully Qualified Hostname). You can do this in your web server console.<\/li>\n<li>In order for your hostname to be fully qualified, you need to create an \u201cA\u201d record in the DNS zone for your hostname. So in our example, for the first small server for the domain foo.bar, we would create an \u201cA\u201d record with the value srv1.foo.bar and the IP address to one of our machines. After 12-48 hours the DNS changes should propagate globally.<\/li>\n<li>To check and change the hostname on your server, make sure you are logged in to your server with a sudo user.<\/li>\n<li>This guide is based on a server with a fresh Debian 12 installation.<\/li>\n<\/ul>\n<h5 id=\"%d8%a7%d8%b5%d8%b7%d9%84%d8%a7%d8%ad%d8%a7%d8%aa-%d9%85%d8%ab%d8%a7%d9%84\">Example terms<\/h5>\n<p>In our example (a small server just for various things) we use srv1.foo.bar so that later \u2013 if we need more servers \u2013 we can just name the next server srv2.foo.bar.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-1-%d9%86%d8%a7%d9%85-%d9%85%db%8c%d8%b2%d8%a8%d8%a7%d9%86-%d8%b1%d8%a7-%d8%a8%d8%b1%d8%b1%d8%b3%db%8c-%da%a9%d9%86%db%8c%d8%af\">Step 1 \u2013 Check the hostname<\/h2>\n<p>There are three different ways to check the real hostname.<\/p>\n<ul>\n<li>First:<\/li>\n<\/ul>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo cat \/etc\/hosts\r\n<\/code><\/pre>\n<\/div>\n<ul>\n<li>Second:<\/li>\n<\/ul>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo hostname\r\n<\/code><\/pre>\n<\/div>\n<ul>\n<li>Third:<\/li>\n<\/ul>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo hostname -f\r\n<\/code><\/pre>\n<\/div>\n<p>The last option shows you the fully qualified hostname.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-2-%d9%86%d8%a7%d9%85-%d9%85%db%8c%d8%b2%d8%a8%d8%a7%d9%86-%d8%b1%d8%a7-%d8%aa%d8%ba%db%8c%db%8c%d8%b1-%d8%af%d9%87%db%8c%d8%af\">Step 2 \u2013 Change the hostname<\/h2>\n<p>There are several ways to change the hostname.<\/p>\n<h5 id=\"%d9%86%d8%a7%d9%85-%d9%85%db%8c%d8%b2%d8%a8%d8%a7%d9%86-%d8%b1%d8%a7-%d8%a7%d8%b2-%d8%b7%d8%b1%db%8c%d9%82-%db%8c%da%a9-%d8%af%d8%b3%d8%aa%d9%88%d8%b1-%d8%aa%d8%ba%db%8c%db%8c%d8%b1-%d8%af%d9%87%db%8c\">Change hostname via a command<\/h5>\n<p>The simplest way would be this option:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo hostnamectl set-hostname servername.fqdn.tld\r\n<\/code><\/pre>\n<\/div>\n<p>Then, restart the SSH service and the new hostname will be set:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo systemctl restart ssh\r\n<\/code><\/pre>\n<\/div>\n<h5 id=\"%d9%86%d8%a7%d9%85-%d9%85%db%8c%d8%b2%d8%a8%d8%a7%d9%86-%d8%b1%d8%a7-%d8%a8%d9%87-%d8%b5%d9%88%d8%b1%d8%aa-%d8%af%d8%b3%d8%aa%db%8c-%d8%aa%d8%ba%db%8c%db%8c%d8%b1-%d8%af%d9%87%db%8c%d8%af\">Change the hostname manually<\/h5>\n<p>You can also change the hostname manually. Just open a few files and change\/check the hostname:<\/p>\n<ul>\n<li>Hostname in \/etc\/hostname<\/li>\n<\/ul>\n<p>In this file only the server name should appear. In our case \u201cServerName\u201d. If not or you want to do it manually, just change it to the desired name.<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo nano \/etc\/hostname\r\n<\/code><\/pre>\n<\/div>\n<ul>\n<li>Email name in \/etc\/mailname<\/li>\n<\/ul>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo nano \/etc\/mailname\r\n<\/code><\/pre>\n<\/div>\n<ul>\n<li>Hostname in \/etc\/hosts<\/li>\n<\/ul>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>nano \/etc\/hosts\r\n<\/code><\/pre>\n<\/div>\n<p>It should look something like this:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>127.0.1.1 servername.fqdn.tld servername\r\n127.0.0.1 localhost\r\n::1 ip6-localhost ip6-loopback servername.fqdn.tld servername\r\nfe00::0 ip6-localnet\r\nff00::0 ip6-mcastprefix\r\nff02::1 ip6-allnodes\r\nff02::2 ip6-allrouters\r\nff02::3 ip6-allhosts<\/code><\/pre>\n<\/div>\n<p>Here you can see where the hostname is set and just change it to the name you want.<\/p>\n<p>After saving the changes, restart the SSH service:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>sudo systemctl restart ssh\r\n<\/code><\/pre>\n<\/div>\n<h2 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87\">Result<\/h2>\n<p>You have successfully checked and changed your server hostname.<\/p>","protected":false},"excerpt":{"rendered":"Introduction The hostname of a Linux system is an important part of the system. You can&#039;t just use it for\u2026","protected":false},"author":1,"featured_media":16005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,204],"tags":[406,279],"class_list":{"0":"post-16004","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-servers","9":"tag-debian","10":"tag-server"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/check-and-change-hostname-on-debian\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u062c\u0632\u0621 \u0645\u0647\u0645\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0633\u062a. \u0634\u0645\u0627 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/check-and-change-hostname-on-debian\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-04T09:44:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/08\/04130528\/Debian-change-name.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f\",\"datePublished\":\"2024-08-04T09:44:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/\"},\"wordCount\":36,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/08\\\/04130528\\\/Debian-change-name.jpg\",\"keywords\":[\"Debian\",\"server\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0633\u0631\u0648\u0631\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/\",\"name\":\"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/08\\\/04130528\\\/Debian-change-name.jpg\",\"datePublished\":\"2024-08-04T09:44:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/08\\\/04130528\\\/Debian-change-name.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/08\\\/04130528\\\/Debian-change-name.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/check-and-change-hostname-on-debian\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Check and change hostname in Debian - ITPiran Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/check-and-change-hostname-on-debian\/","og_locale":"en_US","og_type":"article","og_title":"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u06cc\u06a9 \u0633\u06cc\u0633\u062a\u0645 \u0644\u06cc\u0646\u0648\u06a9\u0633 \u062c\u0632\u0621 \u0645\u0647\u0645\u06cc \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0627\u0633\u062a. \u0634\u0645\u0627 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0622\u0646 \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/check-and-change-hostname-on-debian\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-08-04T09:44:14+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/08\/04130528\/Debian-change-name.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f","datePublished":"2024-08-04T09:44:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/"},"wordCount":36,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/08\/04130528\/Debian-change-name.jpg","keywords":["Debian","server"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0633\u0631\u0648\u0631"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/","name":"Check and change hostname in Debian - ITPiran Blog","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/08\/04130528\/Debian-change-name.jpg","datePublished":"2024-08-04T09:44:14+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/08\/04130528\/Debian-change-name.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/08\/04130528\/Debian-change-name.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/check-and-change-hostname-on-debian\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0646\u0627\u0645 \u0645\u06cc\u0632\u0628\u0627\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0628\u06cc\u0627\u0646 \u0628\u0631\u0631\u0633\u06cc \u0648 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran Blog","description":"Iranian Sustainable Trade News and Articles","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"Sustainable Iranian Business Blog","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"admin","url":"https:\/\/www.itpiran.net\/blog\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/16004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/comments?post=16004"}],"version-history":[{"count":1,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/16004\/revisions"}],"predecessor-version":[{"id":16006,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/16004\/revisions\/16006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media\/16005"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media?parent=16004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/categories?post=16004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/tags?post=16004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}