Solved

DNS issue on Red Hat Server

Posted on 2013-12-20
3
540 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux Hosting 16 73
How do I setup Wordpress to use Master / Slave MySQL database setup? 4 87
plsql job on oracle 18 72
How to swap or extend CentOS partition 11 26
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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