?
Solved

Problem using cannonical names

Posted on 2003-03-20
6
Medium Priority
?
280 Views
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).
0
Comment
Question by:confusednewguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Expert Comment

by:Spurgeon
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 (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
0
 
LVL 2

Accepted Solution

by:
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 ;)
0
 
LVL 2

Expert Comment

by:EmbeddedMind
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.
*Embedded
0
How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

 

Expert Comment

by:Spurgeon
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 :)
0
 
LVL 2

Expert Comment

by:NMi
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.
0
 

Expert Comment

by:Spurgeon
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...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month10 days, 7 hours left to enroll

764 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