Lets say I have 2 servers. They are on the same network, same subnet and the same domain. Everything is same.
server1.something.internal -> 10.0.0.1 server2.something.internal -> 10.0.0.2
So my question is Why can’t I ping hosts by their fqdn? Instead of using ips I want to connect hosts by using their host and domain names
root@server1:~# ping server2.something.internal ping: unknown host server2.something.internal
Hosts are Debian 6.0. Hostnames and domain names are set correctly. There is no dns or dhcp server on the network.Ips are set to static.
Here is the
etc/resolv.conf of both servers
domain something.internal search something.internal nameserver 220.127.116.11
Your machines must be able to resolve those fqdn into the ip addresses of the servers.
You say you have no DNS (and even if you did google’s public resolver won’t/shouldn’t hand back non-internet IPs to foreign networks). This means that resolution must happen via
/etc/hosts or perhaps some other method specified by
Bottom line: You can’t ping hosts by their FQDN because “their FQDN” doesn’t resolve (properly?).
- On Ubuntu 10.04, should /etc/hostname contain the server’s FQDN?
- mod_unique_id: unable to find IPv4 address of FQDN despite setting etc/hosts and Apache ServerName
- If I set a new linux copy up, and then set the hostname in /etc/sysconfig/network (CentOS) is that my FQDN?
- Ubuntu – get hostname -f to return fake “FQDN” without DNS
- Windows 7 Requiring FQDN To Access Network Shares