2022 Developer Survey is open! Take survey.

Questions tagged [hostname]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Docker: error could not translate host name to address: Name or service not known in psql

We have the following Dockerfile: FROM debian:stable-slim ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get full-upgrade -y && apt-get install -y --no-install-...
user avatar
  • 111
0 votes
0 answers
30 views

can't set a windows docker container hostname in the hosts file

I set a windows docker container to run some software (abbyy fineprint) that needs to match the docker name (abbydock) with the localhost ip (127.0.0.1). I'm starting the container with docker run -h ...
user avatar
0 votes
0 answers
13 views

How to add multiple hostnames in private DNS zone in Azure to resolve hostnames for VNET?

I have an AKS (Azure Kubernetes cluster) that is on a VNET (Azure Virtual Network) that needs to connect to multiple On-prem hadoop machines to read/write data. I have a private DNS zone connected to ...
user avatar
0 votes
1 answer
33 views

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 && ...
user avatar
0 votes
1 answer
120 views

Multiple hosts with the same hostname on the same network?

Hypothetical situation: I have two (Linux) computers on the same network with the same hostname, but different FQDNs (foo.example.com and foo.example.org). They have different MAC addresses, and get ...
user avatar
  • 35
0 votes
0 answers
32 views

howto make nginx with failover with containers that potentially don't exist

I would like to use Nginx in front of a number of dockers containers, some of which (known) may be missing. Make sure that nginx does not block on "host not found" and stop the container ...
user avatar
  • 11
0 votes
0 answers
65 views

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 ...
user avatar
  • 1
0 votes
1 answer
56 views

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 ...
user avatar
0 votes
1 answer
50 views

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

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 ...
user avatar
  • 168
0 votes
0 answers
32 views

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 ...
user avatar
1 vote
1 answer
145 views

FQDN without the hostname part?

As far as I know, A fully qualified domain name (FQDN) consists of two parts: The hostname part: A single label representing a machine belonging to one specific domain. The domain name part: ...
user avatar
  • 21
0 votes
0 answers
243 views

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 ...
user avatar
0 votes
1 answer
102 views

SSH from Windows 10 to Manjaro Linux using its hostname [closed]

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 ...
user avatar
1 vote
1 answer
212 views

Setting up dnsmasq as a DNS and DHCP server on a LAN

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 ...
user avatar
0 votes
1 answer
30 views

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 ...
user avatar
1 vote
0 answers
61 views

Transient hostname was changed in a server

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 ...
user avatar
1 vote
1 answer
514 views

Ansible can't set hostname

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:...
user avatar
0 votes
2 answers
228 views

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 ...
user avatar
0 votes
0 answers
509 views

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 ...
user avatar
  • 105
-2 votes
1 answer
86 views

Connecting subdomain to a server as hostname

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 ...
user avatar
  • 97
1 vote
1 answer
528 views

How to change the hostname on the single-node K8s node

Environments: OS: Ubuntu 18.04.5 LTS Kubernetes: v1.16.15 deployment tool: kubeadm v1.16.15 I initialize a single-node K8s on my workstation with the following configuraions: --- apiVersion: kubeadm....
user avatar
  • 11
0 votes
1 answer
92 views

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 ...
user avatar
0 votes
1 answer
249 views

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: ...
user avatar
  • 971
0 votes
2 answers
74 views

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:* ...
user avatar
  • 3,427
1 vote
2 answers
181 views

What causes a computer/phone/device to do a DNS lookup for its own hostname?

The two main things I'm wondering are: What causes a computer/phone/device to do a DNS lookup for its own hostname/FQDN How long after a device leaves a network will it retain the "settings"...
user avatar
  • 63
3 votes
1 answer
564 views

how to setup dnsmasq for DNS for private and public hostnames via different DNS servers [duplicate]

lets say i have this private hostname dev.private.example.com that is only accessible in a private network over VPN connection and i have prod.example.com that is accessible to the internet. I have ...
user avatar
  • 481
0 votes
1 answer
449 views

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 ...
user avatar
0 votes
0 answers
17 views

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
user avatar
0 votes
1 answer
104 views

How to identity who is scraping my website?

I have an e-commerce website, hosted on AWS. I understand there are tools that prevent/block the scraping bots. But is it possible to detect who is scraping my website? I mean, would I be able to ...
user avatar
1 vote
0 answers
255 views

Changed hostname, openssl s_client not working

I changed a CentOS 6 GNU/Linux hostname, and now everything is perfect regarding the new hostname. But when executing openssl commands, such as: # openssl s_client -CApath /etc/ssl/certs -showcerts -...
user avatar
  • 11
3 votes
1 answer
566 views

How to find another container on the same ECS cluster by hostname?

This question feels too obvious to not already have an answer but all of my google searches are coming up with nothing. In docker (docker-compose) you can easily get the IP of another container by ...
user avatar
0 votes
1 answer
34 views

Ping server remotely timed out

I recently setup local Ubuntu server to host VS Code and NGINX servers which work fine on codeserver (hostname) and can ping the hostname and IP address remotely. The problem I am facing is that I ...
user avatar
1 vote
1 answer
33 views

WinServer Connects To SMB Share As "TINA2"

