OpenWrt Forum Archive

Topic: gw6c and DNS resolvers

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

When using gw6c, is it possible to specifiy which DNS resolvers are sent with router advertisements?

Normally, you would add config to /etc/config/radvd like so:

config rdnss
        option interface        'lan'
        list   addr             '2001:db8:1::4'
        list   addr             '2001:db8:2::5'
        # option AdvRDNSSLifetime 3600
        option ignore           0

However gw6c doesn't use that radvd config, instead generating it's own. Is there a way to override that?

I solved my problem by editing /usr/share/gw6c/template/openwrt.sh and adding necessary config there. That scripts gets run each time gw6c starts.

I also realised that, by default, router advertisements contain the IPv6 address of the router's LAN interface as a DNS esolver, which works too. For most people, this will be all they need!

(Last edited by porjo on 23 May 2015, 01:54)

The discussion might have continued from here.