How to change FatDog64 dns settings?

For talk and support relating specifically to Puppy derivatives
Post Reply
Message
Author
betamax
Posts: 5
Joined: Mon 24 Mar 2014, 07:27

How to change FatDog64 dns settings?

#1 Post 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!

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#2 Post 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.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

#3 Post 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
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

betamax
Posts: 5
Joined: Mon 24 Mar 2014, 07:27

DNS Settings

#4 Post 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!!

betamax
Posts: 5
Joined: Mon 24 Mar 2014, 07:27

Nameservers

#5 Post 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!

Post Reply