Feb 29, 2012

Connecting hosts in same network by their fqdn


Lets say I have 2 servers. They are on the same network, same subnet and the same domain. Everything is same.

server1.something.internal ->
server2.something.internal ->

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
Asked by Oguz Bilgic


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 /etc/nss_switch.conf.

Bottom line: You can’t ping hosts by their FQDN because “their FQDN” doesn’t resolve (properly?).

Answered by 84104

Related posts:

  1. On Ubuntu 10.04, should /etc/hostname contain the server’s FQDN?
  2. mod_unique_id: unable to find IPv4 address of FQDN despite setting etc/hosts and Apache ServerName
  3. If I set a new linux copy up, and then set the hostname in /etc/sysconfig/network (CentOS) is that my FQDN?
  4. Ubuntu – get hostname -f to return fake “FQDN” without DNS
  5. Windows 7 Requiring FQDN To Access Network Shares


  • Thanks with regard to spreading, this can be a wonderful blog. Wonderful.

  • naturally like your website but you need to test the spelling on several of your posts. A number of them are rife with spelling issues and I to find it very troublesome to tell the truth on the other hand I’ll surely come back again.

Leave a comment