Is it possible for two hostnames share the same IP address?

Is it possible for two hostnames share the same IP address?

1: No, two hosts(servers) cannot share a public IP directly. 2: Yes, two DNS a records, can use the same Public IP address. 3: Yes, if you have intelligent NAT, you can create NAT rules based on host name and not IP addresses.

Can a computer have two hostnames?

So, it is absolutely possible to have multiple hostnames and domain names for the same system. E.g., docker container inside the same host has different hostname than host system.

What happens if a DNS server goes down?

As soon as a server goes down, the DNS server should automatically switch the DNS A record to list the IP address for the working server first. When DNS resolvers come back to request the IP address for the site, they receive the updated IP address, and route the user to the redundant server.

Is there a DNS server with two IPS?

We’ll say it’s ServerA 192.168.0.10 and ServerA-Alt 192.168.1.10. You can ping either ip address from their corresponding network. The problem is that on the DNS server there is only one record for ServerA, but it is responding with both IP addresses using round robin.

Can a DNS resolve to more than one IP?

A local DNS (usually a FQDN) for only private LAN IPs mapping to local computer names may be a simple 1-to-1 lookup. But even those tend to cache external public lookups with its own set of TTL values as to how often the cache gets updated.

Is there a problem with multiple a Records in DNS?

From DNS point of view, there is nothing wrong with having multiple A records pointing to the same IP. This is often done to “hide” the actual server name, so that application can be moved to a different machine/instance without clients noticing the move. Reverse dns is another thing.

Can a FQDN resolve to multiple IPs?

Yes you can. You can do the below, one fqdn and several ip addresses.The downside is you cannot control what will be used by the client. BIND will round robin them, but other servers may act differently. Subnet.network.com. 1.2.3 4 & 5.6 7 8 & 8.9.9.9