I have a computer that has a fileshare (Windows Server 2012). When I looked at the sessions, I saw a computer named tina2. There is no current computer on our network named tina2. When I ...
user avatar
0 votes
0 answers
31 views

Accessing servers through hostname now requires FQDN?

After upgrading to Linux Mint 20, the servers (pgsql databases and windows network share) on our internal network now require the fully qualified domain instead of just the machine name. For example, ...
user avatar
2 votes
1 answer
953 views

How to block Hostname in htaccess?

I get thousands of server requests from "clients.your-server.de" i use these code in htaccess to block bots and spiders, but i did not know if the two first lines of code will work ... Is it ...
user avatar
  • 23
0 votes
1 answer
1k views

Webmin redirects to my hostname instead of my domain name [closed]

I have Webmin working on a domain with an SSL certificate. However, when I visit it over HTTP, it redirects to https://hostname:10000 instead of the domain name. I've set the FQDN in /etc/hosts (...
user avatar
  • 103
1 vote
1 answer
87 views

Can my Ceph nodes have the same hostname?

I have a high availability solution which requires me to have all my nodes using the same hostname. I've been tasked to use ceph cluster storage, but I just reached a dead end. I can't figure out how ...
user avatar
0 votes
2 answers
89 views

Add Linux hostname to Windows DNS GUI [closed]

In Windows Server 2008 R2, and in an Active Directory Environment, how can I add an alias hostname to DNS, so that all workstation will know the internal ip address of that alias hostname? I have a ...
user avatar
  • 1,420
0 votes
0 answers
25 views

Issue with hostname on Windows Server 2012 domain controller

We moved sites recently and since the move I have been unable to get the DC to respond to pings / file locations using the hostname - it can be pinged fine, and I can ping the hostname from the DC ...
user avatar
  • 1
0 votes
1 answer
396 views

Connect to FTP server without using hostname

I have a VPS with IP address: 54.432.212.12 There are multiple sites running on it. My IIS FTP site bindings are: Site 1 Bindings: 54.432.212.12:21:www.mydomain.com Physical Path: E:\mydomain\wwwroot ...
user avatar
  • 197
1 vote
1 answer
817 views

What does "localhost name resolution is handled within DNS itself" mean?

I know that the Windows hosts file maps host names to IP addresses. But there is no mapping for localhost. Instead it has a comment that says this: # localhost name resolution is handled within DNS ...
user avatar
  • 127
0 votes
1 answer
46 views

Hot to get external host names for each internal private addresses?

My lab has a private network like this (public address: 133.3.133.133, host name: my.lab.host.name) lab-gateway (private address: 192.168.0.1) |__labgpu01 (private address: 192.168.0.3) |__labgpu02 ...
user avatar
0 votes
3 answers
72 views

Is it OK to have Hostname domain different than the Nameservers domain?

I was wondering if hostname domain and nameservers domain can be different on my server. I have always kept them the same but now that I am moving my server, I do not want my clients to have the ...
user avatar
  • 3
0 votes
0 answers
177 views

Why is there an error on running host program using git bash terminal?

I am using git bash as a terminal to run code. I doing a course where it has asked us to use the host program to look up host names using DNS. However when I run nslookup it works fine. screenshot of ...
user avatar
  • 101
0 votes
0 answers
198 views

How to add SSL certificates for multiple VPS (Shared Hosting Servers) with the same primary domain?

I am planning 3 VPS shared hosting servers. Of particular focus in this question...they are also acting as mail servers. host1.mydomain.com host2.mydomain.com host3.mydomain.com (where "mydomain" ...
user avatar
  • 11
0 votes
1 answer
63 views

After a Postfix mail server is installed do I need to add mail.example.com to the hosts file?

Environment: CentOS, Postfix, Dovecot, Digital Ocean droplet My /etc/hosts file contains these lines. # The following lines are desirable for IPv4 capable hosts 127.0.0.1 example.com example 127.0.0....
user avatar
0 votes
0 answers
22 views

Using postfix without being able to set custom hostname

As the title suggests I am using a VPS that does not allow me to set a custom hostname. On every reboot the hostname is reset to their specification. Can I still run a postfix mail server on this ...
user avatar
1 vote
1 answer
928 views

Windows not resolving local hostname to hosts file IP

I have a multi-homed Windows 10 and I want my application to open a Server Socket on a specific IP given by its hostname. My machine hostname is MY-PC and it has a public IP 192.0.0.2/24 and a "...
user avatar
  • 121
0 votes
1 answer
67 views

Do private hostnames correlate with or have any direct effect on public hostnames on a running webserver?

I am running a LEMP webserver on my Raspberry pi using Rasbpian. The name of my my pi's hostname is raspi-host123. My local hosts file on my server looks like this: 127.0.0.1 localhost ...
user avatar
  • 103
0 votes
1 answer
306 views

When I do a ping for my CentOS 8 web server, it shows a name that is not the hostname or domain name. where is it getting it from?

I have set my hostname like this: $ sudo hostnamectl set-hostname dev.mydomain.com and I see it got set when I do this: $ hostnamectl status Static hostname: dev.mydomain.com Icon name:...
user avatar

1
2 3 4 5
13