Correct DNS settings for static WAN IP?
Posted: Wed Feb 11, 2009 7:12 pm
I just got Gargoyle beta4 working on a Fonera+, model # 2201.
I needed to set the router to a static WAN IP, so I had to manually add the gateway to /etc/config/network, as described in this post:
http://gargoyle-router.com/phpbb/viewto ... tatic#p150
However, I'm confused about the proper place for the DNS settings. Gargoyle puts the DNS server entries in the LAN interface in /etc/config/network, while OpenWRT puts them in the WAN, as shown here:
The Gargoyle router would not properly route between LAN and WAN without the gateway value specified manually, and I also put the DNS entries in the wan interface. This seems to work, but I don't know if this configuration is supported by Gargoyle specifically. I.e., will I clobber /etc/config/network if I change something via the web interface now?
Can anyone verify proper DNS configuration when your Gargoyle router is set to use a static WAN IP?
I needed to set the router to a static WAN IP, so I had to manually add the gateway to /etc/config/network, as described in this post:
http://gargoyle-router.com/phpbb/viewto ... tatic#p150
However, I'm confused about the proper place for the DNS settings. Gargoyle puts the DNS server entries in the LAN interface in /etc/config/network, while OpenWRT puts them in the WAN, as shown here:
Code: Select all
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
option 'ifname' 'eth0.0'
config 'interface' 'wan'
option 'ifname' 'eth0.1'
option 'proto' 'static'
option 'ipaddr' 'X.X.X.X'
option 'netmask' '255.255.255.0'
option gateway 'X.X.X.X'
option dns 'X.X.X.X X.X.X.X'
Can anyone verify proper DNS configuration when your Gargoyle router is set to use a static WAN IP?