feature request: radvd RDNSS fe80::1

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 431

PostPosted: Thu Jul 23, 2015 8:47    Post subject: feature request: radvd RDNSS fe80::1 Reply with quote
radvd propagates isp dns server in RDNSS.

windows 7/8 doesn't support RDNSS. always resolving names with fe80::1. results in no dns over ipv6.

lollipop (android 5) supports RDNSS. gets isp dns server from radvd advertisment. results in dns without resolving internal names.

possible solution:

- add fe80::1 to br0
- configure "RDNSS fe80::1 {};" in radvd.conf

@dev: pls check side effects of this solution (refer timeline ticket)
Sponsor
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Thu Jul 23, 2015 18:00    Post subject: Reply with quote
did you tried dibbler with win7? http://klub.com.pl/dhcpv6/
I had problem with win7 too but then I decided to use dnsmasq... I am waiting for win 10 to see if MS solved these problems...
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 431

PostPosted: Thu Jul 23, 2015 21:55    Post subject: Reply with quote
configuring fe80::1 on br0 in a startup script solves Windows 7 issue.
tknarr
DD-WRT Novice


Joined: 28 Mar 2014
Posts: 5

PostPosted: Thu Jul 30, 2015 12:03    Post subject: Reply with quote
Rrgh. This explains many problems I've had getting DNSMasq to answer DNS queries via IPv6. For some reason DNSMasq isn't listening on the global IPv6 address on br0, just the link-local address.

Reason: apparently Android's got some bug in it where it'll only ask for AAAA records via IPv6. I've got a host defined with only an AAAA record and no A record, for testing, and while the Linux and Windows machines can resolve it fine querying via IPv4 the Android devices all come back with DNS lookup failures.
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 431

PostPosted: Sun Aug 02, 2015 14:01    Post subject: Reply with quote
workaround

store following code as executable script (modified!!!)
Code:

#! /bin/sh

if [ -z "`pidof dhcp6c`" ]; then
        echo dhcp6c process
        exit 0
fi

overwrite() {
        # override dhcp6c dns servers
        new_domain_name_servers=fe80::1

        /sbin/dhcp6c-state
}

config () {
        script=/mnt/scripts/dhcp6c_static_dns
        cfg=/tmp/dhcp6c.conf
        search="^[ ]*script \".*\";$"
        if [ -x $script -a -z "`grep \"${search/\.\*/$script}\" $cfg`" ]; then
                sed -i "s|${search}| script \"${script}\";|" $cfg
        fi
        killall dhcp6c
        sleep 2
        dhcp6c -c $cfg -T LL ppp0
}

if [ $# -ge 1 ]; then
        case "$1" in
                "-config")
                        config
                        ;;
        esac
else
        overwrite
fi


add to startup script
Code:

# ipv6
ip -6 addr add fe80::1/64 dev br0


add to firewall script
Code:

# static dns server radvd
script=[path to shell script]
[ -x $script ] && $script -config
tknarr
DD-WRT Novice


Joined: 28 Mar 2014
Posts: 5

PostPosted: Thu Aug 06, 2015 2:33    Post subject: Reply with quote
Question about dnsmasq. It's answering queries on the link-local IPv6 address of br0, but it won't answer queries to the global address even though the interface is configured with it. Is this a deliberate thing in dnsmasq?

Firmware is DD-WRT v3.0-r27506 (07/09/15) std
habeIchVergessen
DD-WRT User


Joined: 04 May 2010
Posts: 431

PostPosted: Thu Aug 06, 2015 9:53    Post subject: Reply with quote
firewall blocks the request.

try the following command on your router and any other ipv6 device in your network.

Code:

nslookup heise.de <your global ipv6 address>
tknarr
DD-WRT Novice


Joined: 28 Mar 2014
Posts: 5

PostPosted: Fri Aug 07, 2015 2:23    Post subject: Reply with quote
OK, that makes sense. I'll have to tweak the firewall rules to make the global address behave like the router's IPv4 address: accepts traffic from inside the LAN but not from the WAN side.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum