I'm working on setting up my first FreeBSD router. I'm using an alix 2D13 board with FreeBSD 9.0. I've built a nice little nanobsd image with a custom kernel and all that. Now I'm onto the configuration aspect of things. One thing I'm configuring is dnsmasq for DHCP and DNS resolution. By default dnsmasq keeps its configuration in /etc/local/dnsmasq.conf. I can't for the life of me figure out how to get "save_cfg" to save this file into /cfg. Is there some basic trick I'm missing? Surely this should work...right? This is what I'm seeing:
I've also tried it with just the name:
Based on this it looks like "save_cfg" automatically adds "/etc" to the front of the names. So, technically, "local/dnsmasq.conf" should work, the file does exist:
Any hints?
Code:
alix# sh save_cfg local/dnsmasq.conf
find: *: No such file or directory
cp: /cfg/local/dnsmasq.conf: No such file or directory
I've also tried it with just the name:
Code:
alix# sh save_cfg dnsmasq.conf
find: *: No such file or directory
cp: /etc/dnsmasq.conf: No such file or directory
Based on this it looks like "save_cfg" automatically adds "/etc" to the front of the names. So, technically, "local/dnsmasq.conf" should work, the file does exist:
Code:
alix# ls -l /etc/local/dnsmasq.conf
-r--r--r-- 1 root wheel 2777 Mar 8 05:21 /etc/local/dnsmasq.conf
Any hints?