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 Thu 23 Oct 2014, 04:56
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 [5 Posts]  
Author Message
betamax

Joined: 24 Mar 2014
Posts: 5

PostPosted: 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
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
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: 552
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 from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

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.0670s ][ Queries: 11 (0.0161s) ][ GZIP on ]