Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Dec 2014, 10:41
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
How to change FatDog64 dns settings?
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
betamax

Joined: 24 Mar 2014
Posts: 5

PostPosted: Mon 24 Mar 2014, 21:32    Post_subject:  How to change FatDog64 dns settings?
Sub_title: 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
View user's profile Send_private_message 
jamesbond

Joined: 26 Feb 2007
Posts: 2232
Location: The Blue Marble

PostPosted: 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, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send_private_message 
ETP


Joined: 19 Oct 2010
Posts: 583
Location: UK

PostPosted: 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
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send_private_message 
betamax

Joined: 24 Mar 2014
Posts: 5

PostPosted: 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
View user's profile Send_private_message 
betamax

Joined: 24 Mar 2014
Posts: 5

PostPosted: Sat 29 Mar 2014, 08:39    Post_subject: Nameservers  

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!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0540s ][ Queries: 12 (0.0035s) ][ GZIP on ]