Questions tagged as ['hostname']
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 ...

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 ...
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
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 ...
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 ...
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[ ...
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 ...

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 ...
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 ...