Difference between revisions of "DNS"
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | We offer [https://dynamic.lunanode.com/panel/dns high-performance DNS hosting] with load balancing, automatic failover, and geo-targeting. | |
− | + | The nameservers are: | |
− | + | * ns1.lunanode.net | |
+ | * ns2.lunanode.net | ||
+ | * ns3.lunanode.net | ||
− | + | Each user has one million free DNS queries per calendar month, assuming at least $3 credit is used on other services in that month. Additional queries are priced at $0.1 per 250K queries. Record storage is free. | |
− | + | == Basic Configuration == | |
− | + | To get started, add a zone from the [https://dynamic.lunanode.com/panel/dns DNS manager]. The name is your domain name or subdomain that has been delegated to our nameservers. The TTL is used for the SOA record. | |
− | + | Once the zone is added, you can select it from the manager to add and remove records. A minimal setup might look like this: | |
− | + | * Zone: example.com | |
+ | * Type: A, name: @, data: 1.2.3.4 | ||
+ | * Type: CNAME, name: www, data: example.com. (here, the dot at the end is important as it signifies that this is an FQDN) | ||
+ | * Type: MX, name: @, data: example.com., priority: 0 | ||
− | + | == Monitoring == | |
+ | |||
+ | You can [https://wiki.lunanode.com/index.php/Server_monitoring create a server monitoring check], and then associate that with a DNS record so that the record is disabled if the check goes offline. To set this, select the Advanced tab when you add or edit a record. | ||
+ | |||
+ | Disabling a check is useful primarily in two scenarios. | ||
+ | |||
+ | '''Scenario 1:''' you want to distribute traffic between several servers, and have set up round-robin DNS: | ||
+ | |||
+ | * Type: A, name: @, data: 1.1.1.2 | ||
+ | * Type: A, name: @, data: 1.1.1.3 | ||
+ | * Type: A, name: @, data: 1.1.1.4 | ||
+ | |||
+ | If a server goes offline, you don't want that server to be returned by the DNS server. Otherwise, you want all the records to be returned. In this case, set the weight to 0 for all records. | ||
+ | |||
+ | '''Scenario 2:''' you have a primary server and a backup server. The primary server should receive traffic, but if it fails, then traffic should failover to the backup server. Again, you have DNS records like this: | ||
+ | |||
+ | * Type: A, name: @, data: 1.1.1.2 | ||
+ | * Type: A, name: @, data: 1.1.1.3 | ||
+ | |||
+ | Set the weight to 1000 for the primary server, and 1 for the backup server. Since the primary record's weight is more than 100 times the weight of the other record, the other record will not be used at all. | ||
+ | |||
+ | == Geo-targeting == | ||
+ | |||
+ | The DNS server can be configured to select records based on the user's location. The user's location is determined based on IP geo-location data from MaxMind. | ||
+ | |||
+ | There are two ways to configure. | ||
+ | |||
+ | * Latitude/Longitude: enter the latitude/longitude of the server. The two records closest to the user will be returned. | ||
+ | * Region-based: enter settings for the hierarchical structure. Note that you only need to configure one grouping, any less specific groupings can be determined automatically (e.g. if country is ca and continent is auto, then continent will be automatically set to north-america). The record(s) in the most specific grouping matching the client's location will be returned; by most specific, we mean the most specific one that has a non-zero number of records. |
Latest revision as of 07:25, 6 July 2016
We offer high-performance DNS hosting with load balancing, automatic failover, and geo-targeting.
The nameservers are:
- ns1.lunanode.net
- ns2.lunanode.net
- ns3.lunanode.net
Each user has one million free DNS queries per calendar month, assuming at least $3 credit is used on other services in that month. Additional queries are priced at $0.1 per 250K queries. Record storage is free.
Basic Configuration
To get started, add a zone from the DNS manager. The name is your domain name or subdomain that has been delegated to our nameservers. The TTL is used for the SOA record.
Once the zone is added, you can select it from the manager to add and remove records. A minimal setup might look like this:
- Zone: example.com
- Type: A, name: @, data: 1.2.3.4
- Type: CNAME, name: www, data: example.com. (here, the dot at the end is important as it signifies that this is an FQDN)
- Type: MX, name: @, data: example.com., priority: 0
Monitoring
You can create a server monitoring check, and then associate that with a DNS record so that the record is disabled if the check goes offline. To set this, select the Advanced tab when you add or edit a record.
Disabling a check is useful primarily in two scenarios.
Scenario 1: you want to distribute traffic between several servers, and have set up round-robin DNS:
- Type: A, name: @, data: 1.1.1.2
- Type: A, name: @, data: 1.1.1.3
- Type: A, name: @, data: 1.1.1.4
If a server goes offline, you don't want that server to be returned by the DNS server. Otherwise, you want all the records to be returned. In this case, set the weight to 0 for all records.
Scenario 2: you have a primary server and a backup server. The primary server should receive traffic, but if it fails, then traffic should failover to the backup server. Again, you have DNS records like this:
- Type: A, name: @, data: 1.1.1.2
- Type: A, name: @, data: 1.1.1.3
Set the weight to 1000 for the primary server, and 1 for the backup server. Since the primary record's weight is more than 100 times the weight of the other record, the other record will not be used at all.
Geo-targeting
The DNS server can be configured to select records based on the user's location. The user's location is determined based on IP geo-location data from MaxMind.
There are two ways to configure.
- Latitude/Longitude: enter the latitude/longitude of the server. The two records closest to the user will be returned.
- Region-based: enter settings for the hierarchical structure. Note that you only need to configure one grouping, any less specific groupings can be determined automatically (e.g. if country is ca and continent is auto, then continent will be automatically set to north-america). The record(s) in the most specific grouping matching the client's location will be returned; by most specific, we mean the most specific one that has a non-zero number of records.