<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">Il 23/01/2023 10:32, Brian Candler ha
scritto:<br>
</div>
<blockquote type="cite"
cite="mid:18199dae-bec6-e041-363a-5375fe36bf10@pobox.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<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"
moz-do-not-send="true">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"
moz-do-not-send="true">https://github.com/PowerDNS-Admin/PowerDNS-Admin/discussions</a><br>
</p>
</blockquote>
<br>
Hello, <br>
<br>
yeah, I'm talkin' about the latter one, I'll bookmark that link for
future needs (thanks!).<br>
<br>
<br>
Answering below for further investigations...<br>
<br>
<blockquote type="cite"
cite="mid:18199dae-bec6-e041-363a-5375fe36bf10@pobox.com">
<p> </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>
</blockquote>
<br>
You got the point, my default template for new hosting is similar to
this<br>
<br>
<blockquote type="cite">@ 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</blockquote>
<br>
but if I try to use this template<br>
<br>
<blockquote type="cite">@ SOA ...<br>
@ NS ...<br>
@ MX ...<br>
@ ALIAS www. <i><b>(added final dot)</b></i><br>
www A 192.0.2.1<br>
www AAAA 2001:db8::1</blockquote>
<br>
I can resolve the <a class="moz-txt-link-abbreviated" href="http://www.foo.bar">www.foo.bar</a> record, but when trying to resolve
foo.bar I get a "Server failed" answer ( dns-server is not able to
find foo.bar)<br>
<br>
Using instead the webhost server name it can be correctly resolved,
so using below sample, is working<br>
<br>
<blockquote type="cite"
cite="mid:18199dae-bec6-e041-363a-5375fe36bf10@pobox.com">Or even:
<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>
</blockquote>
<br>
Trying to use a template like this instead, gave as result a "<span
style="color: rgb(255, 255, 255); font-family: "Source Sans
Pro", "Helvetica Neue", Helvetica, Arial,
sans-serif; font-size: 14px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: rgb(221, 75, 57);
text-decoration-thickness: initial; text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">RRset foo.bar. IN CNAME: Conflicts with
pre-existing RRset</span>"<br>
<br>
<blockquote type="cite">@ SOA ...<br>
@ NS ...<br>
@ MX ...<br>
@ CNAME www. <i><b>(added final dot)</b></i><br>
www A 192.0.2.1<br>
www AAAA 2001:db8::1</blockquote>
<br>
that doesn't happens if I use the zone record as target of the CNAME<br>
<br>
<blockquote type="cite">@ SOA ...<br>
@ NS ...<br>
@ MX ...<br>
@ CNAME foo.bar. <i><b>(added final dot)</b></i><br>
www A 192.0.2.1<br>
www AAAA 2001:db8::1</blockquote>
<br>
I suppose this behavior is totally correct, so I'm asking if the
best solution for my case is just pointing new zones to the template
that contains ALIAS to webhost server name, to avoid specifing
foo.bar as CNAME or ALIAS record for a non-www standard record. <br>
<br>
Is this fine I suppose, isn't it?<br>
<br>
Andrea<br>
</body>
</html>