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 Mon 21 Apr 2014, 04:25
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
alternative dns servers
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Tue 30 Aug 2005, 05:24    Post subject:  alternative dns servers  

alternative dns servers

sometimes your isp's dns servers stop working

this sets up your network to use public dns servers instead
your regular server setup should be restored when you reboot
altdns.pup
Description  altDNS
pup

 Download 
Filename  altdns.pup 
Filesize  1.97 KB 
Downloaded  964 Time(s) 
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11050
Location: The Peoples Republic of California

PostPosted: Thu 01 Sep 2005, 17:14    Post subject:  

First, I want to thank you for all the great work dotpups you contribute!

I don't use DHCP and resolv.conf doesn't get reconfigured on reboot, so what I did was added a couple servers to the list.

According to the way I understand it, the software sends requests virtually simultaneously to all the servers on the list. The first server to respond is the one the software will accept as true and then start the next step in the connection process.

I don't know off hand what the limit of the amount of servers on the list is in Linux. In windows days, I'd run from three to ten and the log showed the ones that returned. It could be any one of the servers on the list, and of course some servers are routinely faster than others. After viewing the log and determining the slowest servers, I'd drop them from the list.


What I'd really like is a way of logging the outbound names and IP addresses my computer makes, so I can put the frequently visited sites ones in the hosts and more importantly put the unwanted ones in the block list.

Question: Do you know how to log outbound names and IP addresses with Linux?
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 02 Sep 2005, 08:11    Post subject:  

all this does is writes a new /etc/resolv.conf file

/etc/resolv.conf.sv should be a backup

on my machine, a new resolv.conf is setup every time Puppy boots
i found older backups of resolv.conf stopped working, so i just backed up the latest one to /tmp

if you have an unusual resolv.conf file, it is possible that this program will write over it ... but, it should be possible to make sure the original resolv.conf is backed up somewhere

i think the number of nameservers resolv.conf can have is a compile option, and the default is 3 ... so if you put more than 3 nameservers in resolv.conf, only 3 of them will be used

it will always try them in order, unless you put options rotate in resolv.conf

i may be wrong, but i think what happens is it asks dns server #1 for the ip address of a url, and if it times out (you can set the timeout as an option) then it tries server #2, then if it times out it asks server #3

some people ping the dns servers, and choose the ones with the fastest ping times ... but a server with a fast ping time might not be the fastest server

putting frequently accesssed urls in hosts (like google, eg.) is a good idea ... not only is it slightly faster, but sometimes there are problems with dns servers and the websites sometimes seem to "go offline" ... this sometimes happened to distrowatch.com

i don't know how to log outbound names/address, but there's probably a way ... i guess you could add a rule to iptables that would log all outbound requests
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 02 Sep 2005, 09:37    Post subject:  

by the way, various proxies usually log all transactions

for example, if you run Privoxy, every file ( html, gif, png, jpg, etc etc) that is requested is logged ... the wrapper script i wrote that starts Privoxy erases the log file every time Privoxy starts, because the log files can get quite big if you don't, but that line can be commented out
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0457s ][ Queries: 12 (0.0071s) ][ GZIP on ]