The time now is Sun 15 Dec 2019, 02:39
All times are UTC - 4 |
Author |
Message |
betamax
Joined: 24 Mar 2014 Posts: 5
|
Posted: Mon 24 Mar 2014, 21:32 Post subject:
How to change FatDog64 dns settings? Subject description: Custom name servers |
|
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/34-files-files/110-custom-dns.html but that also defaults back.
Any help would be greatly appreciated. Cheers!
|
Back to top
|
|
 |
jamesbond
Joined: 26 Feb 2007 Posts: 3388 Location: The Blue Marble
|
Posted: Wed 26 Mar 2014, 04:02 Post subject:
|
|
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: | printf %s "$domain$search$servers" >> "$cf" |
with Code: | printf "%s\n" "nameserver 208.67.222.222" >> "$cf" |
so that it will always use opendns.
_________________ Fatdog64 forum links: Latest version | Contributed packages | ISO builder
|
Back to top
|
|
 |
ETP

Joined: 19 Oct 2010 Posts: 1173 Location: UK
|
Posted: Thu 27 Mar 2014, 11:12 Post subject:
|
|
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
Kennels
|
Back to top
|
|
 |
betamax
Joined: 24 Mar 2014 Posts: 5
|
Posted: Sat 29 Mar 2014, 08:30 Post subject:
DNS Settings |
|
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: | printf %s "$domain$search$servers" >> "$cf" |
with Code: | 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!!
|
Back to top
|
|
 |
betamax
Joined: 24 Mar 2014 Posts: 5
|
Posted: Sat 29 Mar 2014, 08:39 Post subject:
Nameservers |
|
Hi ETP,
Thanks for the info! Iooks similar to Namebench. I will check it out.. Cheers!
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
[ Time: 0.0385s ][ Queries: 11 (0.0084s) ][ GZIP on ] |