dns setting is overwritten in ppp
Hi ,
I have ubuntu 12.04 .
I have install ddclient , my ddclient.config is
daemon=300 # check every 30 seconds
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient.pid # record PID in file.
ssl=yes # use ssl-support. Works with
##
## OpenDNS.com account-configuration
##
use=web
web=myip.dnsomatic.com
ssl=yes
server=updates.opendns.com
protocol=dyndns2
login = ***********
password= ***********
mydefault
I have edit the /etc/dhcp/dhclient.conf
& un comment this line
prepend domain-name-servers 208.67.222.222, 208.67.220.220;
my etc/conf is :
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 127.0.0.1
nameserver 208.67.222.222
nameserver 208.67.220.220
I have write a resolv.conf.tail in this location /etc/resolvconf/resolvconf.d which is :
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 208.67.222.222
nameserver 208.67.220.220
my /etc/NetworkManager/NetworkManager.conf is:
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
no-auto-default=B8:88:E3:11:27:30,
[ifupdown]
managed=false
I have search the web & use soe of this commands
set pppoe dhcp-nochange
save ## the output require to install a package , after installing it the output require more parameters
unset dhcp client update-dhcpserver # the output is (the name 'update-dhcpserver' is not defined)
set dhcp client autoconfig
the dns of my ppp connnection (zte hawai ) overwrites my setting & I can't use open dns ...
-
ddclient is totally irrelevant with your problem. This is the update client only and has nothing to do with your DNS settings.
Regarding your configuration of the OpenDNS resolver addresses, did you strictly follow https://store.opendns.com/setup/operatingsystem/ubuntu ?
You should get rid of "nameserver 127.0.0.1" in your resolv.conf using the related maintenance tool. And the OpenDNS resolver addresses should not be listed more than once.
-
I follow the instructions , it work for the current session only ,
I apply the note(number 8 ) to make the changes globally ...
the commands is :
sudo cp /etc/resolv.conf /etc/resolv.conf.auto
sudo find /etc -name dhclient.conf
gksudo gedit /etc/dhcp3/dhclient.conf
# add the following line to the document before the 'require subnet-mask' commandsupersede domain-name-servers 208.67.222.222,208.67.220.220;
# save and exit
$ sudo ifdown eth0 && sudo ifup eth0 # the output is (ifdown: interface eth0 not configured
) -
dr@dr-Satellite-C660:~$ ifconfig
eth0 Link encap:Ethernet HWaddr b8:88:e3:11:27:30
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:440 (440.0 B) TX bytes:440 (440.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.104.95.92 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:2470 errors:0 dropped:0 overruns:0 frame:0
TX packets:2662 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1974993 (1.9 MB) TX bytes:356761 (356.7 KB)
dr@dr-Satellite-C660:~$ sudo ifdown eth0
ifdown: interface eth0 not configured
dr@dr-Satellite-C660:~$ sudo ifdown lo
dr@dr-Satellite-C660:~$ sudo ifdown ppp0
ifdown: interface ppp0 not configured
dr@dr-Satellite-C660:~$ sudo ifup lo -
I had google the error "interface eth0 not configured"
& fix it by
root@dr-Satellite-C660:/home/dr/ddclient# sudo ifconfig eth0 down
root@dr-Satellite-C660:/home/dr/ddclient# sudo ifconfig ppp0 down
root@dr-Satellite-C660:/home/dr/ddclient# sudo ifconfig lo down
root@dr-Satellite-C660:/home/dr/ddclient# sudo ifconfig lo up
root@dr-Satellite-C660:/home/dr/ddclient# sudo ifconfig eth0 up
root@dr-Satellite-C660:/home/dr/ddclient# sudo ifconfig ppp0 upis it valid ...
-
ok , thanks , the settings are fixed now especially after adding # to the line : dns = dnsmasq in the file /etc/NetworkManager/NetworkManager.conf ...
another question please ,
I had this massage :root@dr-Satellite-C660:/home/dr# /etc/init.d/ddclient start
Starting ddclient: WARNING: skipping host: : 'login=' is an invalid login.
WARNING: skipping host: web=myip.dnsomatic.com: 'login=' is an invalid login.hint : in my conf. file , what of the following is valid :
login = tabebqenalogin = tabebqena@gmail.com
login = "tabebqena"
login = "tabebqena@gmail.com"
almost I used all of them with the same result .
Note : when I login from the browser using the username (tabebqena), the login fail . successful login ocurrs only when I use the mail (tabebqena@gmail.com)
-
Only grandfathered accounts have a username as login credentials (like mine). Newer accounts use the e-mail address. Not sure if spaces around the equal sign are valid, better don't use spaces. That said, try with:
login=tabebqena@gmail.com
Please sign in to leave a comment.
Comments
11 comments