Questions tagged [hostname]

Hostname is a label assigned to a device connected to a computer network used to identify the device.

A hostname is a label that is assigned to a device connected to a computer network and that is used to identify the device in various forms of electronic communication such as the World Wide Web, e-mail or Usenet. Hostnames may be simple names consisting of a single word or phrase, or they may have appended the name of a DNS domain, separated from the host specific label by a period (dot). In the latter form, a hostname is also called a domain name. If the domain name is completely specified including a top-level domain of the Internet, the hostname is said to be a fully qualified domain name (FQDN).

Hostnames that include DNS domains are often stored in the Domain Name System together with IP addresses of the host they represent for the purpose of mapping the hostname to an address, or the reverse process.

Source: Wikipedia.

624 questions
0
votes
1 answer

Variables on set-hostname and mv command in shell script

I have the below script in Shell: read n for ((i=1;i<=$n;i++)) do echo "Connecting to $publicip" ssh -i ./key.txt root@$publicip 'hostnamectl set-hostname autotest$i.domain.com && mv /etc/letsencrypt/live/autotest.domain.com…
serverstackqns
  • 764
  • 3
  • 16
  • 42
0
votes
0 answers

Sendmail does not masquerade the hostname.domain combination

My MASQUERADE settings looks as follows... dnl # Also accept email sent to "localhost.localdomain" as local email. dnl # LOCAL_DOMAIN(`localhost.localdomain')dnl dnl # dnl # The following example makes mail from this host and any additional dnl #…
Mike
  • 1
  • 1
0
votes
1 answer

nslookup script for return empty hostnames

I want to write script which returns hostnames with no IP. I wrote following part of the script but I don't know how can I return the empty answers. Thanks in advance $numbers=1..255 foreach ($number in $numbers){ { nslookup host$number }
0
votes
1 answer

Construct public ipv6 adress from hostname of router and interface id of client

I'm trying to ssh to some client behind a router that has a dynamic IPv6 address. Directly using the public IPv6 address of the client works just fine. Now, I'd like to dynamically construct the IPv6 address based on the hostname of the router and…
dba
  • 178
  • 1
  • 5
0
votes
1 answer

How to use hostnames in smtp_bind_address in Postfix configuration?

It seems that Postfix does not allow hostnames in the smtp_bind_address config parameter. But it does allow hostnames in inet_interfaces. For SPF I want to make sure which address SMTP-clients bind to and I wanted to do this with an IP-independent…
Robert Siemer
  • 542
  • 9
  • 19
0
votes
0 answers

Pfsense : using the server to resolve hostnames as ip in local vlans

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…
0
votes
1 answer

SSH from Windows 10 to Manjaro Linux using its hostname

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…
0
votes
1 answer

DigitalOcean Droplet ssh to use a named key

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…
Kyle Calica-St
  • 103
  • 1
  • 6
0
votes
2 answers

DNS suffix not being used with windows server hostnames over VPN

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…
stevenmiller
  • 113
  • 6
0
votes
0 answers

The ssh agent cannot 'resolve hostname' when called from within a bash script

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…
Marlo
  • 105
  • 6
0
votes
1 answer

Debian 10 MX hostname issue

I am facing an issue where every single site like intodns, dnsstuff, mx toolbox is reporting that i have 2 issues. Namely: Reverse DNS does not contain the hostname Reverse DNS does not match SMTP Banner However, as you can see in my cloudflare…
0
votes
1 answer

Ubuntu set hostname via hostnamectl with multiple virtual hosts

I would like to set the hostname of my Ubuntu 16.04 to a FQDN, as I plan to install Postfix server. However I have multiple domains hosted in the web server via Apache2 virtual hosts. For example: example.com domain.com My question is, how should…
Raptor
  • 1,001
  • 4
  • 19
  • 38
0
votes
2 answers

change the hostname for a given service

I have 2 services running on my server. The first python service is working as expected. # netstat -tulpn | grep LISTEN | grep 8888 tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 1057/python The second node service…
shantanuo
  • 3,579
  • 8
  • 49
  • 66
0
votes
1 answer

Can not ping any hostname/domain when ufw enabled

Why I can't ping any domain/hostname when ufw enabled? [root@ip-172-31-23-37 ec2-user]# ping google.com ping: google.com: Name or service not known [root@ip-172-31-23-37 ec2-user]# ufw disable Firewall stopped and disabled on system…
0
votes
0 answers

Add user home directory depending hostname

Is it possible to add a list of users and change the home directory of each user depending on the host name of the server? Thanks in advance