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!
How to change FatDog64 dns settings?
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
with
so that it will always use opendns.
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"
Code: Select all
printf "%s\n" "nameserver 208.67.222.222" >> "$cf"
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]
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
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]
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]
DNS Settings
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.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 60withCode: Select all
printf %s "$domain$search$servers" >> "$cf"
so that it will always use opendns.Code: Select all
printf "%s\n" "nameserver 208.67.222.222" >> "$cf"
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
Hi ETP,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
Thanks for the info! Iooks similar to Namebench. I will check it out.. Cheers!