Solved

Access Computers by Name not by IP

Posted on 2013-05-29
8
322 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
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
 
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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 77

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

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
configuring snmp v2 or v3 on Cisco switches 2 49
Remove a folder in Linux 9 91
High Available Storage based on linux 6 69
Backup & Restore 3 47
So, you're experiencing issues on your network and you've decided that you need to perform some tests to determine whether your cabling is good.  You're likely thinking that you may need to spend money which you probably don't have on hiring/purchas…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now