Solved

Access Computers by Name not by IP

Posted on 2013-05-29
8
349 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Router Management, Subnets and VLANs e.g. RV0xx 7 76
plsql job on oracle 18 79
block mails from a particular country in postfix 7 52
CentOS 7 wireless 2 35
Is your computer hacked? learn how to detect and delete malware in your PC
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

730 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