<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 23/01/2023 08:39, Andrea Biancalani
via Pdns-users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:0c1c4d2a-d08f-e51d-c01b-9d6a1a4891a1@conmet.it">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
Hello there, <br>
<br>
do you know if it is possible with pdns Admin GUI (using mysql
backend)</blockquote>
<p>Questions about a particular third-party project which integrates
with PDNS would be better raised with that third-party project.</p>
<p>There are dozens of admin web interfaces:<br>
</p>
<a class="moz-txt-link-freetext" href="https://github.com/PowerDNS/pdns/wiki/WebFrontends">https://github.com/PowerDNS/pdns/wiki/WebFrontends</a><br>
<p>If you are talking about the one called "PowerDNS-Admin" then it
has its own discussion forum here:</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/PowerDNS-Admin/PowerDNS-Admin/discussions">https://github.com/PowerDNS-Admin/PowerDNS-Admin/discussions</a><br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:0c1c4d2a-d08f-e51d-c01b-9d6a1a4891a1@conmet.it">
<blockquote type="cite">@ IN A 1.2.3.4<br>
www IN CNAME <b>foo.bar</b>.</blockquote>
<br>
so how can I create a functional template to auto add the www
record in my template based on domain name? Or... can I solve this
using an ALIAS type or something different?<br>
</blockquote>
<p>Suppose you had a template like this:</p>
<p>@ SOA ...<br>
@ NS ...<br>
@ MX ...<br>
@ A 192.0.2.1<br>
@ AAAA 2001:db8::1<br>
www A 192.0.2.1<br>
www AAAA 2001:db8::1</p>
An alias record can be used to simplify it to:<br>
<p>@ SOA ...<br>
@ NS ...<br>
@ MX ...<br>
@ ALIAS www<br>
www A 192.0.2.1<br>
www AAAA 2001:db8::1</p>
<p>Or even:</p>
<p>@ SOA ...<br>
@ NS ...<br>
@ MX ...<br>
@ ALIAS webhost.mycompany.com.<br>
www ALIAS webhost.mycompany.com. ; see [note] below</p>
<p>Behind the scenes, the auth server does a recursive lookup for
the ALIAS target and returns the A/AAAA records as if
authoritative. It can be used to avoid duplicating IP addresses
across many zone files.<br>
</p>
<p>[note]: that particular one could also be a CNAME; the one above
couldn't. But CNAMEs are visible in DNS lookups, whilst ALIAS
records are invisible.<br>
</p>
<p>See also:
<a class="moz-txt-link-freetext" href="https://doc.powerdns.com/authoritative/guides/alias.html">https://doc.powerdns.com/authoritative/guides/alias.html</a></p>
HTH,
<p>Brian.<br>
</p>
</body>
</html>