Solved

Access Computers by Name not by IP

Posted on 2013-05-29
8
356 Views
Last Modified: 2013-07-14
I have a server running on CentOS 6.3. I am running a accounting software with tomcat web server. My question is that when other computer access the application hosted on tomcat on my local server they have to write my Server IP address and then port no. on which application is hosted. eg. 172.164.1.185:8080

I want instead of knowing my server IP address and port no. they just write my Server name and application is accessible to them.
e.g. accounts.org or university.org


I want to make clear that i am in a INTRA-NET environment and no computer except server can access internet in our LAN.
0
Comment
Question by:edreamers
[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
8 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39205581
You could put your server name in DNS somewhere in your network but that will Not take care of the port number.  Since it is not on the standard port 80, they will always have to add it to the address.  The only way to get around that is for them to create a shortcut on their desktop or browser that includes all the necessary info.  The shortcut can have any name they want.
0
 

Author Comment

by:edreamers
ID: 39205598
I am new to Linux so kindly tell me step by step to how to add DNS name in CentOS
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39205628
You need to talk to your network administrator, they should be the person who sets up DNS for your network.
0
Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

 
LVL 21

Expert Comment

by:Mazdajai
ID: 39205643
You need to use DNS if you want to use hostname instead of ip address. If NetworkManager  is running, you will need to add the DNS server in your ifcfg files; else you need to add them to /etc/resolv.conf

Can you post your output of /etc/sysconfig/network-scripts/ifcfg-eth0?
0
 
LVL 23

Expert Comment

by:savone
ID: 39205782
You can add the server name to the client machines hosts file.  You will still need to use the port number at the end though.

As root do this:

echo "172.164.1.185 accountapp" >> /etc/hosts

Then you can open a broswer and point it to:

http://accountapp:8080
0
 
LVL 78

Accepted Solution

by:
arnold earned 500 total points
ID: 39206391
Yum install named

You then need to configure named.conf with a local zone mydomain.local
Within which you would define
Server IN A IP_address

You would then need to configure your DHCP server to USB the servers IP as DNS server.

The Internet restriction can be achieved by configuring your firewall to deny any outgoing request unless it is comming from the server's IP.
You would the install and configure a proxy
Yum install squid

The example provided with adding your server IP name into a hosts file is the quickest and simplest. Depending on the systems in your LAN, for windows based systems the hosts file is in c:\windows\system32\drivers\etc\hosts.
0
 

Author Comment

by:edreamers
ID: 39248671
let me check.
0
 

Author Comment

by:edreamers
ID: 39324312
I tried many times but not able to succeed. So I am migrating to windows Platform. Thanx everyone for their support.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Outsource Your Fax Infrastructure to the Cloud (And come out looking like an IT Hero!) Relative to the many demands on today’s IT teams, spending capital, time and resources to maintain physical fax servers and infrastructure is not a high priority.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

724 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