Questions tagged [hostname]

The unique name by which any device attached to a network is known by.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 views

How do I change the hostname in a cutomized live-cd Ubuntu 20.04

I have customized a 20.04 live-cd using Cubic. I need help with changing the hostname to obo. No matter what method I've tried it always defaults back to 'Ubuntu'. Using Cubic's CHROOT terminal, I'...
0
votes
0answers
77 views

Temporary failure in name resolution on Ubuntu 20.04

This issue is similar to: Ubuntu 20.04 server: Temporary failure in name resolution (LAN only) I have the following PCs: PC1: Raspberry Pi4 (Ubuntu Mate Desktop 20.10) Server taking data from PC2 and ...
1
vote
1answer
74 views

ssh-ing in to ubuntu comp by hostname suddenly stopped working (`Could not resolve hostname [ubuntu_comp_hostname]: Name or service not known`)

(see EDIT added to end, bout avahi stuff) It just does this: > ssh -v [ubuntu_comp_hostname].local => OpenSSH_8.2p1, LibreSSL 3.0.2 debug1: Reading configuration data /home/o1/.ssh/...
0
votes
1answer
46 views

File system check at boot time fails

My Ubuntu 20.10 installation was showing a blank screen after booting, so I started it in recovery mode and tried sudo fsck -f /. The error it gave was: sudo: unable to resolve host dk: Temporary ...
0
votes
0answers
22 views

Multiple host names on vServer

I'm using two nginx files - one for the vue frontend and one for the nginx backend (proxy_pass). The current spcecified host name in /etc/hosts which I'm using in the nginx vue config. Like: ...
1
vote
0answers
16 views

Why does default-string appear after hostname in etc/hosts?

Referencing: This question The author is asking how to change hostname when it includes the appendage ´default-string´, If root is required to change the file in the path etc/hosts should this be ...
0
votes
1answer
35 views

I changed the hostname on Ubuntu 20.04 and now I am locked out

I changed hostname and it locked me out from VNC, putty or RDP.(timeout) Yet the server is running and can be accessed with IP address. Hostname cannot be resolved and cannot go back to change it ...
-1
votes
2answers
100 views

SSH hostname command on remote server shows hostname of local server

I run this SSH command from server1 on server2 : ssh server2 echo pasword | su - root -c "echo this is the `hostname`" I expected the result to be host name of server2 but instead I get ...
0
votes
0answers
136 views

Ubuntu 18.04 LTS failed to start modem manager & hostname service

Failed to start modem manager Failed to start hostname service How to resolve this issue on Ubuntu 18.04 LTS.
0
votes
1answer
34 views

Recognising Ubuntu VM hostnames on my local network

