This document is intended to be a guide for LoCo DNS administrators and LoCo contacts who have access to their domain's DNS key. This system uses TSIG for DNS changes.

The documentation here only applies to LoCo sites which have their domain names registered on Canonical's nameservers.

If you are a LoCo contact and...

...please email a GnuPG-signed message to rt@ubuntu.com with the request. In the case of an update please specify which IP address the new domain should have.

In order to make changes to a DNS entry, you must have the nsset script and the Perl bindings for DNS installed (package: libnet-dns-perl).

Note that nsset may fail on newer releases of Ubuntu (such as Ubuntu 23.10) with an error such as Usage:  Net::DNS::RR::TSIG->create( $keyfile, @options ) at /usr/share/perl5/Net/DNS/Packet.pm line 631.. Use an Ubuntu 22.04 LTS machine, or a container, to perform the update as a workaround.

Announcements

2022-06-15

loco-dns.ubuntu.com has migrated to a server that no longer accepts updates via UDP.

In order to keep using nsset for updates, please download the updated version as currently attached to this page. Link to attachment: nsset; link to diff: nsset.patch (may not apply cleanly to your local copy).

If you use nsupdate, use the -v option to enable TCP unconditionally.

If you use another tool to perform DNS updates, please consult its documentation for information on switching to TCP.

Steps to take

$ whois ubuntu-se.org | grep Server 

Name Server:NS1.CANONICAL.COM
Name Server:NS2.CANONICAL.COM
Name Server:NS3.CANONICAL.COM

$ dig @ns1.canonical.com www.site.org

$ dig @ns1.canonical.com www.ubuntu-se.org

;; ANSWER SECTION:
www.ubuntu-se.org.      3600    IN      A       ADD.RIS.INH.ERE

key ubuntu-se.org. {
    algorithm hmac-md5;
    secret "blahfoobarblahbarfooblah";
};

$ ./nsset -s loco-dns.ubuntu.com -k secret -K main-domain-name -z main-domain-name [operation] [domain-to-change]

For example:

$ ./nsset -s loco-dns.ubuntu.com -k blahfoobarblahbarfooblah -K ubuntu-se.org. -z ubuntu-se.org -u www.ubuntu-se.org

A 74.125.45.100

$ dig @ns1.canonical.com www.ubuntu-se.org

And that's all there is to it!

I need help with something

If you need any more help, please send an email to rt@ubuntu.com explaining what you are trying to do and the details of the problem you are having.


CategoryLoCoTeams

LoCoTeamsDNSAdmin (last edited 2024-02-25 14:45:51 by popey)