Sometimes it's useful to compare the generated config file from UCI config with a hand-edited dnsmasq config file, especially if you're migrating to an OpenWRT router from something else (such as Astlinux).
Putting the generated config makes it easier to capture and diff, etc.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 31182
Adding the following syntax support:
config mxhost
option domain mydomain.com
option relay svr10.ironport.com
option pref 50
and this will generate an MX record for mydomain.com pointing at the relay with a given preference.
Redux: default the preference to 0 if absent.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 31057
The SRV record also requires the class and weight fields... Currently you can overload the "port" keyword as:
option port xxxx,class,weight
but this is counter-intuitive. Here we fix this.
Redux: make the port required.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
SVN-Revision: 31056
It corresponds to the following example in dnsmasq.conf.example:
# Always set the name of the host with hardware address
# 11:22:33:44:55:66 to be "fred"
#dhcp-host=11:22:33:44:55:66,fred
Regards
Mathias
SVN-Revision: 26983
'limit' is actually the number of IP addresses to serve. See the use of ipcalc.sh.
For getting the expected number of IP addresses served, we have to decrement
limit by one.
Patch from: kentarou matsuyama <matsuyama@thinktube.com>
SVN-Revision: 25100
Patch 103-ipv6_fix.patch is removed, because the problem the patch was fixing is now fixed in mainline.
Thank you Raphaël HUCK for your patch.
This fixes#6568.
SVN-Revision: 19392
dnsmasq allows adding of arbitrary SRV/PTR/TXT/CNAME records.
However, those options sometimes can not be passed as
command-line arguments due to excess length. This patch tries to
solve this problem:
1. Provide /etc/dnsmasq.conf file with comments about adding
SRV/PTR/TXT/CNAME records.
2. Add this file to conffiles list so it is preserver during
backup/restore or system upgrade.
If someone needs a lot of custom records, default configuration
file can be edited. Since manual pages and documentation is not
installed, provided comments should be enough to figure out
option syntax.
Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
SVN-Revision: 17663
This tiny patch makes the dnsmasq init.d script listen to a parameter called "notinterface", which tells dnsmasq to not listen on a defined set of interfaces.
By default dnsmasq *always* listens on the loopback interface, even if you tell it to specifically listen on a certain other interface. Sometimes this is not desirable behaviour, so you might want to turn it off. This is useful when, for example, you want to have your own DNS server listening on the loopback interface.
Signed-off-by: Johnny Halfmoon <jhalfmoon at milksnot.com>
SVN-Revision: 17599