Hi,
is there a way to force dnsmasq to assign a new hostname based on mac address without having to maintain the hostname in two files/locations (dnsmasq.conf.add and hosts.dnsmasq?
Is there a way to retain domain .home but not have to add the whole FDQN each time ? Eg resolve http://inf-dlink-cam1? would that be adding address=//127.0.0.1?
In order to get
a) static Ips for my devices
b) turn "Hangzou Industrial Conglomerate" into "Cam1-backyard"
names resolve fine with http://inf-dlink-cam1.home
I have added to dnsmasq.conf.add:
address=/home/127.0.0.1
address=/home/::1
addn-hosts=/jffs/configs/hosts.dnsmasq
dhcp-option=42,0.0.0.0
dhcp-option=option6:information-refresh-time,6h
dhcp-host=B0:C5:54:31:31:5F,INF-DLINK-Cam1,192.168.1.184,20m
dhcp-host=5C:96:9D:84:F2:B7,PC-Macpro2012,192.168.1.60,20m
hosts.dnsmasq:
192.168.1.60 . PC-Macpro2012
192.168.1.184 . INF-DLINK-CAM1
System startup log looks ok (fwd slash removed):
May 4 22:05:06 custom_config: Appending content of jffs configs dnsmasq.conf.add.
May 4 22:05:06 dnsmasq[313]: started, version 2.80-32-g28cfe36 cachesize 1500
May 4 22:05:06 dnsmasq[313]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-auth DNSSEC no-ID loop-detect no-inotify no-dumpfile
May 4 22:05:06 dnsmasq[313]: warning: interface pptp* does not currently exist
May 4 22:05:06 dnsmasq[313]: asynchronous logging enabled, queue limit is 5 messages
May 4 22:05:06 dnsmasq-dhcp[313]: DHCP, IP range 192.168.1.100 -- 192.168.1.254, lease time 1d
May 4 22:05:06 dnsmasq[313]: using local addresses only for domain home
May 4 22:05:06 dnsmasq[313]: read etc hosts - 5 addresses
May 4 22:05:06 dnsmasq[313]: read jffs configs hosts.dnsmasq - 2 addresses
May 4 22:05:06 dnsmasq[313]: using local addresses only for domain home
May 4 22:05:06 custom_config: Appending content of jffs configs avahi-daemon.conf.add.
is there a way to force dnsmasq to assign a new hostname based on mac address without having to maintain the hostname in two files/locations (dnsmasq.conf.add and hosts.dnsmasq?
Is there a way to retain domain .home but not have to add the whole FDQN each time ? Eg resolve http://inf-dlink-cam1? would that be adding address=//127.0.0.1?
In order to get
a) static Ips for my devices
b) turn "Hangzou Industrial Conglomerate" into "Cam1-backyard"
names resolve fine with http://inf-dlink-cam1.home
I have added to dnsmasq.conf.add:
address=/home/127.0.0.1
address=/home/::1
addn-hosts=/jffs/configs/hosts.dnsmasq
dhcp-option=42,0.0.0.0
dhcp-option=option6:information-refresh-time,6h
dhcp-host=B0:C5:54:31:31:5F,INF-DLINK-Cam1,192.168.1.184,20m
dhcp-host=5C:96:9D:84:F2:B7,PC-Macpro2012,192.168.1.60,20m
hosts.dnsmasq:
192.168.1.60 . PC-Macpro2012
192.168.1.184 . INF-DLINK-CAM1
System startup log looks ok (fwd slash removed):
May 4 22:05:06 custom_config: Appending content of jffs configs dnsmasq.conf.add.
May 4 22:05:06 dnsmasq[313]: started, version 2.80-32-g28cfe36 cachesize 1500
May 4 22:05:06 dnsmasq[313]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset no-auth DNSSEC no-ID loop-detect no-inotify no-dumpfile
May 4 22:05:06 dnsmasq[313]: warning: interface pptp* does not currently exist
May 4 22:05:06 dnsmasq[313]: asynchronous logging enabled, queue limit is 5 messages
May 4 22:05:06 dnsmasq-dhcp[313]: DHCP, IP range 192.168.1.100 -- 192.168.1.254, lease time 1d
May 4 22:05:06 dnsmasq[313]: using local addresses only for domain home
May 4 22:05:06 dnsmasq[313]: read etc hosts - 5 addresses
May 4 22:05:06 dnsmasq[313]: read jffs configs hosts.dnsmasq - 2 addresses
May 4 22:05:06 dnsmasq[313]: using local addresses only for domain home
May 4 22:05:06 custom_config: Appending content of jffs configs avahi-daemon.conf.add.