Questions tagged [hostname]
The unique name by which any device attached to a network is known by.
287
questions
1
vote
0
answers
352
views
How to Set mac address as host name and hosts 127.0.1.1
I'm using Ubuntu for my OS and I'm struggling to set my host name and hosts to a mac address automatically any help on this would be great.
NAME=$GATEWAY_MAC| sed s/://g
hostnamectl set-hostname $NAME
...
1
vote
1
answer
28
views
Got 2 Ethernets one on WAN the other LAN. but LAN Could not resolve hostname
I keep getting Could not resolve hostname but I can put in the IP and it works.
I could not open the port to WWW on my LAN so just using a router and it gets on like that. Then another router for my ...
1
vote
0
answers
1k
views
Ping to avahi device does not work all the time
I just added a NAS to my home network and gave it the hostname mynas. I tried to access the NAS from Kubuntu 20.04 (especially via Samba). It works fine when using plain hostname, but it fails when ...
1
vote
1
answer
3k
views
nmap is not showing hostnames
I am new to linux, and I am trying to get all the hostnames from the hosts of my local network.
I was trying the command:
sudo nmap -sn 192.168.0.0/24
and also:
sudo nmap -sn -R 192.168.0.0/24
but ...
1
vote
0
answers
162
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 ...
1
vote
0
answers
1k
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 ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
1k
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 ...
1
vote
0
answers
658
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://...
1
vote
0
answers
1k
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 ...
1
vote
1
answer
9k
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
0
answers
49
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
vote
0
answers
54
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 ...
1
vote
1
answer
43
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 ...
1
vote
0
answers
5k
views
Ubuntu 16.04 LTS: Unable to resolve/ping hostname
I'm having 2 Odroid U3 Boards running Ubuntu 16.04 LTS. I installed samba so that I can ping both boards in Windows by their hostname. This works as expected. But I'm unable to ping Windows from one ...
1
vote
0
answers
2k
views
How to redirect HTTP call on a port to another port on local env?
Problematic
I would like to call http://myapp.dev in my web browser and "redirect" this call to http://myapp.dev:6547 or http://127.0.0.1:6547, like a proxy would do.
This way, I could have an ...
1
vote
2
answers
6k
views
I can ping my machine by IP but not by hostname
I can ping my machine by IP and access all service or applications like ssh etc; but I can't using hostname.
i used ifconfig to check the current DNS servers but they don't appear:
ens33 Link ...
1
vote
0
answers
541
views
how to read root e-mails with alpine?
While I can send and receive e-mails with Amazon as root, I can't seem to do the same on my local system. Both are xenial 16.04, so shouldn't be that different.
On Amazon, as root, I can launch ...
1
vote
0
answers
183
views
Username & Host Name are Screwed on Terminal
I have been working on my machine to setup a web server.
At a certain point, I noticed my username & host name displayed at the very beginning of each line of terminal commands are different from ...
1
vote
1
answer
11k
views
Unable to ping hostname only IP address
I'm trying to connect to my linux server via the hostname for Samba. I'm have been able to access it with no problem then all of a sudden it stopped working. Here is what is happening.
This is what I ...
1
vote
0
answers
959
views
What should be /etc/hosts entry so that it works fine for both localhost & IP address?
Sample etc/hosts:
127.0.0.1 localhost
127.0.0.1 DEVubuntu
192.xxx.xxx.xxx DEVubuntu
This is not working for me. I am not able to run Zookeeper and I am sure it's related to the ...
1
vote
0
answers
30
views
Ubuntu 14.04 sudo: unable to resolve host Cricketpunk [duplicate]
i am new to ubuntu and recently tried changing my hostname and have probably messed up something,and have trouble fixing it.
Whenever i give command like
get sdu
sudo apt-get install g++ (...
1
vote
1
answer
116
views
do a reverse name lookup to compare the IP to localhost
i want make server ip mapping to localhost?
should i vim /etc/hosts
127.0.0.1 localhost
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.51.101.35 iZ25kpavw8zZ
...
1
vote
0
answers
71
views
Ubuntu PXE installation is not asking for the hostname or domain [duplicate]
I'm using a PXE server for installing systems in my network. I want it to ask for the hostname and domain on every install instead of asigning 'kickseed' everytime. I cannot figure out what is causing ...
1
vote
0
answers
103
views
Is it possible to find the host name (Computer name) in my LAN network if I know its IP address? [duplicate]
I want to know whether this can be achieved using terminal. I have tried nmap, nslookup and netstat, and failed.
1
vote
3
answers
2k
views
Why does "hostname -d" gives different output than domainname?
I have joined an Ubuntu 14.04 machine to domain using samba 4 but auth is not working. Look what I get:
# net ads keytab create -U 'admin'
Enter admin's password:
ads_get_dnshostname: No dNSHostName ...
1
vote
1
answer
2k
views
resolving windows hostname
my main host is windows and im running ubuntu on a virtual guest OS, im currently mounting a folder in windows and in ubuntu and i get this error:
in /etc/fstab
//Windows-PC/shared /home/user/shared`...
0
votes
1
answer
135
views
Unable to update hostname on ubuntu 14.04
I edited /etc/hosts file with the new host, then reboot my system but still I'm getting the old host name, how to solve it?
I'm using ubuntu 14.04.
0
votes
1
answer
797
views
Several IP Addresses fetched with hostname -I
Kubuntu 20.04 LTS is returning 2 IP addresses after hostname -I. The second one is probably from docker0 network interface, so no big worries about that. Problem is that first IP address which have ...
0
votes
1
answer
579
views
Automatic completion for the argument of a bash script
I wrote a bash script having one argument, the name of one of the computers connected on my local network. I would like to enable the automatic completion, like I can with ssh. How can I do that ? ...
0
votes
2
answers
891
views
sudo -s takes a long time to execute and prompts sudo: was not possible to resolve machine XXX
I do not know what is wrong but now, whenever i use a sudo command it takes a long time to execute and prompts:
sudo: was not possible to resolve machine XXX
then it executes. It seems that is ...
0
votes
2
answers
2k
views
Lost access to sudo [duplicate]
sudo: unable to resolve host
I think I need to edit the /etc/hosts file to make an entry for 127.0.1.1 PC name.
But how can I do that if I can't access sudo? It seems to have gone since I updated to ...
0
votes
2
answers
3k
views
Having 2 websites under same IP apache2 configuration?
I know there is plenty of documentation about this, but my problem is different.
I have 2 websites (subdomains) running on one apache2 server.
Site 1 is working fine, site 2 is somehow linked to the ...
0
votes
2
answers
650
views
how to correctly change machine name? [duplicate]
I've changed my machine name through editing /etc/hostname file. but since I did, a weird message appears whenever I sudo:
sudo: unable to resolve host Tehuti
then it asks for password normally.
...
0
votes
1
answer
1k
views
can not change hostname
I want to change the hostname of a Ubuntu 18.04 server.
I did:
hostnamectl --set-hostname newname --static
changed /etc/hostname file to newname
changed /etc/hosts file to newname
rm -f /etc/machine-...
0
votes
3
answers
3k
views
How to find the username who performed SSH?
When one does ssh oracle@hostB on a local host say A, will the hostB know the user who performed SSH on host A?
Is there a way to find out the username who performed SSH?
0
votes
2
answers
2k
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 ...
0
votes
1
answer
1k
views
Winbind Broken on Reboot In Ubuntu 17.04
I have installed winbind and libnss-winbind as usual for NetBIOS name resolution on Ubuntu Gnome 17.04. This works fine and I can get a response pinging by a random host name on the local network.
...
0
votes
1
answer
131
views
Not able to find packages in iso for many standard elf binaries including hostname, bash, dash, login [closed]
I am given with VM disk and ISO image. I need to make sure all the ELF binaries on VM disk are part of given ISO image. In-order to do that I pickup each binary on VM and look into all the .deb, .udeb ...
0
votes
1
answer
968
views
How can I change computer name? [duplicate]
currently I have " carlos@hoffman-c:~$ "
I need to change the above to read " hamburg@hoffman-c:~$ "
I need to preserve all my settings data etc.
Thank you in advance.
0
votes
2
answers
1k
views
not sure I set my host name right need someone to straighten me out
I just installed Zimbra and I think I screwed up my host name trying to get it to install.
I did get Zimbra installed but the certificate is not working. (that's another topic)
Here is my host file:
...
0
votes
1
answer
192
views
How to set up servername.local in Ubuntu server
I'm trying to set up an Ubuntu server with a fixed IP address. I've set up a reserved ID in my firewall and that works - the server uses DHCP to retrieve the 192.168.1.200 IP address fine. However, ...
0
votes
1
answer
183
views
Host name access not working
Ubuntu Server 20.04.3 LTS
Linux 5.4.0-88-generic
Hostname : plexserv
All was working fine, Plex and Samba set up, could access files on the server from Windows and MacOS machine no problem.
Then I ran ...
0
votes
1
answer
405
views
Add an alias for LAN/WLAN IP
Right now Apache server is listening on port 80. I want people on the same network to access the site as random.xyz but without making that my actual hostname (which is ubuntu right now).
The manual ...
0
votes
1
answer
1k
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
1
answer
350
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 ...
0
votes
1
answer
573
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 ...
0
votes
1
answer
863
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
1
answer
240
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 ...
0
votes
1
answer
2k
views
How to change the hostname in Ubuntu 14.04.5 LTS
sudo nano /etc/hostname
sudo nano /etc/hosts
With above I couldn't change the name, because there is an error showing :
read only permission
at the bottom of the window