I'm trying to make dnsmasq work to use it with NetworkManager to create an adhoc connection on Archlinux and there may be other stuff left to do after to make it work ...
There is how : ( https://wiki.archlinux.org/index.php/Dnsmasq and https://bbs.archlinux.org/viewtopic.php?id=6431)
pacman -S dnsmasq
mkdir /etc/dnsmasq
mv /etc/resolv.conf /etc/dnsmasq
cd /etc
echo nameserver 127.0.0.1 > resolv.conf
mv rc.conf rc.conf.save
sed '/DAEMON/s/network/network dnsmasq.local/g' rc.conf.save>rc.conf
cd rc.d
sed '/-z/s/dnsmasq/dnsmasq -r /etc/dnsmasq/resolv.conf /g' dnsmasq>dnsmasq.local
/etc/rc.d/dnsmasq.local start
/etc/rc.d/network restart
I got a problem with :
sed '/-z/s/dnsmasq/dnsmasq -r /etc/dnsmasq/resolv.conf /g' dnsmasq>dnsmasq.local
In resume it say that's the .../s/... is not a known option ...
sed '/-z/s/dnsmasq/dnsmasq -r \/etc\/dnsmasq\/resolv.conf /g' dnsmasq>dnsmasq.localor choose another delimiter in sed like thissed '/-z/s!dnsmasq!dnsmasq -r /etc/dnsmasq/resolv.conf !g'– micke Oct 7 '11 at 22:54