i'd like to be able to add/remove/edit IP aliases and redirections that are in teh router hosts file from the gui. for example, i'd like to set up the router to resolve printer1.local to 192.168.1.250. this way i could have clients map their printers to a hostname without knowing the network topology.
Date: 08 Sep 2010 01:38
Number of posts: 6
RSS: New posts
You can do this already :).
"Basic->Static DHCP" page - enter the IP address and the host name, leave the MAC address(es) empty (all 00's).
Don't forget to click "Add" and "Save"…
Why, when insert "Basic->Static DHCP" page - enter the IP address and the host name, leave the MAC address(es) empty (all 00's) and name, then in device list don't view than inserted name?
You can also try something like this on your init script, for those hosts that are on a different network.
echo "127.0.0.1 localhost" > /tmp/etc/hosts
echo "192.168.254.3 lobby-ap" » /tmp/etc/hosts
echo "172.20.13.5 DC1.corp.hotel.com" » /tmp/etc/hosts
echo "172.20.13.6 DC2.corp.hotel.com" » /tmp/etc/hosts
echo "172.20.13.14 mail.hotel.com" » /tmp/etc/hosts
echo "172.20.13.20 www.hotel.com" » /tmp/etc/hosts
service dnsmasq restart
You can also add arbitrary addresses (even for IP ranges not on your LAN) via Advanced->DHCP/DNS in the "Dnsmasq Custom configuration" box. For example, here are entries for the LAN and WAN addresses for my upstream gateway:
# ISP gateway address=/isp-lan.mydomain/10.63.2.1 address=/isp-wan.mydomain/10.63.2.2 ptr-record=18.104.22.168.in-addr.arpa,isp-lan.mydomain ptr-record=22.214.171.124.in-addr.arpa,isp-wan.mydomain
The ptr-record entries are optional, and only needed if you want the reverse address-to-name lookup to work.
About Tom Metro