Questions tagged as ['hostname']

Hostname is a label assigned to a device connected to a computer network used to identify the device.
Score: 0
Spark_TheCat avatar
Pfsense : using the server to resolve hostnames as ip in local vlans
ua flag

I made a network with 3 machines, one is a pfsense server that manage a captive portal, a dns, dhcp server and firewall rules, it is in a trunk network. The second pc is a server hosting some services and a virtual machine hosting a website it is in a vlan2. the last one is a client computer that want to access internet, the service server and the website server it is located in vlan1. all is done on a  ...

Score: 0
SSH from Windows 10 to Manjaro Linux using its hostname
ma flag

I am using PuTTY to connect to a Lunix machine on local network via ssh and it works fine if I specify the IP address. However I cannot do it using the machine's host name.

It seems that Windows machine doesn't have the right info for that but it works fine on Mac OS and Blink (iPad ssh client). I didn't have to explicitly specify hostname on the client machines and I do not want to do it on Wind ...

Score: 1
Kavish Gour avatar
Setting up dnsmasq as a DNS and DHCP server on a LAN
kz flag

My routers:

Main Router: 192.168.100.1

Second Router: 192.168.101.1

The Main Router is provided by my ISP(a modem/router combo all in one). I don't have control over its settings. Except for changing the WIFI password and SSID.

On the Second Router, I have control over its DNS settings.

My Second Router's WAN port is connected to a LAN port on the Main router. I have a Debian Server with dnsmasq

Score: 0
Kyle Calica-St avatar
DigitalOcean Droplet ssh to use a named key
bd flag

It's been a while since I've done this and configured ssh keys.

I generated an ssh key with a different file name than id_rsa

I have a DigitalOcean Droplet where I placed a named ssh key pair on creation.

Then I created a ~/.ssh/config on my local machine where I configured my Host to use the proper identity file.

I made my hostname the IP of the droplet. I believe I can do that.

~/.ssh/config:

Host mul ...
Score: 1
Sachith Muhandiram avatar
Transient hostname was changed in a server
kr flag

In one of our production server automatically set transient hostname.
hostnamectl status shows

   Static hostname: abc11.example.com
Transient hostname: I
         Icon name: computer-vm
           Chassis: vm
        Machine ID: xxxxxx
           Boot ID: xxxxxx
    Virtualization: microsoft
  Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: L ...
Score: 1
friedulman avatar
Ansible can't set hostname
im flag

Im facing a problem with ansible. I'm trying to set the local hostname of the vm to the ansible inventory name.

my task looks like this:

  - name: set hostname to {{ inventory_hostname }}
    hostname:
      name:
        - "{{inventory_hostname}}"

when i run the playbook i get the following error:

fatal: [sl-testvm101]: FAILED! => {"changed": false, "msg": "Command failed rc=1, out=, err=\u001b[ ...
Score: 0
stevenmiller avatar
DNS suffix not being used with windows server hostnames over VPN
it flag

Our internal network is a windows domain, contoso.net. Internally, if a user needs to get to a file server share, they can navigate to \\fileserver\share or \\fileserver.contoso.net\share and both resolve without issue.

We recently stood up an external VPN (Azure P2S) using IKEv2 that is configured to use our internal DNS servers, DNS suffix contoso.net and is configured for split tunneling.

PPP ada ...
Score: 0
The ssh agent cannot 'resolve hostname' when called from within a bash script
ru flag

I have a bash script

#!/bin/bash
scp -r some_directory remote_host:~

which I made executable with chmod u+x. The remote_host has been defined in my .ssh/config as follows:

Host remote_host
HostName ec2-x-xxx-xx-xxx.eu-central-1.compute.amazonaws.com
User ubuntu
IdentityFile ~/path_to_pem_file/pem_file.pem
IdentitiesOnly yes

when I call scp -r some_directory remote_host:~ or ssh remote_host it works w ...

Score: -2
Alena avatar
Connecting subdomain to a server as hostname
in flag

I have my website (mydomain.com) connected with a vps server and now I want to setup another server and use subdomain from main domain for hostname as well the nameservers (e.g. srv1.mydomain.com should point to new server, ns3.mydomain.com and ns4.mydomain.com new server nameservers). I have created both nameservers (ns3, ns4) and pointed to new server IP address on domain provider, and I think it does ...