hi all ,
i have a script , but i need a script man to have a look on and tell me why the dns is not working on this script.
the user can get ipv6 ip , but it cant get ipv6 dns ???!!
here is the script :
root@debian:~# cat /etc/ppp/ipv6-up.d/setupradvd
#!/bin/bash
ADDR=$(grep ^$PEERNAME: /etc/ppp/ipv6-addr |cut -f 2 -d
if test x$ADDR == x ; then
echo "No IPv6 address found for user $PEERNAME"
exit 0
fi
#configure locally
#ifconfig $IFNAME add 2001:db8:1:$ADDR::1/64
ifconfig $IFNAME add 2001:4428:200:8154:aaaa:$ADDR::1/80
#2001:4428:200:8154:aaaa::/80
#generate radvd config
RAP=/etc/ppp/ipv6-radvd/$IFNAME
RA=$RAP.conf
echo interface $IFNAME >$RA
echo '{ AdvSendAdvert on; MinRtrAdvInterval 5; MaxRtrAdvInterval 100;' >>$RA
echo ' prefix' 2001:4428:200:8154:aaaa:$ADDR::/80 '{};' >>$RA
echo ' RDNSS 2001:db8::1 {}; };' >>$RA
#start radvd
/usr/sbin/radvd -C $RA -p $RAP.pid
exit 0
root@debian:~#
regards