Solved

Access Computers by Name not by IP

Posted on 2013-05-29
8
307 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 82

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 82

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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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 76

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
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.:
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.

760 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

19 Experts available now in Live!

Get 1:1 Help Now