Skip to main content

Questions tagged [hostname]

A hostname is the label given to a device connected to a computer network.

78 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
478 views

Set arbitrary or random computer name when connecting to public wifi

I am not sure about the correct terminology of what I want to achieve. Here is a hand-waving description: When connecting to a (usually) public WIFI spot, I want that spot to not know my computer name ...
bliako's user avatar
  • 165
3 votes
0 answers
5k views

hostnamectl fails with “Connection timed out” when running inside a systemd-nspawn container

I’m using systemd-nspawn and qemu-arm-static to boot into a Raspberry Pi OS image to apply customizations to the stock image before flashing it onto an SD card. The host machine is Ubuntu 20.10 (...
aaronk6's user avatar
  • 141
3 votes
0 answers
1k views

name resolves doesn't work in chroot for users, but does for root

I've booted a live-cd in order to download, compile and install a few packages on a otherwise working system without actually booting said system. I've created a build user on the system by issuing ...
Torxed's user avatar
  • 3,667
3 votes
0 answers
5k views

systemd Journal Service takes two hours to start

I have a relatively fresh debian install on which I changed the hostname in /etc/hostname. It gives me the following message during boot: [ 7406.882872] systemd[1]: Starting Journal Service... [ 7406....
user5104897's user avatar
3 votes
0 answers
1k views

How to update ip in hosts file automatically from a VirtualBox guest?

I have a VirtualBox guest running Debian with Bridged Adapter. The host is running on Windows 8. I would like to connect from the host to the guest through a specific port. I came up with the ...
András Gyömrey's user avatar
3 votes
0 answers
480 views

Use eth0 and eth1 for different subnets and assigned host name to interface?

I have a machine running SELES 10 with dual NIC Both the NICs are on separate subnets. The server uses a DHCP. So when one interface, eth0, gets the IP from DHCP and registers with DNS and then the ...
kaka123's user avatar
  • 31
3 votes
1 answer
2k views

Value of /proc/sys/kernel/hostname

I've set computer hostname in /etc/hostname a while ago (also there are record in /etc/hosts). Everything worked fine, but recently I've noticed that value of hostname (and /proc/sys/kernel/hostname) ...
valodzka's user avatar
  • 405
2 votes
1 answer
320 views

How I can increase size of hostname from 64 to more characters in centos?

I want to set my centos instance hostname which is more then 64 characters Example: cent07-env07-ins01-xyz23-pro-dot-1692697882-b.dev.api.mywebsite. => 64 characters which is allow But as per our ...
K.D Singh's user avatar
2 votes
0 answers
434 views

Is changing the system hostname on a server with a running MySQL / MariaDB service harmful?

I want to change the hostname of a running CentOS 7 server which is running MySQL (mysql Ver 15.1 Distrib 10.0.33-MariaDB, for Linux (x86_64) using readline 5.1). Although I can't find any sources ...
William's user avatar
  • 614
2 votes
1 answer
849 views

NetBSD 7.0.2 not honoring hostname setting when using DHCP

I've recently installed NetBSD 7.0.2, and I'm having trouble setting my hostname right. I'm using DHCP, so I got dhclient=YES in my /etc/rc.conf. Now, the documentation says, that there are several ...
polemon's user avatar
  • 11.5k
2 votes
0 answers
1k views

Why are the names different in "/etc/HOSTNAME" file and hostname command in SLES11SP3?

My OS is SuSE(SLES11, SP3), executing the hostname command: # hostname lxc-dl580-g8-1 But the name in /etc/HOSTNAME file is different? # cat /etc/HOSTNAME linux-2pny.site Why are the names ...
Nan Xiao's user avatar
  • 1,417
2 votes
0 answers
238 views

why is FQDN using external IP address

When postfix connects to the FQDN dur.bounceme.net it uses the external IP address: root@dur:~# root@dur:~# tail /var/log/mail.log Aug 28 04:39:45 dur postfix/master[6667]: terminating on signal 15 ...
Thufir's user avatar
  • 1,910
1 vote
1 answer
1k views

Installing systemd-resolved kills dns lookup

Update After uninstalling and re-installing systemd-resolved, the issue seems to have righted itself. I do not understand why, but I did notice that the /etc/resolv.conf does not get modified after ...
user111395's user avatar
1 vote
0 answers
117 views

avahi-daemon runs with wrong hostname

I have a problem on one device where the avahi-daemon is running with the wrong hostname and it is messing up my system. The hostname is ABC-100001 but when I check the process list it shows that ...
uncletall's user avatar
  • 111
1 vote
1 answer
379 views

systemd ignores /etc/hostname at startup

Our team works with a custom, barebone linux distro for an embedded device, and it uses systemd. The system used to rely on SystemV init scripts until stuff got migrated to systemd (including network ...
luis.espinal's user avatar
1 vote
1 answer
65 views

Mutt fails to send email

In my Azure ci/cd pipeline, I am executing tests on Ubuntu 20.04. At the end of the test, I created task in the azure pipeline , to send an email to team with attachment of test reports. I am using ...
Jay's user avatar
  • 115
1 vote
0 answers
901 views

sudo: unable to resolve host debian: Name or service not known. I've already set host name in /etc/hostname and /etc/hosts but it keeps changing?

Hello Linux community. I have a VPS service bought from Vultr, so this is not some home standalone PC with Linux installed on it. I have to deal with all this obscure Control Panel setup they "...
michal roesler's user avatar
1 vote
0 answers
936 views

Multiple hostnames for a single IP address in local network

I'd like to know if it is possible to have multiple hostnames for a single IP address in my local network, so that all hostnames point to the same IP-address (kind of an alias) Example: name ...
Rudolf Ziegaus's user avatar
1 vote
0 answers
322 views

What exactly does "sudo hostnamectl set-hostname NEW_HOSTNAME" change?

Just want to understand exactly what sudo hostnamectl set-hostname NEW_HOSTNAME is doing. Surely it does something other than changing the value inside /etc/hostname?
johnnyApplePRNG's user avatar
1 vote
1 answer
635 views

sudo command showing delay after using hostnamectl to set hostname

I've got a system - accessible over local network but not connected to the internet. I'm facing issues when changing the hostname of this system. I know that changing hostname is a two step process: ...
Harsh's user avatar
  • 151
1 vote
0 answers
190 views

Why is my computer sometimes assigned two internal IP addresses?

I run Debian 10 and sometimes when I start the computer the output of hostname -I has three entries: $ hostname -I 192.168.0.13 192.168.0.2 fdaa:bbcc:ddee:0:d69a:20ff:fef8:dca8 Sometimes it has one ...
August Karlstrom's user avatar
1 vote
1 answer
327 views

How to update the hostname automatically?

When out system starts up, the default hostname is 'system', the login prompt is like this: sytem login: And now there is an application running and will set the hostname as system_<mac address>...
laogao's user avatar
  • 31
1 vote
0 answers
96 views

Manjaro Update Error

I'm on Manjaro since 1 year now and since two months I'm in China, without stable network to do any update. Yesterday, I ran "pacman -Syu" the update face fine, no errors. But when I reboot, I noticed ...
N214's user avatar
  • 11
1 vote
1 answer
997 views

Fedora 30's computer name changed during usage, but I can't change it back

I have recently installed Fedora 30 on a new laptop. When I had set it up, my hostname, as seen in the command prompt, was set to simply 'fedora'. At some point during the last month of usage the ...
Harry Cooke's user avatar
1 vote
1 answer
42 views

Is there a canonical method a host can use to self-rename?

Naming hosts and keeping track of them is a lot of work on a home network or on a test cluster of VMs. Is there a canonical way to make a host self-rename from whatever name it was initially set with ...
rbanffy's user avatar
  • 1,218
1 vote
1 answer
847 views

Postfix myhostname change

I'm currently trying to change the myhostname field. So, I have this situation: My server doesn't need an Internet domain anymore, since it will be a local host server. But I want to serve mail ...
Newbie32's user avatar
1 vote
0 answers
198 views

Jenkins deploy doesn't pass variable to java

Problem that I ran into is that when we deploy our Java application via Jenkins hostname variable is not passed to it. Inside the script somewhere we define HOSTNAME=$(hostname -f) variable, which we ...
CallanSM's user avatar
  • 111
1 vote
0 answers
960 views

Why is LDAP trying to connect by hostname instead of localhost?

I have set up an LDAP server on localhost and generated certificate with CN=localhost. But when I run the command ldapsearch -H ldap://localhost -D "..." -w password -ZZ -d1 I get the error ... ...
avi9526's user avatar
  • 339
1 vote
1 answer
375 views

Turn off resolve peers in uTorrent server (utserver)

I have utserver running and WebUI is also working. I noticed the default seems to have the peer resolve the IP address to their host name. I want to turn this off. In the Windows client, you could ...
Sun's user avatar
  • 188
1 vote
0 answers
2k views

Rsyslog to use hostname instead of leftmost FQDN label

I have an Ubuntu 15.10 configuration in which /etc/hostname reads projectname-environmentname and /etc/hosts reads 127.0.0.1 localhost 127.0.1.1 environmentname.projectname.tld projectname-...
Joó Ádám's user avatar
1 vote
0 answers
2k views

Could not open X display after hostname change

I need to change the hostname of my Computer from localhost.localdomain to DESKTOP. However, I can't manage to do this, even after browsing some of the net. I've changed my hostname with hostname ...
Anonymous12223's user avatar
1 vote
0 answers
881 views

Chrome OS: Crosh Window and Hostname

I have a couple of questions regarding Chrome OS: By default Ctrl+Alt+T opens a crosh window within the Chrome browser. I have the Crosh Window extension, which I would like Ctrl+Alt+T bound to - ...
Adlai's user avatar
  • 21
1 vote
0 answers
2k views

Getting Samba 4.1's "internal DNS" to update hostnames from dhcpd

Samba 4 comes with its own "internal DNS" which can be used rather than BIND. Since Samba 4's main new feature is AD replacement, I would figure that its DNS would function similarly to Windows ...
Kev's user avatar
  • 1,739
1 vote
0 answers
7k views

Hostname won't resolve, DNS issue, loop detected

I've searched everywhere and tried all the suggestions that I've seen, but I just can't get this to work now (it was working before). This is the first time I've ever installed a test server that I ...
skywalker14's user avatar
1 vote
1 answer
218 views

Fedora changed hostname

I am running Fedora 31 and Windows 10 on my Lenovo laptop. Everything has been running smoothly between the two systems for over half a year now, but turning on my machine today I was shocked to find ...
Elhitch's user avatar
  • 111
0 votes
0 answers
49 views

Can't ping hostnames and IPv6 after router restart

This happened after a router restart. (no idea if this is relevant but my Windows PC also reverted the DNS settings to an old local server I tested) I noticed the issue when I ssh'ed to my homelab ...
Kevin Van Humbeeck's user avatar
0 votes
1 answer
318 views

Broadcast multiple hostnames on LAN

I have a home server set up to which I have assigned multiple IPs. The network is 192.168.196.0/24, and all the IPs from 130 to 139 are assigned to the same device (the home server). In that server, I ...
Ciro García's user avatar
0 votes
0 answers
121 views

How do I access device using hostname that is hosting an access point?

I have an embedded linux device hosting an access point, I set it up like this: sudo apt install dnsmasq-base -y nmcli connection add type wifi ifname wlan0 con-name access_point autoconnect yes ssid ...
av4625's user avatar
  • 101
0 votes
0 answers
60 views

Ubuntu: Broadcast CNAMES/Alias to the router/ DHCP server/ DNS server

I am trying to build a portable home server with a Intel NUC. My requirement is to plug my NUC to any of my friends or relatives router and with minimal configuration, preferably no configuration, be ...
Aditya Kumar's user avatar
0 votes
0 answers
504 views

Cannot SSH with hostname on a Raspberry Pi

I'm trying to configure my Raspberry Pi using Ansible and the first thing that I did was to change the hostname in the /etc/hosts file via Ansible and I was able to do that. After running my Ansible ...
joesan's user avatar
  • 133
0 votes
0 answers
108 views

WiFi router assigning different hostname despite sending gethostname()

For some reason my wifi router is assigning an altered hostname to my linux device. The hostname on my device is for example shserver2, my CLI login shows me@shserver2: and my /etc/hostname file ...
ShaunMc's user avatar
  • 13
0 votes
0 answers
78 views

finger daemon / nc fowarding error

For an assignment I'm trying to properly send a buffer overflow exploit with ncat in order gain root access on a vulnerable machine set up by the professor. I feel I created my egg right but I keep ...
Jacob ricondo's user avatar
0 votes
0 answers
94 views

How to get VirtualBox web server to use a public domain name?

Here's the situation: CentOS 7 x64 latest is installed in VirtualBox on my PC. Webmin is installed and port forwarded through VirtualBox so I can access the Webmin interface on the host PC. So the ...
user7211's user avatar
0 votes
1 answer
398 views

NetworkManager: on multihomed client specify which interface should provide DHCP hostname

Environment: Many RHEL8 machines, running a default NetworkManager config. Two main networks: on both, DHCP supplies usual info including hostname. Most hosts are single-homed on either one network ...
David Lee's user avatar
0 votes
1 answer
1k views

hostname and /etc/hosts

On a server I have had issues with sudo saying sudo: unable to resolve host Now I don't know if this is related but someone else has modified /etc/hostname but not /etc/hosts so that the new ...
Codey McCodeface's user avatar
0 votes
0 answers
280 views

My macOS hostname changed randomly should I be worried?

My hostname on my macOS 11.5 changed from MacBook-Pro-username to DESKTOP-NMO2G92 without me changing anything Should I be worried? aka malware etc
papa234f3d23fgf4d's user avatar
0 votes
1 answer
261 views

Root cannot install packages in rescue or chroot plus service errors

I am using Arch linux. Currently, I am having the trouble of: User Login Management failed User Login Management failed User Login Management failed User Login Management failed Kernel Module drm ...
Quagmire's user avatar
0 votes
0 answers
33 views

Different hostnames, same configuration

I set up two Ubuntu 20.04 servers to run Pi-hole for my home network. One is running on a Raspberry Pi 4 and the other is virtual. Both are running Ubuntu Server 20.04. lsb_release -a Distributor ID: ...
Mitchell Tuckness's user avatar
0 votes
1 answer
1k views

How to reconfigure hostname on Arch Linux so the pacman command works properly

I just finished installing Arch Linux on my computer to the point where I can boot my system without the thumb drive. After rebooting I started making some adjustments and quickly realized that my ...
webbja123's user avatar
0 votes
1 answer
87 views

How do I get the inside of the network to see the server properly? Inside the network, foobar.net doesn't resolve

I'm running MINT 20.1. I am connected to the net via AT&T UVERSE fiber optic. I have a DNS, foobar.net, set up to point at my router, and when I am outside the network, I can load a website ...
Richard Hasting's user avatar