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
1
vote
1answer
25 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 ...
0
votes
1answer
31 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 ...
0
votes
3answers
48 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 ...
-1
votes
0answers
27 views

How do I get Linux machines to resolve NetBIOS names?

I am having issues getting my Linux devices (Ubuntu Server 20.04) to resolve my Windows PC's hostname. I can see the hostname and IP address in my ARP cache, and running net lookup HOST provides ...
0
votes
0answers
16 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 ...
0
votes
0answers
14 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" ...
0
votes
1answer
24 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....
0
votes
0answers
18 views

Squid within docker, rDNS test failed

I build a squid docker container with something like this: https://github.com/sameersbn/docker-squid/blob/master/Dockerfile and I noticed the following problems when starting it interactively: 2020/...
0
votes
0answers
15 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 ...
0
votes
0answers
54 views

AWS Ubuntu after creating AMI image hardcoded hostname. Instance unreachable

I created AMI, based on the running instance. After launching a new instance based on that AMI, new instance is unreachable. After watching into system log I see, that it has set hostname to an ...
1
vote
1answer
31 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 "...
0
votes
1answer
59 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 ...
0
votes
1answer
66 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:...
-1
votes
1answer
26 views

Problems resolving hostnames on LAN in CentOS

I have a CentOS 7.7 server up and running, which I am trying to access from other CentOS machines on LAN. Unfortunately, I am not able to reach the hostname from other machines. How can I solve this ...
0
votes
1answer
106 views

CWP: Setting up name servers and web panel at new server

I have installed CentOS Web Panel on my digital ocean droplet. I can access web panel using IP, and I have my domain example.com on name cheap. I wanted to: Access web panel using srv.example.com ...
0
votes
0answers
27 views

If the certificate CN is different from a server's public DNS name, are SANs the way to go?

I am aware that hostname verification is required for an SSL handshake to be successful, and is vital for security reasons (i.e. MiTM attacks). That said, AWS automatically assigns public DNS names ...
2
votes
0answers
391 views

Can't reach own host URL from within Jenkins build docker environment

I am running Jenkins as Docker image (https://hub.docker.com/_/jenkins) From within, I run a node-12 docker image as build container. I am running a script to publish the new version to our local app ...
0
votes
1answer
193 views

dhclient.conf - append to system hostname [duplicate]

I'm running a Raspbian on a bunch of Raspberry Pis. They each have a unique hostname set in /etc/hostname and the dhcp client correctly registers that name with my router. The problem I'm running ...
0
votes
2answers
63 views

Can the hostname section of a FQDN be something other than the hostname?

I understand that a FQDN is the combination of the domain name and the machine's (host's) name. But can I have a FQDN where what the hostname would be, is something different? Can this cause problems? ...
1
vote
1answer
359 views

Changing from Localhost to Computer Name Throws 403 Error (Tomcat 9)

I am trying to run Tomcat 9. I have configured it to run with SSL. So when I am accessing the tomcat URL with: https://localhost:8443/manager/html It works fine. But when I try to run it with my ...
1
vote
0answers
1k views

Change remote server's hostname with ansible

I want to change my remote server's hostname so I used the hostname module: - hostname: name="{{my_hostname}}" But that also changed the ansible_host to that value, and so messed up remaining tasks. ...
0
votes
0answers
94 views

sendmail change domain name / it uses local hostname

I have an AWS EC2 instance on debian. I installed sendmail to use it with php and send emails. My emails go to spam, so I put an SPF record on the domain name, but it still goes in spam, because ...
0
votes
2answers
98 views

Should full hostname of email server be set in the DNS Zone Settings?

We are using a rented VPS as an email server. Lets say the email domain is example.com. The nameserver for example.com is a different server. rDNS for the VPS can be set on the hosting side. In order ...
0
votes
3answers
54 views

Custom Nameserver (Hostname) Registration

I have done enough research and I feel that a solution specific to my problem doesn't exist or I'm unable to find an easy option to choose. So I'm going to offer my clients managed hosting using third-...
1
vote
1answer
468 views

Append domain to container hostnames in a Kubernetes StatefulSet

I have created a Kubernetes StatefulSet. There are three pods in the StatefulSet with names mysql-0, mysql-1, and mysql-2 each with a single container. If I "log" onto the container in pod mysql-1 ...
-1
votes
1answer
154 views

Pointing to another domain using CNAME

I would like to point a subdomain to be displayed in another external domain using CNAME flattening. e.g. book.webbangkok.com to be displayed at property.thailandbusinessconsultant.com In webbangkok....
0
votes
1answer
179 views

Google Cloud VM Instance Name Change

I would like to change the VM instance name on the Google Cloud admin portal to reflect the new names I have given various servers. Is there a way via the GUI to do so, or does this need to be done ...
1
vote
1answer
1k views

/etc/HOSTNAME on SuSE: short name or FQDN?

The file /etc/HOSTNAME on SuSE-Linux contains the host name. Should this be the full qualified domain name, or the short name (without ".")? Related question: socket.getfqdn() returns no domain, but ...
0
votes
2answers
263 views

How does hostname resolution work without hosts file?

The company I work at has a lot of local server accessible via hostname (ABCSRVDC01 for example). To connect to one of them over SSH I don't need to use the ip address of the server, but instead use ...
22
votes
1answer
4k views

How can this tool find out registered domains from an IP address?

