You are not logged in.

#1 2011-07-05 19:24:05

KrisZX
Member
Registered: 2011-07-05
Posts: 9

DNS change failure

Earlier today I changed my DNS to OpenDNS via resolv.conf in order til visit piratebay.org.

This worked out fine for some hours until I took out the Ethernet and put it back in, now it's back to the same DNS as before?

Anyone know what might be causing this?

Offline

#2 2011-07-05 19:32:43

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: DNS change failure

KrisZX wrote:

Earlier today I changed my DNS to OpenDNS via resolv.conf in order til visit piratebay.org.

This worked out fine for some hours until I took out the Ethernet and put it back in, now it's back to the same DNS as before?

Anyone know what might be causing this?

What network manager you are using? Please provide us with more information about your setup so someone can help you.

Also, you may want to search around for an answer regarding this as the wiki is superb well documented.

I assume you are using network manager.

https://wiki.archlinux.org/index.php/Ne … esolv.conf


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#3 2011-07-05 20:31:57

KrisZX
Member
Registered: 2011-07-05
Posts: 9

Re: DNS change failure

I'm not sure about what network manager I use. I use a wired connection and my WM is dwm.

Offline

#4 2011-07-05 20:36:22

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: DNS change failure

KrisZX wrote:

I'm not sure about what network manager I use. I use a wired connection and my WM is dwm.


Anyhow, you can setup your resolv.conf the way you want and after that you can write protect it by using the chattr command so that the dhcp server or whateva won't be able to re-write it.

Hope that helps.


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#5 2011-07-05 20:57:54

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: DNS change failure


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#6 2011-07-06 00:14:14

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: DNS change failure

KrisZX wrote:

Earlier today I changed my DNS to OpenDNS via resolv.conf in order til visit piratebay.org.

I don't understand why you should have to change DNS to visit TPB?

KrisZX wrote:

Anyone know what might be causing this?

I'm guessing you're using DHCP. You will be told what DNS servers to use via DHCP, so you need to tell your DHCP client to ignore those details and use the DNS servers you provide. This will depend on how you manage your network (NM, rc.conf etc) and which DHCP client you use.

Offline

#7 2011-07-06 12:20:58

fakeroot
Member
Registered: 2010-09-08
Posts: 2

Re: DNS change failure

You might also use static ip translation in /etc/hosts. Default /etc/host.conf file orders to use /etc/hosts file first, and then to use DNS from resolv.conf.

Offline

#8 2011-07-06 18:01:53

KrisZX
Member
Registered: 2011-07-05
Posts: 9

Re: DNS change failure

@fukawi2
TPB is banned by my ISP in Denmark.

Thanks everybody I'm going to try to write protect the file smile

UPDATE: write protecting and making a head file didn't work either, it seems now my network doesn't even read these files because now I can't access TPB even for this session.

Last edited by KrisZX (2011-07-06 18:13:47)

Offline

#9 2011-07-06 18:43:13

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: DNS change failure

KrisZX wrote:

UPDATE: write protecting and making a head file didn't work either, it seems now my network doesn't even read these files because now I can't access TPB even for this session.

I just tried to write protect my resolv.conf and I`m using gnome3 with network manager and am getting an IP via dhcp and have setup opendns nameservers and it works like a charm without those being overwritten by my local 192.168.2.1 nameserver which is getting nameserver from my ISP.


That's strange. What are the permissions of your resolv.conf / head files? Are you unable to ping any other domain/hostname ?


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#10 2011-07-06 19:07:24

fakeroot
Member
Registered: 2010-09-08
Posts: 2

Re: DNS change failure

You might also try to add -C resolv.conf to /etc/conf.d/dhcpd.

DHCPCD_ARGS="-q -C resolv.conf"

Offline

#11 2011-07-07 01:37:37

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: DNS change failure

KrisZX wrote:

@fukawi2
TPB is banned by my ISP in Denmark.

yikes yikes yikes yikes yikes yikes yikes
That is all.

Offline

Board footer

Powered by FluxBB