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
0answers
54 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
0answers
27 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
50 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 ...
0
votes
0answers
29 views

Set hostname at boot time is slow

The problem: dmesg show that Set hostname to take significance amount of time to set it at boot time (>6 secs). How to solve this or somehow set it static and not at boot time?
0
votes
0answers
55 views

Hostname resolution from a device which cannot run mDNS

I am working on an IoT gateway currently running Ubuntu running mDNS (avahi-daemon). I have a vendor device with a basic IPv4 stack but without mDNS service like how my gateway does. Is it ...
1
vote
1answer
97 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
32 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
16 views

Passing custom vars to preseed-file i.e. individual names for hosts and volume groups

) my first question here is about passing custom vars to preseed configuration for the individualization of installed machines on 18.04.3 LTS I want to give a "temporary hostname" to the machines, ...
0
votes
0answers
95 views

Generate netcfg/get_hostname in a preseed file

Is it possible to generate the string for netcfg/get_hostname randomly? I need something like netcfg/get_hostname string static-RANDOMSTRING. In a shell script, I would use /dev/urandom.
0
votes
0answers
608 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
111 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
33 views

hostname and dns records

I would like to purchase a domain, say fireworks.com, and a VPS. Supposing that I want to call my machine ubuntu-1804, I wonder how my etc/hosts file should be edited, as follows: 127.0.0.1 ...
0
votes
0answers
40 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
49 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
666 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....
0
votes
0answers
18 views

Add virtual hostnames / IP addresses to development machine [duplicate]

I want to add some additional hostnames and IP addresses to my work machine. The IT setup assigns are machines IPs via DHCP so I'd like to configure my machine to request three additional IPs with ...
4
votes
2answers
225 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
241 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 ...
0
votes
0answers
86 views

Ubuntu 18.04 running from USB (live-usb) - SSH: Cannot resolve hostname xxx.xxx.xx: Name or service not known

I'm trying to use ssh in an Ubuntu 18.04 running from USB (Live-USB, not installed). SSH is installed but I cannot connect to any given host. I get the following message: ssh: Could not resolve ...
1
vote
1answer
1k 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
282 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
1k 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
551 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
137 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
53 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
73 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
108 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
65 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
565 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
396 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
1k 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
53 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
36 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
6k 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
295 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
2k 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
3k 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
44 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 ...
0
votes
0answers
354 views

Permission denied when using sysctl to change hostname

I'm using a container from codeanywhere which is Ubuntu 14.04. For homework, I have to change the hostname permanently using sysctl. Apparently to change it I have to use the command sysctl kernel....
1
vote
0answers
52 views

ubuntu-server unreachable using https://ubuntu:10000 [duplicate]

I could reach my ubuntu-server via https://ubuntu:10000/ in a previous install of ubuntu server 16.04 LTS. Before I got that install fully configured, I reinstalled (changed to a different physical ...
2
votes
1answer
502 views

Hostname in postfix changing automatically during installation

I was installing tlp for ubuntu. During installation a dialog box for changing postfix configuration had popped up, and I went with the default options, setting the hostname as Jayant. Now, when I ...
1
vote
1answer
32 views

Can I make .local implicit

On my LAN I have a host named pleurotus. I can ping pleurotus.local but not pleurotus-- the host isn't found. Is there a way to make .local implicit, perhaps by putting some magical entry in the ...
0
votes
2answers
3k views

How to access ubuntu server using just hostname and not hostaname.local

I have a ubuntu-Server 16.04 LTS running and fully updated. I can access it through IP Address and hostname.local, but if I try to access it with just hostname it can't reach the address. hostname ...
1
vote
1answer
8k views

Reverse DNS does not match SMTP Banner

I installed Postfix on my Ubuntu 16.04 server ( DigitalOcean ) , for my site: example.com I added an A record mail.example.com and an MX record for example.com handled by mail.example.com it' ...
0
votes
1answer
4k views

Is it possible to use multiple IP addresses for the same host name in a linux hosts file?

The scenario is I have a machine that can be accessed both locally (when I am in the same network as the machine) and publicly (when I am on any external network). I want my hosts file to look ...
0
votes
0answers
39 views

different hosnames for vm clones

Running virtualbox in ubuntu with lots of lubuntu clones but every clones has same hostname which puts me into trouble.Is there any way to assign different hostnames like ubuntu-1,ubuntu-2 .. rather ...
1
vote
0answers
453 views

Ubuntu 14.04: Hostname showing as ubuntu on router

This is driving me crazy. I have a static IP configured, Ethernet cabled Ubuntu Server 14.04 machine Where you see MY_HOSTNAME, this is where I have configured my real hostname which is 5 characters ...
5
votes
3answers
13k views

How to get Ubuntu Host to Register Hostname With DNS Server

I'm in an Active Directory domain. I have a windows computer (not joined to the domain). When I connect it to the network, I can ping it by hostname from any other computer on the network. How can I ...
0
votes
0answers
35 views

unable to resolve host due to lost administrative password

I lost my admin password and changing it via root during start up does not make changes i'm guessing due to "unable to resolve host issue" and i can not change the host issue without the password. How ...

1
2 3 4 5