You are not logged in.

#1 2016-10-12 03:46:52

korehoto
Member
Registered: 2016-10-12
Posts: 11

How to change my default DNS to those of OpenDNS servers?

I want to use OpenDNS servers in Arch Linux. My /etc/resolv.conf.head

nameserver 208.67.222.222 
nameserver 208.67.220.220

However, a local DNS server is still being used


$  dig archlinux.org       

; <<>> DiG 9.11.0 <<>> archlinux.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4099
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;archlinux.org.                 IN      A

;; ANSWER SECTION:
archlinux.org.          3600    IN      A       66.211.214.131

;; Query time: 322 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)

Offline

#2 2016-10-12 04:18:24

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: How to change my default DNS to those of OpenDNS servers?

Is the content of /etc/resolv.conf.head inserted into /etc/resolv.conf?
Depending on the tool, resolvconf may be used (by netctl). https://wiki.archlinux.org/index.php/Re … openresolv


This silver ladybug at line 28...

Offline

#3 2016-10-12 09:57:53

korehoto
Member
Registered: 2016-10-12
Posts: 11

Re: How to change my default DNS to those of OpenDNS servers?

>>Is the content of /etc/resolv.conf.head inserted into /etc/resolv.conf?
by whom?

>>Depending on the tool,
what tool?

Offline

#4 2016-10-12 11:12:20

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: How to change my default DNS to those of OpenDNS servers?

korehoto wrote:

>>Is the content of /etc/resolv.conf.head inserted into /etc/resolv.conf?
by whom?

I was asking you to check /etc/resolv.conf, because your nameservers must be added to this file to take effect.

korehoto wrote:

>>Depending on the tool,
what tool?

As mentioned in my post, as well as the wiki page I linked, netctl, for one.


This silver ladybug at line 28...

Offline

#5 2016-10-12 11:41:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: How to change my default DNS to those of OpenDNS servers?

/etc/resolv.conf.head is used by dhcpcd , but other network managing tools use different methods for changing resolv.conf .

Which tool are you using to manage your network : dhcpcd , dhclient, netctl, networkmanager, systemd-networkd  (just mentioning a few, there are more) ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2016-10-12 20:54:40

escondida
Package Maintainer (PM)
Registered: 2008-04-03
Posts: 157

Re: How to change my default DNS to those of OpenDNS servers?

Arch itself doesn't touch your resolv.conf configuration, so unless you choose to use a tool that overwrites it (such as systemd-resolved or dhcpcd), you just edit that file yourself.

Offline

#7 2016-10-13 04:13:37

korehoto
Member
Registered: 2016-10-12
Posts: 11

Re: How to change my default DNS to those of OpenDNS servers?

>>Which tool are you using to manage your network : dhcpcd , dhclient, netctl, networkmanager, systemd-networkd  (just mentioning a few, there are more) ?

dhcpcd and networkmanager

Offline

#8 2016-10-13 04:14:23

korehoto
Member
Registered: 2016-10-12
Posts: 11

Re: How to change my default DNS to those of OpenDNS servers?

>>Arch itself doesn't touch your resolv.conf configuration, so unless you choose to use a tool that overwrites it (such as systemd-resolved or dhcpcd), you just edit that file yourself.

what tool is it?

Offline

#9 2016-10-13 04:27:17

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: How to change my default DNS to those of OpenDNS servers?

Are you fucking kidding me. I ask again, what does your /etc/resolv.conf look like?


This silver ladybug at line 28...

Offline

#10 2016-10-13 04:55:05

escondida
Package Maintainer (PM)
Registered: 2008-04-03
Posts: 157

Re: How to change my default DNS to those of OpenDNS servers?

korehoto wrote:

>>Arch itself doesn't touch your resolv.conf configuration, so unless you choose to use a tool that overwrites it (such as systemd-resolved or dhcpcd), you just edit that file yourself.

what tool is it?

To edit the file? Your text editor of choice.

>>Which tool are you using to manage your network : dhcpcd , dhclient, netctl, networkmanager, systemd-networkd  (just mentioning a few, there are more) ?

dhcpcd and networkmanager

You shouldn't be using those together. Pick one core networking tool and stick with it. If you're using networkmanager, it handles dhcp itself. To set networkmanager up, follow the directions here. If you're using networkmanager, just edit resolv.conf yourself.

Offline

#11 2016-10-18 16:11:47

korehoto
Member
Registered: 2016-10-12
Posts: 11

Re: How to change my default DNS to those of OpenDNS servers?

lolilolicon wrote:

Are you fucking kidding me.

Yes.

Offline

#12 2016-10-18 16:13:19

korehoto
Member
Registered: 2016-10-12
Posts: 11

Re: How to change my default DNS to those of OpenDNS servers?

 
cat /etc/resolv.conf
# Generated by resolvconf
nameserver 208.67.222.222 
nameserver 208.67.220.220
search WirelessAP
nameserver 192.168.1.1
nameserver fe80::1%wlp4s0

Offline

#13 2016-10-18 16:25:00

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: How to change my default DNS to those of OpenDNS servers?

so it's working?


This silver ladybug at line 28...

Offline

#14 2016-10-19 16:04:15

korehoto
Member
Registered: 2016-10-12
Posts: 11

Re: How to change my default DNS to those of OpenDNS servers?

Yes. But I also remember that a couple days ago it didn't work for some website and it used a local dns server, although it did work for archlinux.org. How could that be?

Offline

#15 2016-10-19 18:01:40

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: How to change my default DNS to those of OpenDNS servers?

Well you didn't provide enough info for us to start with. The opportunity is gone. Be happy with what you have. Have a good life. Let it be.


This silver ladybug at line 28...

Offline

Board footer

Powered by FluxBB