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 using Ubuntu 12.04.1. I installed and configured Bind. I configured DNS to perform recourse queries, so I can use it for both for LAN and WAN.
Now, I want set my system to use the local DNS server, but the problem is that I use wifi connection and not the same one, so I can not configure wifi interfaces. Configuration of eth0 don't take effect...
By the way I use iptables:

# Generated by iptables-save v1.4.12 on Mon Oct  1 21:14:26 2012
*filter
:INPUT ACCEPT [60:7100]
:FORWARD ACCEPT [4664:2982035]
:OUTPUT ACCEPT [58:13403]
COMMIT
# Completed on Mon Oct  1 21:14:26 2012
# Generated by iptables-save v1.4.12 on Mon Oct  1 21:14:26 2012
*nat
:PREROUTING ACCEPT [31:2016]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [3:180]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o wlan0 -j MASQUERADE
COMMIT
# Completed on Mon Oct  1 21:14:26 2012

So, what can I do for all request to DNS from current computer will pass thrue local DNS?
Thank you for ahead.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Edit your /etc/resolv.conf to start with

 nameserver 127.0.0.1

and you should be good to go.

share|improve this answer

Your Answer

 
discard

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.