Solved

DNS issue on Red Hat Server

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
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.:

747 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

9 Experts available now in Live!

Get 1:1 Help Now