How to get the DNS server address which are specific to each ppp session. For example, I have two ppp sessions each one connected different service provider, how do I find out the DNS server IP address which are assigned by each service provider? In general, the /etc/ppp/resolv.conf file will be overwritten with the new DNS IP address whenever a new ppp session is established. Is there any way how we can maintain separate files for DNS servers for each service provider?
man pppd
:So just evaluate DNS1 and DNS2 in your ip-up script (which is run once after the PPP connection is established) and if you need this information later on, store it somewhere.
But as mailq has written, there is really only little use for this kind of feature.