use 127.0.0.1 as dns server and point dnsmasq to /tmp/resolv.conf
authorFelix Fietkau <nbd@openwrt.org>
Tue, 25 Jul 2006 18:12:30 +0000 (18:12 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 25 Jul 2006 18:12:30 +0000 (18:12 +0000)
SVN-Revision: 4282

openwrt/package/base-files/Makefile
openwrt/package/base-files/default/etc/resolv.conf [new file with mode: 0644]
openwrt/package/dnsmasq/files/dnsmasq.conf

index 8fccf79ea8aaa1e404a287d43edb66fb201ce5b1..01ea9674c52c93844a3d6736a87d8df5da13ee4d 100644 (file)
@@ -153,7 +153,6 @@ define Package/base-files$(TARGET)/install
        mkdir -p $(1)/usr/bin
        mkdir -p $(1)/sys
        mkdir -p $(1)/www
-       ln -sf /tmp/resolv.conf $(1)/etc/resolv.conf
        ln -sf /proc/mounts $(1)/etc/mtab
        rm -f $(1)/var
        ln -sf /tmp $(1)/var
diff --git a/openwrt/package/base-files/default/etc/resolv.conf b/openwrt/package/base-files/default/etc/resolv.conf
new file mode 100644 (file)
index 0000000..9617eac
--- /dev/null
@@ -0,0 +1,2 @@
+nameserver 127.0.0.1
+search lan
index 7aed3a3da4b62fb7891c4b76aea5c3b9f711fbb3..43acd85b154f9999c3b710759eadba622df9d412 100644 (file)
@@ -8,6 +8,7 @@ localise-queries
 local=/lan/
 domain=lan
 expand-hosts
+resolv-file=/tmp/resolv.conf
 
 @ifdef dhcp_enable
 dhcp-range=@@start@@,@@end@@,@@netmask@@,@@lease@@