getting DNS to stick in OpenWRT

wrt54gl

as of a week now, i have OpenWRT version “Kamikaze” 7.09 running on my linksys WRT54GL v1.1 (marked WRT54GL-DE on the box). by following the setup instructions here for PPPoE, almost everything worked perfectly.

one part of the setup did cause me trouble. i need to manually dictate DNS addresses for my ISP. it turns out that it’s not /etc/resolv.conf one should worry about, but /etc/dnsmasq.conf instead.

in /etc/dnsmasq.conf change the line:

dhcp-option=6,101.1.1.1,202.2.2.2

…and change the ip addresses at the end of the line to match the DNS addresses that play well with your particular ISP. now the DNS entries will survive a router reboot. now if only i had something interesting to do with my old BEFW11S4v2:

befw11s4v2

2 thoughts on “getting DNS to stick in OpenWRT

  1. Pingback: D-Link adds captcha to routers - Hack a Day

  2. Pingback: D-Link adds captcha to routers | Geeky Bitch

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s