You are browsing a read-only backup copy of Wikitech. The primary site can be found at

Portal:Cloud VPS/Admin/DNS

From Wikitech-static
< Portal:Cloud VPS‎ | Admin
Revision as of 20:25, 29 November 2017 by imported>Quiddity (pointer to other page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
See also: Portal:Cloud VPS/Infrastructure#dns

private DNS

Within Cloud VPS, each instance has a name like <instancename>.<projectname>.eqiad.wmflabs. For historical reasons we also create <instancename>.eqiad.wmflabs DNS entries for each instance. This legacy behavior may be discontinued in the future.

public DNS

Public DNS (e.g. is currently handled by labs-ns0 and labs-ns1 running pdns with ldap. Soon this will move to a Horizon/Designate system using the new pdns server labs-ns2.

ldap dns

Cloud VPS DNS is PowerDNS, backed by ldap served by opendj.

When a new instance is created, OpenStackManager automatically makes an entry for the instance, like this:

   # i-000007b7.eqiad.wmflabs, hosts,
   dn: dc=i-000007b7.eqiad.wmflabs,ou=hosts,dc=wikimedia,dc=org
   objectClass: domainrelatedobject
   objectClass: dnsdomain
   objectClass: puppetclient
   objectClass: domain
   objectClass: dcobject
   objectClass: top
   puppetVar: realm=labs
   puppetVar: instanceproject=openstack
   puppetVar: instancename=labs-bootstrapvz-jessie
   puppetClass: base
   puppetClass: role::labs::instance
   puppetClass: labs_bootstrapvz
   l: eqiad
   associatedDomain: i-000007b7.eqiad.wmflabs
   associatedDomain: labs-bootstrapvz-jessie.eqiad.wmflabs
   dc: i-000007b7.eqiad.wmflabs

Note that the private DNS record in ldap is generally unused, the result of an aborted earlier attempt to move away from dnsmasq.

When floating IPs are allocated and assigned, OpenStackManager creates something like this:

   #, hosts,
   dn: dc=,ou=hosts,dc=wikimedia,dc=org
   objectClass: domainrelatedobject
   objectClass: dnsdomain
   objectClass: domain
   objectClass: dcobject
   objectClass: top

Restarting PowerDNS

PowerDNS copes very poorly with interruptions in ldap service. Anytime opendj restarts, pdns needs to be restarted as well. So, to refresh either service (ldap or dns):

   $ sudo service opendj restart (on nembus and/or neptunium)
   $ sudo service pdns restart (on virt1000 and labcontrol2001)

DHCP and internal DNS

Hostnames (such as deployment-mediawiki04.deployment-prep.eqiad.wmflabs) are resolved by dnsmasq, which also assigns them IP addresses (via DHCP). This is managed completely by nova network on labnet1001. To make any changes to the dnsmasq setup take effect,

  1. Kill dnsmasq manually on labnet1001 (there's no upstart script since nova-network doesn't apparently like dnsmasq's upstart being called. Sounds very possessive).
  2. Restart nova-network (service nova-network restart)
  3. Hope.