This is one that I've never really known how to do, and it's been nagging me from time to time for years. I've read all I could find, including all the answers here. None of them gives a real answer ...
0
votes
2answers
82 views

setting hostname other than /etc/hosts

How do i set the hostname of the machine (Suse 9.2/9.3) ? the hosts file in /etc/hosts shows a different hostname. where is the setting else stored other than in the /etc/hosts file ? changing the /...
1
vote
0answers
279 views

Why does my AWS EC2 instance return “Unknown host” when doing a “hostname -i”?

Last week someone created an AWS EC2 instance for us using AMI type Amazon Linux 2 AMI 2.0.20190313 x86_64 HVM gp2. Let's call that Instance1. Yesterday we found a problem with our software that may ...
0
votes
1answer
350 views

http error 400 Bad Request on name but IP address works

I have got a Vodafone "EasyBox 904 xDSL" router which has a LAN facing administration interface on http (not https) on port 80. I can access it fine when I use http://[ip of the router] For ...
0
votes
1answer
44 views

Sendmail trying to find hostnames in headers for no good reason

I have a client who uses an external mail server to log and filter their inbound email before passing it on to their main mail system (which is Office365). The external server is running Sendmail, ...
0
votes
2answers
209 views

Changing hostname raises sudo resolving host error

Amongst other things, I am trying to change my hostname with a script. Basically the script seds the values of ubuntu from /etc/hostname and /etc/hosts. I tried this on Ubuntu 16.04.4 in the past and ...
1
vote
2answers
150 views

What to use for a hostname on a dedicated Linux server?

I've recently run into Debian wiki not recommending to set exim's primary_hostname explicitly. From what I can gather, here's the code that chooses primary_hostname. Basically, either I have FQDN in /...
0
votes
1answer
54 views

Incorrect Oracle host

I have an issue with oracle 11g installed on a Windows Server 2016. When I create a new DB the hostname is always as the following image shows. https://i.stack.imgur.com/59Eg4.png However, my ...
26
votes
2answers
4k views

How do I rename a Linux host without needing to reboot for the rename to take effect?

I searched for an answer to this question on serverfault and could not find it. I know it is possible, but I can't remember how to do it. How do I change a Linux host's hostname and get that change to ...
0
votes
2answers
151 views

Why does DNS return an FQDN with glue record instead of IP

When I send out a DNS request for my.example.net, my DNS recursive server goes to the DNS root zone (or gets some cached value instead). That nameserver says "go look at the .net nameservers", and ...
-1
votes
1answer
157 views

Configure bind9 zone records to ping/dig/nslookup/web browse using hostname only or fqdn

What is the proper way to configure a BIND9 zone file to allow ping/dig/nslookup/web browsers to query a host using its hostname or a shortened CNAME record that points to this hostname instead of the ...
1
vote
2answers
926 views

(hostname -i) command gives 2 different IP addresses

hostname -i command on a Debian 9 box gives 2 different IPs. hostname -I command gives the correct IP. As per the manual page, -i parameter shouldn't be used. It works only if the hostname can be ...
0
votes
2answers
451 views

Which are reasons to change the default VPS hostname?

I'm configuring a VPS that I recently subscribed to and I follow other devs' blogposts to help me setting my own up. I often see them changing the VPS hostname. The default VPS hostname doesn't look ...
2
votes
1answer
2k views

Call the openvpn server by it's hostname

I use an openvpn infrastructure with a server and some clients. The clients can call each other via their hostnames, but cannot reach the server in the same way. At the moment it is possible to reach ...
1
vote
0answers
433 views

Mac OS X How is Hostname configuration set up

I have taken over a network of Mac Minis at work. The system was installed by a development company that has gone bust and are uncontactable. Each of the Mac minis are connected to a Mac pro acting ...
-5
votes
1answer
248 views

Is a web server able to know the hostname which was resolved to the IP address of the web server? [closed]

For a web server, name based virtual hosting uses hostname specified in the Host header in a HTTP request received by the server. Is a web server able to know the hostname which was resolved to the ...
-2
votes
1answer
49 views

Are the hostname resolved by DNS and the hostname resolved by web server for virtual hosting independent of each other?

Are the following two independent of each other: the hostname resolved by DNS and the hostname resolved by web server for virtual hosting ? Thanks.
4
votes
2answers
912 views

Is file /etc/hostname ever used for host name resolution?

When setting up a local Wi-Fi network in a small place from an ISP, such as Verizon, using a router and modem, the machines in the network are assigned private IP addresses. In such a local Wi-Fi ...
-3
votes
3answers
1k views

what is it like that a host name is resolvable to more than one IP addresses? [closed]

From https://serverfault.com/a/953384/16981 Host names do not correspond to an {ipaddress,port} tuple. A host name is only the name of a server, which should be resolvable to one or more IP ...
4
votes
3answers
4k views

When specifying a “host name”, do we still need to specify a port?

https://en.wikipedia.org/wiki/Virtual_hosting says Name-based virtual hosts use multiple host names for the same IP address. Does a "host name" correspond to an IP address or a pair of IP ...
0
votes
2answers
473 views

My google cloud instance is no longer able to resolve external hostnames

Yesterday I had to revert to a recent snapshot of my vm. This vm was working flawlessly at the time I took it. But now I can no longer resolve any url from this host. All git pull commands, all curl ...

1
2 3 4 5
12