Solved

DNS issue on Red Hat Server

Posted on 2013-12-20
3
539 Views
Last Modified: 2013-12-20
Hi , i have a Server A ( VM machine ) with ip 1.11.1  ( for the shake of the example)
I also have the old Server A ( physical machine ) with IP 2.2.2.2

DNS record point to 2.2.2.2 ( old server)

If i ping from Server A  ( #ping Server A ) it will resolve to 2.2.2.2
I cant access the DNA records and change it.

My DBA asked me to ( at least for now) change the host record on the VM server to point to its self ( 1.1.1.1 )
Is there anything i can do on the VM machine to be able to ping it self correctly ?

I understand that when i ping from any other machine it will resolve to 2.2.2.2

Any input would be appreciated.
0
Comment
Question by:c_hockland
3 Comments
 
LVL 34

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 39732216
add a line in /etc/hosts that has the local IP address for itself, basically:

1.1.1.1 ServerA.domain.com ServerA

that way it will not try to resolve with DNS on the 2.2.2.2 address
0
 

Author Closing Comment

by:c_hockland
ID: 39732223
worked like a charm. Thank you Sir.
0
 
LVL 13

Expert Comment

by:Michael Machie
ID: 39732475
Am I to assume that both Servers have the same name?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

837 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