diff options
author | Lorenz Schori <lo@znerol.ch> | 2012-05-05 13:07:04 +0200 |
---|---|---|
committer | Lorenz Schori <lo@znerol.ch> | 2012-05-05 13:07:04 +0200 |
commit | 5a2a83493cdb3f647b4913f3b84ef864103148f5 (patch) | |
tree | 975567fb61e36ffe01be0eb60e023ddfa6cba6e2 /etc/inc | |
parent | a52706d5d8bbaff13e22c78990648f2e4e17b1c7 (diff) | |
download | pfsense-5a2a83493cdb3f647b4913f3b84ef864103148f5.zip pfsense-5a2a83493cdb3f647b4913f3b84ef864103148f5.tar.gz |
Add support for aliases in DNS Forwarder, fixes #2410
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index a1517ed..b902761 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -258,6 +258,12 @@ function system_hosts_generate() { $lhosts .= "{$host['ip']} {$host['host']}.{$host['domain']} {$host['host']}\n"; else $lhosts .= "{$host['ip']} {$host['domain']}\n"; + foreach ($host['aliases']['item'] as $alias) { + if ($alias['host']) + $lhosts .= "{$host['ip']} {$alias['host']}.{$alias['domain']} {$alias['host']}\n"; + else + $lhosts .= "{$host['ip']} {$alias['domain']}\n"; + } } if (isset($dnsmasqcfg['regdhcpstatic']) && is_array($config['dhcpd'])) { foreach ($config['dhcpd'] as $dhcpif => $dhcpifconf) |