How to edit dns entries / resolv.conf file ?

Issues related to configuring your network
Post Reply
jxl1145
Posts: 36
Joined: 2014/09/14 01:14:32

How to edit dns entries / resolv.conf file ?

Post by jxl1145 » 2014/10/21 21:26:56

Hello,

I've tried looking for answer online but cannot find the right info.

I'm assuming the systemctl command usage somehow?

I got hacked some way.

There is an entry in the resolv.conf test.com and it redirects my browser to the test.com website.

Thank You for your help.

Lowry

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to edit dns entries / resolv.conf file ?

Post by TrevorH » 2014/10/21 21:34:33

Could you restate your problem please? What you posted is confusing and not very clear.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jxl1145
Posts: 36
Joined: 2014/09/14 01:14:32

Re: How to edit dns entries / resolv.conf file ?

Post by jxl1145 » 2014/10/22 00:44:44

Hello,

Sorry for the rushed post.

I have centos 7 loaded on my physical machine.

I was looking for info on the internet and clicked on a link I thought would help me. It seemed like a legit website.

After doing this my system was slow, bogged down.
After a reboot I noticed when I would go to my firefox home page and do a search it would go to some site called test.com.
I started looking around at files and noticed in resolv.conf that there was an entry for test.com

I edited and removed the entry, but after rebooting the entry is still there.

I'm not sure how to successfully get the entry out of my system?

Thank You,

Lowry

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: How to edit dns entries / resolv.conf file ?

Post by gerald_clark » 2014/10/22 01:11:45

Show us.

I suspect you have your domain set to test.com.
You don't own that domain.

jxl1145
Posts: 36
Joined: 2014/09/14 01:14:32

Re: How to edit dns entries / resolv.conf file ?

Post by jxl1145 » 2014/10/23 20:47:34

Gerald,

correct. I do not own test.com and I had my machine bla.test.com.
I changed the hostnames to not have a .domain.com

I thought this is what I needed to do for a RHCSA study lab.
Am I correct in assuming he only meant to do that on my specific kvm VM's I am using?

Lowry

Post Reply