Discussion:
Multi: ISP /device / DNSs ?
(too old to reply)
n***@gmail.com
2015-07-27 20:46:07 UTC
Permalink
My 3Gdongle connects OK, via the pppdScript which I morphed from
dial-up days: .......
pppd lcp-echo-interval 300 lcp-echo-failure 44 connect '
chat -v "" ATZ OK\
AT+CGDCONT=1 OK \
ATM2DT*99# CONNECT "" TIMEOUT 99 ' \
/dev/ttyACM0 460800 debug crtscts defaultroute usepeerdns
---
But for a FixedWirelessTerminal and a different ISP, I can ping, but
get <host not found>, using ....
pppd lcp-echo-interval 300 lcp-echo-failure 44 connect '
chat -v "" ATZ OK ATX OK ATM2DT#777 CONNECT "" TIMEOUT 99 ' \
/dev/ttyUSB0 38400 debug crtscts defaultroute nopersist\
: name "***" password "***"
---
/etc/resolv.conf is:
# Generated by dhcpcd for interface eth0
nameserver 196.207.32.83
---
but I'm not sure that that's used or even valid.
And I need the 2 systems to have their own <pppd script>.

What are some <openDNS> IP's,
and how do I 'script' the pppd to use my chosen DNS?

==TIA.
R.L. Horn
2015-07-28 09:21:38 UTC
Permalink
Post by n***@gmail.com
# Generated by dhcpcd for interface eth0
nameserver 196.207.32.83
It looks like Vodacom restricts access to that server. You might try
adding 8.8.8.8 and/or 8.8.4.4 (google DNS) just to see what happens.
Chick Tower
2015-07-29 03:25:52 UTC
Permalink
Post by n***@gmail.com
What are some <openDNS> IP's,
and how do I 'script' the pppd to use my chosen DNS?
I've never tried this, but see if the ms-dns option does what you want.
See the pppd man page for ms-dns.
--
Chick Tower

For e-mail: aols2 DOT sent DOT towerboy AT xoxy DOT net
R.L. Horn
2015-07-29 11:58:10 UTC
Permalink
On Wed, 29 Jul 2015 03:25:52 +0000 (UTC), Chick Tower
Post by Chick Tower
Post by n***@gmail.com
What are some <openDNS> IP's,
and how do I 'script' the pppd to use my chosen DNS?
I've never tried this, but see if the ms-dns option does what you want.
See the pppd man page for ms-dns.
ms-dns is the server option that specifies address(es) for, I guess,
usepeerdns (bear with me...it's probably been over twenty years since I
set up a server).

If you want name resolution, ip-up probably needs to do *something* with
resolv.conf should usepeerdns fail.

A simple (and, actually, kind of shaky) non-dnsmasq, non-resolvconf
example might be:

In ip-up:
mv /etc/resolv.conf /etc/resolv.conf.saved
# testing $USEPEERDNS might be better
if [ -e /etc/ppp/resolv.conf ]
then
cat /etc/ppp/resolv.conf /etc/resolv.conf.saved > /etc/resolv.conf
else
# Google Datamining^H^H^H^H^H^H^H^H^H^HDNS
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
echo 'nameserver 8.8.4.4' >> /etc/resolv.conf
cat /etc/resolv.conf.saved >> /etc/resolv.conf
fi

In ip-down:
rm -f /etc/resolv.conf /etc/ppp/resolv.conf
mv /etc/resolv.conf.saved /etc/resolv.conf

(Assuming that you have a connection to the internet in the first place.)
Chick Tower
2015-07-30 19:15:48 UTC
Permalink
Post by n***@gmail.com
# Generated by dhcpcd for interface eth0
nameserver 196.207.32.83
What are some <openDNS> IP's,
and how do I 'script' the pppd to use my chosen DNS?
I didn't even notice that dhcpcd wrote your resolv.conf. The man page
for dhcpcd looks like it shows how to specify static DNS servers via the
-S option.
--
Chick Tower

For e-mail: aols2 DOT sent DOT towerboy AT xoxy DOT net
Loading...