On Sun, Jul 29, 2012 at 11:25:49PM +0200, gabriel wrote: > On 07/29/2012 06:39 PM, Simon Kelley wrote: > > On 26/07/12 13:31, gabriel wrote: > >> My question is whether it would be possible to have a single > >> line config statement for mac-ip-hostname mapping. > >> But I want to have the DNS entries permanently preserved resp. > >> dns mappings without prior dhcp ip negotiation. Actually this > >> means I don't want DNS to be dynamic. > >> > >> Is this somehow configurable? > > > > Yes. Put the hostname<->IP address mapping in /etc/hosts and the > > mac_address<->hostname mappings in /etc/dnsmasq.conf in dhcp-host > > lines. > > > > > > so: in /etc/hosts > > > > 1.2.3.4 myhost > > > > in /etc/dnsmasq.conf > > > > dhcp=host=00:11:22:33:44:55,myhost > > So this means that I can't maintain my hosts in a single file with > only one statement?
Single statement, not that I know of. Single file, sure. See "-A, --address" in the man page. in /etc/dnsmasq.conf : dhcp=host=00:11:22:33:44:55,myhost address=/myhost/1.2.3.4 -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss