DNS Settings for WACAN


#1

There’s a quite a few different DNS zones you’ll need to configure to get the most out of your WACAN connection. This post describes those settings, as well as a few configuration examples depending on what DNS resolver you’re using.

WACAN Name servers

WACAN has deployed our servers using Anycast BGP which means that we can deploy many redundant DNS servers throughout the network without requiring any additional configuration from clients.

The following zones are (currently) in use on the WACAN servers:

  • .can
  • wa.can
  • 48.10.in-addr.arpa through to 50.10.in-addr.arpa

To resolve the above domains, you need to add an entry to your DNS forwarders pointing to both 10.48.192.254 and 10.48.48.1

Other Zones

In order to access content on our affiliate networks, the following zones are also required:

###WAFreenet:

  • .wafn
  • 60.10.in-addr.arpa

These zones are hosted by 10.60.70.2 and 10.60.196.195.

###Airstream (SA)

  • wan
  • 96.10.in-addr.arpa through to 127.10.in-addr.arpa

These zones are hosted by 10.96.0.1.

Resolver configuration

###Powerdns
To configure powerdns, edit your /etc/powerdns/recursor.conf file and add the following:

forward-zones-file=/etc/powerdns/forward.zones

Then in /etc/powerdns/forward.zones put the following:

#WACAN
can=10.48.192.254, 10.48.48.1
48.10.in-addr.arpa=10.48.192.254, 10.48.48.1
49.10.in-addr.arpa=10.48.192.254, 10.48.48.1
50.10.in-addr.arpa=10.48.192.254, 10.48.48.1

#WA Freenet
wafn=10.60.70.2, 10.60.196.195
60.10.in-addr.arpa=10.60.70.2, 10.60.196.195

#Airstream
wan=10.96.0.1
96.10.in-addr.arpa=10.96.0.1
97.10.in-addr.arpa=10.96.0.1
98.10.in-addr.arpa=10.96.0.1
99.10.in-addr.arpa=10.96.0.1
100.10.in-addr.arpa=10.96.0.1
101.10.in-addr.arpa=10.96.0.1
102.10.in-addr.arpa=10.96.0.1
103.10.in-addr.arpa=10.96.0.1
104.10.in-addr.arpa=10.96.0.1
105.10.in-addr.arpa=10.96.0.1
106.10.in-addr.arpa=10.96.0.1
107.10.in-addr.arpa=10.96.0.1
108.10.in-addr.arpa=10.96.0.1
109.10.in-addr.arpa=10.96.0.1
110.10.in-addr.arpa=10.96.0.1
111.10.in-addr.arpa=10.96.0.1
112.10.in-addr.arpa=10.96.0.1
113.10.in-addr.arpa=10.96.0.1
114.10.in-addr.arpa=10.96.0.1
115.10.in-addr.arpa=10.96.0.1
116.10.in-addr.arpa=10.96.0.1
117.10.in-addr.arpa=10.96.0.1
118.10.in-addr.arpa=10.96.0.1
119.10.in-addr.arpa=10.96.0.1
120.10.in-addr.arpa=10.96.0.1
121.10.in-addr.arpa=10.96.0.1
122.10.in-addr.arpa=10.96.0.1
123.10.in-addr.arpa=10.96.0.1
124.10.in-addr.arpa=10.96.0.1
125.10.in-addr.arpa=10.96.0.1
126.10.in-addr.arpa=10.96.0.1
127.10.in-addr.arpa=10.96.0.1

Then restart your powerdns recusor:
# /etc/init.d/pdns-recursor restart

Edgerouter (EdgeOS) or Vyatta

Enter configuration mode:

# configure
[edit]

If you have internet access, you can do the following:

merge http://www.wacan.asn.au/files/configuration/vyatta-dns.cfg

Or, enter the following configuration lines:

set service dns forwarding options server=/can/10.48.192.254
set service dns forwarding options server=/can/10.48.48.1
set service dns forwarding options server=/48.10.in-addr.arpa/10.48.192.254
set service dns forwarding options server=/48.10.in-addr.arpa/10.48.48.1
set service dns forwarding options server=/49.10.in-addr.arpa/10.48.192.254
set service dns forwarding options server=/49.10.in-addr.arpa/10.48.48.1
set service dns forwarding options server=/50.10.in-addr.arpa/10.48.192.254
set service dns forwarding options server=/50.10.in-addr.arpa/10.48.48.1
set service dns forwarding options server=/wafn/10.60.70.2
set service dns forwarding options server=/wafn/10.60.196.195
set service dns forwarding options server=/60.10.in-addr.arpa/10.60.70.2
set service dns forwarding options server=/60.10.in-addr.arpa/10.60.196.195
set service dns forwarding options server=/wan/10.96.0.1
set service dns forwarding options server=/96.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/97.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/98.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/99.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/100.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/101.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/102.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/103.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/104.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/105.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/106.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/107.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/108.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/109.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/110.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/111.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/112.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/113.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/114.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/115.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/116.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/117.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/118.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/119.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/120.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/121.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/122.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/123.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/124.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/125.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/126.10.in-addr.arpa/10.96.0.1
set service dns forwarding options server=/127.10.in-addr.arpa/10.96.0.1

Configure the interfaces you want the DNS resolvers to listen on:

set service dns forwarding listen-on eth0 # Add any additional interfaces you need, here.

commit then save your changes (Shoutout to Daniel Watson!)

commit
save

BIND

If you’re one of those people who still uses BIND (shame!)… Insert the following in your zone file configuration file:

# WACAN
zone "can" {
type forward;
forwarders { 10.48.192.254; 10.48.48.1; };
};
zone "48.10.in-addr.arpa" {
type forward;
forwarders { 10.48.192.254; 10.48.48.1; };
};
zone "50.10.in-addr.arpa" {
type forward;
forwarders { 10.48.192.254; 10.48.48.1; };
};

# WAFreenet
zone "wafn" {
type forward;
forwarders { 10.60.70.2; 10.60.196.195; };
};

zone "60.10.in-addr.arpa" {
type forward;
forwarders { 10.60.70.2; 10.60.196.195; };
};

# Airstream
zone "wan" {
type forward;
forwarders {10.96.0.1; };
};

zone "96.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "97.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "98.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "99.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "100.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "101.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "102.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "103.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "104.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "105.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "106.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "107.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "108.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "109.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "110.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "111.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "112.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "113.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "114.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "115.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "116.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "117.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "118.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "119.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "120.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "121.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "122.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "123.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "124.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "125.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "126.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

zone "127.10.in-addr.arpa" {
type forward;
forwarders {10.96.0.1; };
};

Then restart your BIND/named instance.