Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running a Buffalo AirStation running DD-WRT and have configured with a physical SSID, "ukAP" and a Virtual Interface "usAP". I'd like to setup connection from one SSID "ukap" to use the standard DNS servers from ISP and the "usAP" to use the DNS servers provided by unotelly/uno DNS.

The idea being if I want to appear as connected from the US and watch Hulu etc, I just switch SSID which is allot simpler for everyone in the house than manually configuring dns settings.

I'm thinking I'll need to setup a DNSintercept that I've seen noted in the dd-wrt wiki but it doesn't talk about for a specific Virtual Interfaces. Anyone know the commands to do this?

Firmware: DD-WRT v24SP2-MULT

share|improve this question

2 Answers 2

DNS will have nothing to do with allowing you to appear to be from a certain physical place. In fact, Hulu will have no idea where you got your DNS answers.

DNS works like this:

1) User types domain into browser
2) Client looks in cache for IP address of domain, if not found,
   2b) Client asks DNS server for IP address of domain
3) Client receives IP address of domain from either cache or DNS
4) Client then uses IP address to contact Hulu

Using an American DNS server will do nothing but take more time for your clients to receive their DNS query answers. Hulu checks your physical IP address to determine where you are, which has nothing to do with DNS lookups. You will need to use an American proxy if you wish to fool Hulu, and there is no way to route a DD-WRT connection through a proxy based on which SSID the client is connected through.

Sorry, bro. :(

share|improve this answer
I appreciate how DNS works, check out how the unotelly/uno DNS service works link –  scottyab Sep 27 '12 at 11:27
UnoDNS is offering "VPN" service, which is the same thing as a proxy. You will "tunnel" your connection to Hulu through their VPN, which will make it appear as though you are coming from America. :) –  L0j1k Sep 27 '12 at 11:33

You could try something like this (saved to Administration -> Commands -> Save Firewall)

iptables -t nat -I PREROUTING -i [interface 1] -p udp --dport 53 -j DNAT --to [IP of first ISPs DNS]
iptables -t nat -I PREROUTING -i [interface 2] -p udp --dport 53 -j DNAT --to [IP of second ISPs DNS]

To get the correct interface names, telnet/ssh to the router and run ifconfig. The virtual interface is probably wl0.1, and the normal wireless could be wl0, wlan0, vlan1 (If unsure, watch the RX/TX bytes in ifconfig while using the different SSIDs). For the IPs, just enter the first of a ISP's DNS servers.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.