You are not logged in.

#1 2010-10-12 06:07:18

innn
Member
Registered: 2010-10-12
Posts: 96

help ddclient pppoe [SOLVED]

my problem is i have pppoe connection , in rc.conf responsible for connection only the adsl daemon, i did  everything on the opendns wiki page, have set the servers in resolv.conf, installed ddclient, configured it, but noticed resolv.conf does not keep the opendns nameservers. the answers found reported something to do with preventing dhcpd from overwriting resolv.conf and ways to prevent that but it seems i am not running dhcpd only adsl as stated though in the network section from rc.conf says: eth0="dhcp" INTERFACES=(eth0). please help me with some way to prevent resolv.conf being overwritten and have ddclient updated.

thank you

Last edited by innn (2010-10-17 05:36:24)

Offline

#2 2010-10-12 11:20:23

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: help ddclient pppoe [SOLVED]

Moved to Newbie Corner as requested by user.

Offline

#3 2010-10-12 12:32:44

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: help ddclient pppoe [SOLVED]

Adding the following to /etc/dhcpcd.conf should fix it:

prepend domain-name-servers 208.67.222.222,208.67.220.220;

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#4 2010-10-12 14:16:31

innn
Member
Registered: 2010-10-12
Posts: 96

Re: help ddclient pppoe [SOLVED]

hello, i did what you've told me to do and then restarted /etc/rc.d/adsl and /etc/rc.d/ddclient but still no opendns. the /etc/resolv.conf file is changed back as well. is there any need to alter some config in /etc/ppp ?

Last edited by innn (2010-10-12 14:18:04)

Offline

#5 2010-10-12 14:57:03

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: help ddclient pppoe [SOLVED]

Sorry, I obviously didn't read your post carefully.
I do not use pppoe but editing /etc/ppp/pppoe.conf and changing the following may fix your problem.
NOTE: Backup your /etc/ppp/pppoe.conf file before doing this as, if I am wrong, this may screw up your connection.

DNSTYPE=SERVER -> DNSTYPE=SPECIFY
DNS1=208.67.222.222
DNS2=208.67.220.220

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#6 2010-10-12 17:30:35

innn
Member
Registered: 2010-10-12
Posts: 96

Re: help ddclient pppoe [SOLVED]

i changed /etc/ppp/pppoe.conf to specify the two Opendns servers and what it did was that i found a new file next to /etc/resolv.conf named /etc/resolv.conf.backup.ppp0 which contains opendns servers smile and the content in /etc/resolv.conf turned back as always. i guess i have to try also this method: chattr +i /etc/resolv.conf. is it safe? noob question in the newbie corner

Offline

#7 2010-10-12 20:44:37

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: help ddclient pppoe [SOLVED]

Ignore my previous comments.
Add the following to '/etc/resolv.conf.head':

nameserver 208.67.222.222
nameserver 208.67.220.220

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#8 2010-10-13 04:27:09

innn
Member
Registered: 2010-10-12
Posts: 96

Re: help ddclient pppoe [SOLVED]

not working also with '/etc/resolv.conf.head'. I did 'chattr +i /etc/resolv.conf'. not working either.


i've noticed in  '/etc/ddclient/samples/'   those files: 'sample-etc_dhcpc_dhcpcd-eth0.exe',
'sample-etc_cron.d_ddclient' , 'sample-etc_ppp_ip-up.local'. Since i have pppoe connection figured the last file would be of interest. Its content is : 

#!/bin/sh
######################################################################
## $Id: sample-etc_ppp_ip-up.local 98 2008-06-13 20:26:56Z wimpunk $
######################################################################
##
## On my host, pppd invokes this script with args:
## /etc/ppp/ip-up.local ppp0 /dev/pts/1 115200 192.168.2.1 192.168.2.3
##
## From the manual page for my pppd, these aguments are:
##   scriptname interface-name tty-device speed local-IP-address remote-IP-address ipparam
##
## Some people have reported that their pppd returns their
## local-IP-address as $3.  If that's also the case for you,
## you may need to change the $4 below to $3.  This may not
## be necessary if your pppd also passes the local-ip-address
## in the environment as either PPP_LOCAL or IPLOCAL.
##
######################################################################
PATH=/usr/sbin:${PATH}
IP=
IP=${IP:-$PPP_LOCAL}
IP=${IP:-$IPLOCAL}
IP=${IP:-$4}

## update the DNS server unless the IP address is a private address
## that may be used as an internal LAN address (or PPtP tunnel).

logger -t ddclient $0 $*
case "$IP" in
10.*)           ;;
172.1[6-9].* | 172.2[0-9].* | 172.3[0-1].*)     ;;
192.168.*)      ;;
"")             logger -t ddclient No local IP given so cannot update
                ;;
*)              (
                        sleep 5
                        ddclient -daemon=0 -syslog -use=if -if=$1 >/dev/null 2>&1
                ) &
                ;;
esac

but i know not what to do with it.

Last edited by innn (2010-10-13 04:50:44)

Offline

#9 2010-10-13 05:17:10

innn
Member
Registered: 2010-10-12
Posts: 96

Re: help ddclient pppoe [SOLVED]

i succeeded.
what i did was to read carefully the README where one section said:

USING DDCLIENT WITH ppp

If you are using a ppp connection, you can easily update your DynDNS
entry with each connection, with:
  ## configure pppd to update DynDNS with each connection
  cp sample-etc_ppp_ip-up.local /etc/ppp/ip-up.local

Alternatively, you may just configure ddclient to operate as a daemon
and monitor your ppp interface.

so i just copied that sample file and it simply worked. i guess reading too much wiki without reading the one README is plain wrong.
Nonetheless,i have too thank you very much Stebalien for your support.

Offline

Board footer

Powered by FluxBB