Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Problem using cannonical names

Posted on 2003-03-20
Medium Priority
Last Modified: 2010-03-18
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).
Question by:confusednewguy
  • 3
  • 2

Expert Comment

ID: 8180048
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 ( 56 octets data
64 octets from icmp_seq=0 ttl=64 time=0.0 ms
64 octets from icmp_seq=1 ttl=64 time=0.0 ms
64 octets from icmp_seq=2 ttl=64 time=0.0 ms
64 octets from 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

Accepted Solution

NMi earned 2000 total points
ID: 8180813
I think you should do something like:

1. Make sure your routers are really connected to one source of internal DNS information - your "RedHat Linux DNS Server".
2. Write "nameserver <your-dns-server-ip-address>" to /etc/resolv.conf, so your routers would use your DNS server.
3. Write "search <your-domain>" to /etc/resolv.conf, so your routers would accept "short" DNS names - according to previous message, simply "journey" instead of long "journey.sidenet.org".
4. Make sure your routers have their names in the DNS configs of your DNS server.

This should make things easier ;)

Expert Comment

ID: 8180832
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.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Expert Comment

ID: 8181345
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 :)

Expert Comment

ID: 8181416
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.

Expert Comment

ID: 8181497
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...

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question