The current static dhcp configuration routine (in modhosts and dnsmasq_conf) for dnsmasq doesn't allow the dns part work with aliases nor with entries with out a mac.
A conventional configuration looks like
The following two patches will allow the following
And sets up dnsmasq to lease the 192.168.05 to a host announcing itsself as myfirsthost regardless of the mac. The aliases mfh1 and ts will be configured into the hosts file. The hash (#) marks the rest of the line as a comment and will also be put into the hosts file.
These patches, once applied and configured will result in the following:
/var/tmp/flash/exhosts
/var/tmp/hosts
/var/tmp/ethers
/var/mod/etc/dnsmasq.conf
Note: the patches may be applied in the top-level freetz-trunk directory with the command
and follow the instructions from olistudent.
A conventional configuration looks like
Code:
192.168.0.5 * * myfirsthost description
Code:
192.168.0.5 dhcp-host * myfirsthost mfh1 ts # description
These patches, once applied and configured will result in the following:
/var/tmp/flash/exhosts
Code:
10.0.1.101 * * delaware de dns ntp gtw # 07.Dec.1787
10.0.1.102 a0:a1:a2:a3:a4:a5 * new-jersey nj # 18.Dec.1787
10.0.1.103 dhcp-host * new-york ny # 26.Jul.1788
/var/tmp/hosts
Code:
127.0.0.1 localhost
10.0.1.101 delaware de dns ntp gtw # 07.Dec.1787
10.0.1.102 new-jersey nj # 18.Dec.1787
10.0.1.103 new-york ny # 26.Jul.1788
/var/tmp/ethers
Code:
a0:a1:a2:a3:a4:a5 new-jersey
Code:
domain-needed
bogus-priv
read-ethers
dhcp-host=new-york
Note: the patches may be applied in the top-level freetz-trunk directory with the command
Code:
patch -p1 < patch.file
Zuletzt bearbeitet: