Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / etc / ppp / ip-up.d / | server ip : 172.67.156.115 your ip : 172.70.179.120 H O M E |
Filename | /etc/ppp/ip-up.d/000resolvconf |
Size | 535 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:50 |
Last modified | 19-Jan-2013 00:28 |
Last accessed | 09-Jul-2025 23:13 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
#
# PPP up hook script for resolvconf
#
# Reconfigures resolver to take into account
# the appearance of the ppp interface.
#
# This file is part of the resolvconf package.
#
[ -x /sbin/resolvconf ] || exit 0
[ "$USEPEERDNS" ] || exit 0
case "$6" in
nm-pptp-service-*|/org/freedesktop/NetworkManager/PPP/*)
# NetworkManager handles it
exit 0
;;
esac
R=""
if [ "$DNS1" ] ; then
R="${R}nameserver $DNS1
"
fi
if [ "$DNS2" ] ; then
R="${R}nameserver $DNS2
"
fi
echo -n "$R" | /sbin/resolvconf -a "${PPP_IFACE}.pppd"
#
# PPP up hook script for resolvconf
#
# Reconfigures resolver to take into account
# the appearance of the ppp interface.
#
# This file is part of the resolvconf package.
#
[ -x /sbin/resolvconf ] || exit 0
[ "$USEPEERDNS" ] || exit 0
case "$6" in
nm-pptp-service-*|/org/freedesktop/NetworkManager/PPP/*)
# NetworkManager handles it
exit 0
;;
esac
R=""
if [ "$DNS1" ] ; then
R="${R}nameserver $DNS1
"
fi
if [ "$DNS2" ] ; then
R="${R}nameserver $DNS2
"
fi
echo -n "$R" | /sbin/resolvconf -a "${PPP_IFACE}.pppd"