Page 1 of 1

How to change FatDog64 dns settings?

Posted: Tue 25 Mar 2014, 01:32
by betamax
Good day!

I would like to use open-dns or open-nic instead of using my isp's nameservers.

I can change the nameserver in the file resolve.conf and that works during the session but after reboot, everything defaults back. I tried to follow instructions on http://www.puppylinuxfaq.org/freeware/3 ... m-dns.html but that also defaults back.

Any help would be greatly appreciated. Cheers!

Posted: Wed 26 Mar 2014, 08:02
by jamesbond
I usually set this up on my router. But alternatively, you can do this:

1) create a file /etc/resolve.conf.head which contains "nameserver 208.67.222.222"; next time you reboot (or re-run dhcpcd) it will insert the content as that file into /etc/resolv.conf in front of anything else; thus the opendns nameserver will be listed first (and will always be used unless it is inaccessible).

2) if that doesn't sound good enough to you, look at /lib/dhcpcd/dhcpcd-hooks/20-resolv.conf --- this is the script that sets /etc/resolv.conf. You can modify it as you see fit (e.g comment out the line 60

Code: Select all

printf %s "$domain$search$servers" >> "$cf"
with

Code: Select all

printf "%s\n" "nameserver 208.67.222.222" >> "$cf"
so that it will always use opendns.

Posted: Thu 27 Mar 2014, 15:12
by ETP
hI betamax,

You may want to check out this post as opendns may or may not be the best choice for your location. (In my case they were not!)
http://murga-linux.com/puppy/viewtopic.php?t=81064

DNS Settings

Posted: Sat 29 Mar 2014, 12:30
by betamax
jamesbond wrote:I usually set this up on my router. But alternatively, you can do this:

1) create a file /etc/resolve.conf.head which contains "nameserver 208.67.222.222"; next time you reboot (or re-run dhcpcd) it will insert the content as that file into /etc/resolv.conf in front of anything else; thus the opendns nameserver will be listed first (and will always be used unless it is inaccessible).

2) if that doesn't sound good enough to you, look at /lib/dhcpcd/dhcpcd-hooks/20-resolv.conf --- this is the script that sets /etc/resolv.conf. You can modify it as you see fit (e.g comment out the line 60

Code: Select all

printf %s "$domain$search$servers" >> "$cf"
with

Code: Select all

printf "%s\n" "nameserver 208.67.222.222" >> "$cf"
so that it will always use opendns.
Solved - And very much appreciated! Option 2 worked just fine. I also changed the DNS in my router but this is a laptop so want to make sure it works when I'm away from my network.

Just want to say cheers to you James. I been running crunchbang on my desktop for over a year now and fatdog64 on my laptop for couple of weeks. #! is very stable but this is the fastest OS I have ever used, truly amazing. And you guys here have been great! Thanks again!!

Nameservers

Posted: Sat 29 Mar 2014, 12:39
by betamax
ETP wrote:hI betamax,

You may want to check out this post as opendns may or may not be the best choice for your location. (In my case they were not!)
http://murga-linux.com/puppy/viewtopic.php?t=81064
Hi ETP,

Thanks for the info! Iooks similar to Namebench. I will check it out.. Cheers!