dnsmasq: use "hostsdir" instead of "addn-hosts"
1.) "addn-hosts" per default point to a file (but it supports directory) 2.) "hostsdir" only support directory with the additional benefit: New or changed files are read automatically. Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
		 Christian Schoenebeck
					Christian Schoenebeck
				
			
				
					committed by
					
						 Hans Dedecker
						Hans Dedecker
					
				
			
			
				
	
			
			
			 Hans Dedecker
						Hans Dedecker
					
				
			
						parent
						
							8aae794e99
						
					
				
				
					commit
					c97189e26d
				
			| @@ -938,7 +938,7 @@ dnsmasq_start() | ||||
|  | ||||
| 	xappend "--dhcp-broadcast=tag:needs-broadcast" | ||||
|  | ||||
| 	xappend "--addn-hosts=$(dirname $HOSTFILE)" | ||||
| 	xappend "--hostsdir=$(dirname $HOSTFILE)" | ||||
|  | ||||
| 	config_get dnsmasqconfdir "$cfg" confdir "/tmp/dnsmasq.d" | ||||
| 	[ ! -d "$dnsmasqconfdir" ] && mkdir -p $dnsmasqconfdir | ||||
|   | ||||
		Reference in New Issue
	
	Block a user