'How do you add a URI record to PowerDNS?
I'm trying to add a URI record to my PowerDNS server and not having any luck. The PowerDNS-Admin web interface doesn't have "URI" in its drop-down list of record types and the pdnsutil command gives errors that make no sense to me.
The record I'm trying to add is:
_kerberos.example.com. 3600 IN URI 0 100 "krb5srv:m:tcp:freeipa.example.com."
I tried the pdnsutil command in several ways but still getting errors:
powerdns-master:~$ pdnsutil add-record example.com _kerberos URI 3600 0 100 krb5srv:m:tcp:freeipa.example.com.
Error: Parsing record content (try 'pdnsutil check-zone'): missing field at the end of record content '0'
powerdns-master:~$ pdnsutil add-record example.com _kerberos URI 3600 0 "100 krb5srv:m:tcp:freeipa.example.com."
Error: Parsing record content (try 'pdnsutil check-zone'): missing field at the end of record content '0'
powerdns-master:~$ pdnsutil add-record example.com _kerberos URI "0 100 krb5srv:m:tcp:freeipa.example.com."
Error: Parsing record content (try 'pdnsutil check-zone'): Data field in DNS should start with quote (") at position 6 of '0 100 krb5srv:m:tcp:freeipa.example.com.'
powerdns-master:~$ pdnsutil add-record example.com _kerberos URI 0 100 "krb5srv:m:tcp:freeipa.example.com."
Error: Parsing record content (try 'pdnsutil check-zone'): missing field at the end of record content '100'
powerdns-master:~$ pdnsutil add-record example.com _kerberos URI 3600 "0 100 krb5srv:m:tcp:freeipa.example.com."
Error: Parsing record content (try 'pdnsutil check-zone'): Data field in DNS should start with quote (") at position 6 of '0 100 krb5srv:m:tcp:freeipa.example.com.'
powerdns-master:~$ pdnsutil add-record example.com _kerberos URI 3600 0 100 "krb5srv:m:tcp:freeipa.example.com."
Error: Parsing record content (try 'pdnsutil check-zone'): missing field at the end of record content '0'
Any ideas on what I'm doing wrong?
Thanks in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
