Link to home
Start Free TrialLog in
Avatar of confusednewguy
confusednewguy

asked on

Problem using cannonical names

Help please! I interconnected three (3) routers and each
router is conected to a computer running a Red Hat Linux
DNS server. I can ping each computer using its IP Address
but not by its cannonical name (ex. computerD). How can I
accomplish pinging the computers by their cannonical
names??? When you respond, please make the instructions
very simple as I am completely in the dark about this
(some examples would be helpful too).
Avatar of Spurgeon
Spurgeon

Make sure you are using the same domainname on all linux-systems. the hostnames may be different.


spurgeon@Journey:~$ ping journey
PING Journey.sidenet.org (192.168.1.3): 56 octets data
64 octets from 192.168.1.3: icmp_seq=0 ttl=64 time=0.0 ms
64 octets from 192.168.1.3: icmp_seq=1 ttl=64 time=0.0 ms
64 octets from 192.168.1.3: icmp_seq=2 ttl=64 time=0.0 ms
64 octets from 192.168.1.3: icmp_seq=3 ttl=64 time=0.0 ms

--- Journey.sidenet.org ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
ASKER CERTIFIED SOLUTION
Avatar of NMi
NMi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, do you have a DNS server configured on one of these boxes? If so you need to add DNS A Records (an 'A Record' is a host name; a CNAME refers to an 'alias' of a host name) and you need to configure each of your linux boxes to use the DNS server. If you don't know if you have DNS running, you probably have it running but you need to configure it with the correct hostnames. The reason you can do this easily with Windows is because it uses something called 'Netbios' which uses 'broadcast storms' (generally) to let each computer know it exists and is on the network (there are many drawbacks to this). Well, let us know if you have configured the previous stuff.
*Embedded
DNS A Records are only for use with internet domainnames...
To link more hostnames to one domain :)
They are not for an internal network, the way you say it *Embedded* sounds like running a DNS-server with bind....
But confusednewguy says he's new at this, so i don't think he's using bind*-servers, You know how difficult bind can be when running multiple cannonical names :)
Spurgeon: Of course, in this simple situation, you can get away with /etc/hosts on each machine, but it's ugly ;) It's far more better to use centralized DNS server.
NMi: I Agree, ( it's ugly ;)) but i think confusednewguy isn't experienced enough to set up a centralized DNS-server for his network... I think he's running well, with only setting /etc/hosts on each machine...
And put them on the same internal domainname.

-= confusednewguy =-
NOTE: They MUST be on the same domainname, else they don't see eachother as a part of the (internal) network...