I suspect this issue may have been answered somewhere already, so please feel free to patiently direct me there (also as I'm new to this community). However I have done A LOT of searching to resolve ...
0
votes
0answers
136 views

How to run Odoo locally on a small LAN (Local Area Network)?

The Odoo docker image for ERP seems easy enough to get off the ground: root@mordor:~# root@mordor:~# docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db ...
0
votes
1answer
423 views

Static hostname not changing Ubuntu 20.04

I upgraded to 20.04 from 18.04. My hostname had an underscore (My_PC). Now, in my terminal, it says sudo: unable to resolve host MyPC: Name or service not known. I tried: hostnamectl set-hostname ...
1
vote
0answers
259 views

Blocking hostname and subdomains in hosts file

I have recently started using /etc/hosts to block distracting websites. For specific domains that works nicely, but is there any way to match a domain and all of its subdomains? So, this blocks ...
0
votes
0answers
361 views

Hostnamectl WSL2 Error

I'm running Ubuntu 20.04 on WSL2 and I'm trying to change the hostname. Running hostnamectl, I receive the error messages: System has not been booted with systemd as init system (PID 1). Can't ...
0
votes
0answers
30 views

Debugging a CRD host

I’m new to debugging and I have a task to debug this issue. I know I have to create a CRD host and a TLS context CRD with a host name but I’m not sure how. Can someone explain to me how to do this? ...
3
votes
1answer
52 views

Why doesn't hosts file get changed after the change of hostname?

So today while installing Ubuntu 20.04 on my laptop I accidentally gave it the hostname of my desktop and then changed it. A few hours later I was losing my sanity because SSHing into my desktop PC by ...
0
votes
0answers
41 views

Seeing hostname in windows

I'm running Ubuntu Server, 20.04 LTS as a file server for Windows computers. When I PuTTy into the server, it first asks me for a username and password, like login as: usrname@192.168.xx.yy's password:...
0
votes
0answers
24 views

The hosts file remains unchanged after changing the hostname [duplicate]

I have noticed that the /etc/hosts file remains unchanged after changing the hostname which leads to a failure in pinging the new hostname. It gets fixed after manually updating the hosts file and ...
0
votes
0answers
489 views

Unable to change hostname using hostnamectl command

I am trying to change my hostname using hostnamectl command but it is always giving me an error xd003@localhost:~$ hostnamectl System has not been booted with systemd as init system (PID 1). Can't ...
0
votes
1answer
92 views

Deja Dup Device Name Issue

My Linux desktop is 4 years old. I originally named it "foo", but 2ish years ago renamed it "bar". I turned on backups for the first time today using Deja Dup, and it used the old computer/hostname ...
1
vote
1answer
444 views

Can't access by name when setting static IP

I'll do my best to provide as much information as possible, I'm still fairly new to linux, but I have Ubuntu Server 18.04.4 currently running my media server, and I'm trying to set a static IP. I ...
2
votes
1answer
483 views

$HOSTNAME returns empty in rc.local script

I'm executing some script on my server startup, using the rc.local file (as suggested on this SQ answer. The script sends an email to my address notifiying me that the server has started up. This is ...
0
votes
0answers
45 views

showing error while starting ubuntu

I have facing some errors while starting ubuntu desktop. I can't starting ubuntu. See below screenshot: How to start my OS. Anyone please fix this issus?
0
votes
0answers
2k views

ssh-copy-id testnode fails with ERROR: ssh: Could not resolve hostname testnode: Temporarily failure in name resolution

I am not able to mention the SSH Generated Key to my test node. This is the output I get whenever I run the command ssh-copy-id: aibak@aibak-Inspiron-3542:/$ ssh-copy-id testnode /usr/bin/ssh-copy-...
1
vote
1answer
561 views

`hostname` result is different from “/etc/hostname” after upgrade

If I open a terminal windows in my graphical user interface, hostname command result is different from content of /etc/hostname: me@ZyXEL1:~$ hostname ZyXEL1 me@ZyXEL1:~$ cat /etc/hostname N4010 me@...
0
votes
0answers
42 views

I want to change the command prompt

I edited hostname in /etc/hostname and in /etc/hosts; I want the command prompt to be 'new' instead of 'old'; now, what I have is old@new; is there any way to completely get rid of old? Hostname ...
3
votes
1answer
51 views

Removing certain file types that do not contain the hostname in the file name

I am doing a file deployment for multiple machines per site, so it is much easier for me to zip all the files once and deploy to every machine. However I would like to remove the config for all the ...
1
vote
1answer
2k views

UFW block by hostname

Been searching for a while now, but I still can't find a simple answer to my simple problem. I run an FTP server and for security reasons I want to allow access (port 21) only from thispartvaries....
4
votes
2answers
230 views

Why does host name have 'child' in it

When I installed Ubuntu 18.04 into this computer I picked a username = 'test' and computer name = 'abc'. However it set my hostname to be abc-child. So on my terminal I see test@abc-child:~$ Why did ...
1
vote
1answer
484 views

Ubuntu 18.10 and 19.04 - Hyphen in Hostname?

I have tried setting my hostname to d-myserver1 via editing the /etc/hostname file and via 'sudo hostnamectl set-hostname d-myserver1'. If I run hostnamectl, the hostname is reflected properly. If I ...
1
vote
1answer
2k views

Can't ping Windows hostname

I can neither ping nor access Windows 7 Samba shares through the hostname. As recommended at (inter alia) can not ping by host name for some computers, I have edited /etc/nsswitch.conf to include ...
0
votes
1answer
625 views

Hostname (localserver.local) not working with static IP with netplan

I want to use a local hostname to access the same local server via multiple VLAN's easily. It works very well when I set netplan to DCHP, and follow these steps: https://linuxconfig.org/how-to-change-...
1
vote
1answer
4k views

What is the option “host-name” for in /etc/dhcp/dhcpd.conf?

I setup my ubuntu as DHCP server and specified some fixed IP addresses for certain devices using the syntax: host client1 { hardware ethernet b8:27:eb:ce:02:83; fixed-address 192.168.1.1; ...
1
vote
0answers
606 views

Ubtuntu 18.04 Software “cannot resolve hostname”

Just installed Ubuntu 18.04 and Ubuntu Software gives me the following error: Unable to download updates from "extensions.gnome.org": [///source/shell-extensions/] failed to download https://...
0
votes
1answer
248 views

how to change xyz@abc where i need to change xyz when terminal starts [duplicate]

Every time I open my terminal, I see xyz@abc where I type my sudo commands.However, my concern is this xyz and I want to change it to the name of my choice. I am unaware of the technical term for this ...
5
votes
1answer
80 views

Numeric Prefix in Hostname

In the Ubuntu Server Installer, we are precluded from placing a number as the first character in a hostname. However, once installed, we can issue a hostname command to rename the server to have a ...
1
vote
1answer
120 views

How can I set hostname as chinese?

The hostname of machine is english , but our workmates need chinese,some of them couldn't recongnize english. So, how can i do it ??
0
votes
1answer
295 views

hostname and /etc/hosts

I intend to purchase a domain, say for instance muppets.org, for my web server and I would like to install Postfix on the same machine for sending transactional emails. Am I expected to set as ...
0
votes
1answer
106 views

User Account credentials, and how to change Ubuntu-Budgie

I am running into a situation where I need to change the terminal 'user' in Ubuntu-Budgie, but I am not seeing how this can be accomplished yet, mainly because I am not sure of the 'name' I need to ...
1
vote
0answers
737 views

Changing hostname (with hostnamectl) in chroot environment does not work (Iso customization) Ask

I can not change the hostname in the chroot environment (Ubuntu) I tried hostnamectl set-hostname but it says: Failed to create bus connection: Couldnt find file or folder Then I tried changing it ...
2
votes
0answers
456 views

Live installer not using hostname provided by DHCP server in automated install

I'm running a local network with an Ubuntu server and 20 other machines on it. As I want to install a customized Ubuntu 18.04.1 version on all of them, I already created a modified live image and a ...
2
votes
0answers
2k views

After update on 18.4 I get “ssh: couldn't resolve hostname error” [closed]

Last week I got an update for Linux 18.04 and after that, I couldn't SSH into anything and I got: ssh: Could not resolve host-name: Name or service not known I used aliases to SSH into stuff I ...
1
vote
1answer
97 views

Hostname different from ip address

I have two VMs in a private cloud. Lets call them A(1.2.3.90) and B (1.2.3.91) (not actual ips). I used one of them(A) as a template and cloned the second one(B) only changing the ips (static ips). ...
0
votes
0answers
3k views

Unable to download updates from extension.gnome.org : Cannot resolve hostname? [duplicate]

I've just downloaded the newest version of ubuntu, 18.04, and it came with this problem when I opened Ubuntu Software. I'm new to Ubuntu and I need some help.
0
votes
0answers
37 views

How to change somename@myname to myname@somename in ubuntu [duplicate]

How to change somename@myname to myname@somename in ubuntu.I have been trying so hard.I could only change the host name.
2
votes
2answers
7k views

18.04 does not resolve hosts on local network

I recently upgraded from 16.04 to 18.04 and now I am not able to resolve hosts on my local network. With 16.04 everything worked fine. I am still able to use IP to reach other computers but using ...
1
vote
1answer
300 views

How to lock hostname changes in Ubuntu 18.04

I take care of a computer lab and I need to lock changes in the hostname because of the students. Ps: They do not have root access
3
votes
2answers
3k views

How to remove .local suffix from Ubuntu hostname?

When I try to connect to my Ubuntu device with the ssh terminal command, I have to add .local suffix to Ubuntu hostname. For example, if I want to ssh to my device with its hostname, my ssh command ...
0
votes
1answer
5k views

Cannot ping by host name [duplicate]

I have a strange situation. Pinging by ip works fine, but by host name fails. My observations: nslookup -type=ns google.com ;; connection timed out; no servers could be reached In one window I ...
1
vote
0answers
45 views

How to change hostname on a ubuntu server 18.04 [duplicate]

I have a problem with a new server with Ubuntu 18.04. I try to change the host name more times, with different method, like editing /etc/hostname or hostnamectl --set-hostname ecc ecc. But when I ...

1
2 3 4 5 6