Michael Kaufmann (d00p)
1ce5cf6c00
various fixes for dns with froxlor-hostname
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2016-05-17 09:12:39 +02:00
Michael Kaufmann (d00p)
69443d95d5
add support for power-dns (untested); most config-templates missing for pdns; create SPF/DKIM entries only if domain is emaildomain
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2016-05-17 08:30:02 +02:00
Daniel Reichelt
576c94f83c
fix #1615
2016-04-10 02:59:22 +02:00
Michael Kaufmann (d00p)
579854f5a5
handle the case when gethostbynamel() returns false to act like gethostbyname() in support for multi homed name servers
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2016-03-11 21:23:26 +01:00
Kay Zumbusch
641ee1f8a6
added check for invalid responses from gethostbynamel
...
fixed indent
2016-03-09 21:01:47 +01:00
Kay Zumbusch
52448571ea
added support for multi homed name servers
2016-03-09 20:40:41 +01:00
Michael Kaufmann (d00p)
573fd69c95
avoid unknown variable if there are no domains in domain-list
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2016-02-28 22:04:57 +01:00
Daniel Reichelt
e306425428
remove now superfluous $debugHandler fields
2016-02-16 16:24:07 +01:00
Daniel Reichelt
f86a115c6a
cron scripts: replace fwrite'ing to lockfile by logging
2016-02-16 16:24:06 +01:00
Daniel Reichelt
e327a39eac
cron tasks: bind: refactor zone creation
...
cron_tasks/bind: refactor zone creation
DNS records for subdomains managed as main domains (i.e. have
ismainbutsubto>1) get written to separate zone files for each subdomain.
This does not play well with hidden-master setups, where a quering DNS
server would only request a transfer of the topmost parent zone and ignore
SOA records therein to initiate the potentially required transfers of
subzones.
This patch changes how zonefiles are created, so that DNS records of
"ismainbutsubto>1"-domains end up within the zone of the topmost parent
domain. Obviously this relies on correctly set ismainbutsubto-fields of
all subdomains managed as main domain in Froxlor.
Refactoring summary:
- Previously _generateDomainConfig() would be called for each customer
domain, handle writing the zone file and accumulate the bind config
data.
Now writing the zone files is decoupled and both _generateDomainConfig()
and generateZone() get called from the main loop over the customer
domains.
- The main loop over customer domains only considers
"ismainbutsubto==0"-domains, children are handled via recursion within
walkDomainList() according to the previously collected relations of
direct children.
- The recursion accumulates the zone data, storing it in $_bind_conf_file
(which is now a private member) until it gets written to a zone file.
The resulting structure is written to the debugHandler.
-- For "ismainbutsubto==0"-domains, generateZone() returns a SOA record
and further applicable records as usual.
-- For "ismainbutsubto>0"-domains, generateZone() returns a "$ORIGIN
$domain"-line and further applicable records as usual. This now excludes
NS records, since they're no longer required.
- The boolean parameter $froxlorhost=true to _generateDomainConfig() and
generateZone() was replaced by the additional field
$hostname_arr['froxlorhost']
2016-02-08 22:43:57 +01:00
Daniel Reichelt
427b7492dc
cron_tasks/bind: fix conditions for mail-related records
...
This patch adds isemaildomain==1 as an additional condition for the
creation of mx/imap/smtp/pop3/spf-txt records for a domain.
For the hostname entry, this depends on the system setting
dns_createmailentry.
2016-02-08 00:28:45 +01:00
Daniel Reichelt
627e22a2e6
cron_tasks/bind: fix conditions for writing www records
...
The bind cronjob awlays creates www A/AAAA records, regardless of a
domain's iswildcarddomain or wwwserveralias settings.
With this patch www records only get created if "www alias" is selected
for a domain, i.e. iswildcarddomain is disabled and wwwserveralias is
enabled.
2016-02-08 00:28:45 +01:00
Stefan Weil
0fc73b2bbb
Fix typos found by codespell
...
Signed-off-by: Stefan Weil <sw@weilnetz.de >
2015-02-08 17:52:45 +01:00
Michael Kaufmann (d00p)
f1eb5420a7
add option to enable/disable generation of bind-configs for the system-hostname
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2014-06-02 12:35:45 +02:00
Michael Kaufmann (d00p)
9c87792c63
keep known_filenames as it results in no zone-file being generated (d'oh); also use all available ip's for the froxlor-hostname config, thx a lot to vali for testing, really fixes #1090 this time
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2014-03-11 11:07:14 +01:00
Michael Kaufmann (d00p)
31fa23a388
create a dns-config for the froxlor-hostname, fixes #1090
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2014-03-11 10:18:23 +01:00
Michael Kaufmann (d00p)
6a8cd15456
Merge remote-tracking branch 'origin/0.9.31'
2013-12-16 13:37:01 +01:00
Michael Kaufmann (d00p)
8ad3c79589
add actually a www-alias if set, fixes #1326
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-12-16 12:26:10 +01:00
Roman Schmerold (BNoiZe)
121669ee69
migrating more files to new Settings-class makes me dance, refs #1325
...
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org >
2013-12-15 15:51:25 +01:00
Michael Kaufmann (d00p)
a5b1065195
generate spf-entry also for 'mail'-record when no mxservers are specified, fixes #1314
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-12-09 13:57:03 +01:00
Michael Kaufmann (d00p)
4426ab52d3
migrate ALL the crons to new PDO database class, refs #1287
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-11-28 12:35:20 +01:00
Michael Kaufmann (d00p)
9d5851e9be
deny possible direct call of cronjobs
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-10-27 06:18:09 +01:00
Michael Kaufmann (d00p)
55312a6df4
fix zonefile nameserver-entries when there are no nameservers given (use A/AAAA entries then)
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-05-03 10:45:27 +02:00
Michael Kaufmann (d00p)
9691a39102
fix setting of default IP/Port (which still used panel_domain's ipandport-field), don't show ssl-enabled IP/Ports for default-ip (wrong default parameter of function getIpPortCombinations()), smaller fixes in bind- and lighttpdcronjob
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-05-02 10:38:44 +02:00
Tilman Klaeger (tilman19)
0d3daace49
Add multistack configuration to Bind nameserver, fixes #585
2013-04-29 08:56:43 +02:00
Michael Kaufmann (d00p)
7a69cf73ba
don't require a port-declaration in validating an URL when an IP address is given, fixes #1179
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-04-23 15:58:03 +02:00
Michael Kaufmann (d00p)
f2d10046b6
fix axfr-server-stuff (and close allow-transfer block), let updater and settings validate ipv4/ipv6 via function validate_ip
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-04-22 16:39:35 +02:00
Michael Kaufmann (d00p)
7adc2dd35c
Update version_compare function; fix syntax-error in bind-config generation, thx to monumentum
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-04-19 13:55:38 +02:00
Michael Kaufmann (d00p)
e97a7c611c
add possibility to specify AXFR servers for bind zone-configuration, fixes #100
...
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org >
2013-04-18 16:38:22 +02:00
Florian Aders (EleRas)
bb7874e68f
Fixing undefined index in bind zonefile - generation
...
Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org >
2011-11-12 15:26:05 +01:00
Christoph Burchert (Chb)
ddb179f340
Mini-fix the minor fix
...
Signed-off-by: Christoph Burchert (Chb) <derchb@froxlor.org >
2011-10-19 15:22:53 +02:00
Christoph Burchert (Chb)
4fbdb80faf
Minor fix
...
Signed-off-by: Christoph Burchert (Chb) <derchb@froxlor.org >
2011-10-19 10:04:50 +02:00
Christoph Burchert (Chb)
b3d01fd6d2
Add www-prefix in bind, fixes #781
...
Signed-off-by: Christoph Burchert (Chb) <derchb@froxlor.org >
2011-10-18 13:21:32 +02:00
Florian Aders (EleRas)
642cd3da9d
Applied patch to fix IPv6 in bind, fixes #799 , thx frennkie
...
Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org >
2011-09-09 13:57:59 +02:00
Andreas Burchert (scarya)
51a83d8b09
Removed @version in file header. This isn't used by git.
2011-05-04 11:59:20 +02:00
Michael Kaufmann (d00p)
d256ddfcbc
- added possibility to let the cron create mail-specific A-records (mail, imap, pop3, smtp) even when MX-servers are given, fixes #242
2010-06-02 10:08:01 +00:00
Michael Kaufmann (d00p)
96219f406d
added configuration for bind's TTL value, fixes #166
2010-04-20 06:22:11 +00:00
Michael Kaufmann (d00p)
98e79d933c
- check for regular file when deleting old zonefiles (don't try to delete directories), fixes #147
2010-04-12 17:16:46 +00:00
Michael Kaufmann (d00p)
6c25cd1c85
- fix domain-sorting in customer-panel (domain-overview), fixes #126
...
- add dkim-milter restart command to bind-cron
2010-04-12 06:15:16 +00:00
Michael Kaufmann (d00p)
0d3df6e1fe
- fixed some left-overs when using safe_exec which have not been escaped correctly, fixes #136
2010-04-12 05:49:16 +00:00
Florian Aders (EleRas)
1903f34dea
If we don't have a wildcard - domain and no special - MX - hosts, we add the three special - subdomains imap, smtp and pop3, fixes #82
2010-04-10 07:52:53 +00:00
Florian Aders (EleRas)
0ec2238e4b
Adding new DKIM - stuff d00p made, fixes #94
2010-03-25 12:14:56 +00:00
Michael Kaufmann (d00p)
1db572e010
- added Domainkey-Filter configuration for FreeBSD (thx to hedo)
...
- bugfixed DKIM verification failure when using .private file-extension (also thx to hedo), fixes #63
2010-03-19 10:46:09 +00:00
Florian Aders (EleRas)
28feb0d1b2
Moving all files to jobs directly for more flexible management
2010-01-25 13:19:45 +00:00