From: <dha...@us...> - 2007-05-23 05:37:23
|
Revision: 1068 http://svn.sourceforge.net/astlinux/?rev=1068&view=rev Author: dhartman Date: 2007-05-22 22:37:23 -0700 (Tue, 22 May 2007) Log Message: ----------- initial opendns support Modified Paths: -------------- trunk/package/dnsmasq/dnsmasq.init trunk/target/generic/target_skeleton/stat/etc/rc.conf Modified: trunk/package/dnsmasq/dnsmasq.init =================================================================== --- trunk/package/dnsmasq/dnsmasq.init 2007-05-18 20:26:45 UTC (rev 1067) +++ trunk/package/dnsmasq/dnsmasq.init 2007-05-23 05:37:23 UTC (rev 1068) @@ -58,6 +58,13 @@ dhcp-leasefile=/var/db/dnsmasq.leases cache-size=150" > /tmp/etc/dnsmasq.conf +if [ "$OPENDNS" -a "$OPENDNS" = "yes" ] +then +echo "nameserver 208.67.222.222 +nameserver 208.67.220.220" > /tmp/etc/resolv.opendns.conf +echo "resolv-file=/tmp/etc/resolv.opendns.conf" >> /tmp/etc/dnsmasq.conf +fi + if [ "$NFSDROOTPATH" ] then echo "dhcp-option=lan,17,$NFSDROOTPATH" >> /tmp/etc/dnsmasq.conf Modified: trunk/target/generic/target_skeleton/stat/etc/rc.conf =================================================================== --- trunk/target/generic/target_skeleton/stat/etc/rc.conf 2007-05-18 20:26:45 UTC (rev 1067) +++ trunk/target/generic/target_skeleton/stat/etc/rc.conf 2007-05-23 05:37:23 UTC (rev 1068) @@ -141,6 +141,10 @@ ##for DNS resolution on THIS machine. #LOCALDNS=yes +##Use OpenDNS servers +##This setting overrides the dns servers used by dnsmasq +#OPENDNS=yes + ##If you do not define the INTIF, I will not try to start one. ##If you do not define the INTIF, I will also not start the following services: ##dnsmasq iptables astshape (PBX only mode) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |