MAAS dnsresources and dnsresource-records manage DNS settings and records, ensuring proper network configuration.
dnsresource
dnsresource
maps fully qualified domain names (FQDNs) to IP addresses. Use the MAAS CLI to create records:
- A record (IPv4)
maas $PROFILE dnsresources create fqdn=$HOSTNAME.$DOMAIN ip_addresses=$IPV4ADDRESS
- AAAA record (IPv6)
maas $PROFILE dnsresources create fqdn=$HOSTNAME.$DOMAIN ip_addresses=$IPV6ADDRESS
dnsresource-records
dnsresource-records
manages additional DNS record types:
- CNAME (Alias)
- MX (Mail exchange)
- NS (Name server delegation)
- SRV (Service location)
- TXT (Text data, often for verification)
Examples:
- CNAME record
maas $PROFILE dnsresource-records create fqdn=alias.example.com rrtype=cname rrdata=target.example.com
- MX record
maas $PROFILE dnsresource-records create fqdn=example.com rrtype=mx rrdata='10 mail.example.com'
DNS role in MAAS
MAAS resolves hostnames to IPs for machine communication. It manages its own DNS but can also forward queries to an external upstream DNS server.
To configure an upstream DNS server:
maas $PROFILE maas set-config name=upstream_dns value=8.8.8.8
Managing dnsresource and dnsresource-records improves the speed and efficiency of DNS resolution within the MAAS network.
Last updated 9 hours ago.