Noip IPv6 DDNS Configuration: Difference between revisions

From Teltonika Networks Wiki
Line 45: Line 45:
[[File:AAAAverification.png|1200px|center]]
[[File:AAAAverification.png|1200px|center]]


'''Note:''' For further verifications, check the DNS records for your given domain name by introducing at your laptop command prompt or shell terminal the '''nslookup''' command as shown below:
'''Note:''' For further verifications, check the DNS records of your given domain name by introducing at your laptop command prompt or shell terminal the '''nslookup''' command as shown below:
<br> </br>
<br> </br>
[[File:Nslookup2.png|500px|center]]
[[File:Nslookup2.png|500px|center]]

Revision as of 21:45, 17 May 2022

Summary

This article will guide you through configuring an IPv6 DDNS AAAA record at www.noip.com and activating an IPv6 DDNS service on RUT routers.

Prerequisite

To use the IPv6 DDNS service, you must have a Static or Dynamic IPv6 Global Unicast Address (GUA) configured in your router WAN interface. Otherwise, your router will not be able to update the IPv6 DDNS record. Also, you need to have IPv6 connectivity from your laptop to reach your router IPv6 address hostname. You can click on the following link to get more information about IPv6 Addressing and here to test your ipv6 connectivity from your laptop.

IPv6 Global Unicast Addresses

Prefix Designation and explanation
2000::/3 They are globally routable and reachable IPv6 addresses on the Internet. Therefore, in the IPv6 network environment, they are considered the equivalent of public IPv4 addresses.

Step 1: noip.com Configuration

First, access the website by entering www.noip.com/login in your internet web browser's URL bar.

Login Screen


Sign in to the noip.com platform by using your credentials. If you don't have a registered account, you need to create one. You can do that by clicking on the Register button.

Create a Hostname


After successfully logging into your account, in the control panel dashboard go to the "quick add" section and select More Records



A new window will prompt on your web browser; fill out the information according to your hostname and domain of preference, select AAAA as type of register, introduce the loopback address for each Internet protocol accordingly, and finally click on create hostname.

Hostname Verification


Check the record you just have created shows an Active button below the hostname. Don't worry about the warning signal displayed in the Last Update field; it's just to inform is not detecting any dynamic updates yet.

Note: For further verifications, check the DNS records of your given domain name by introducing at your laptop command prompt or shell terminal the nslookup command as shown below:

Step 2: Router configuration

CLI Configuration


You will need to configure a script to get your current WAN IPv6 address and send it to noip.com servers. To accomplish this task, login into your router Command-line interface, create a directory to store your scripts, and add the following script to your router configuration:

Script: getwanip.sh

#!/bin/sh

./lib/functions/network.sh

network_flush_cache

network_find_wan6 NET_IF6

network_get_ipaddr6 NET_ADDR6 "${NET_IF6}"

echo "${NET_ADDR6}"

Suggested PATH: /root/scripts/getwanip.sh

Give execution privileges to the script by executing at the Command-line interface: chmod +x /root/scripts/getwanip.sh

WebUI Configuration


Now open your RUT homepage and download the DDNS package if it hasn't been installed yet. Next, open the DDNS configuration panel by clicking Services → Dynamic DNS

DDNS Configuration Name


Edit the current MYDDNS instance by selecting the pencil icon or create a new DDNS instance by typing a new DDNS NAME and clicking on the ADD button. For the simplicity purposes of this guide, we are going to edit the current instance named MYDDNS.

Configuration Settings


A new window will prompt on your WebUI, fill out the fields according to the information bellow:

  • Switch the Enable toggle to the on position.
  • Switch the Use HTTP Secure toggle to the on position. (Optional)
  • At Lookup Hostname and Domainintroduce the no-ip.com hostname previously created. (They all must match)
  • Choose no-ip.com as DDNS Service Provider
  • Type in your credentials used to create your no-ip.com account.
  • Select Script as the Ip address Source
  • At Event Network, select the interface where the ipv6 address is enabled.
  • Introduce your Script PATH.
  • Choose the update interval of your preference and to finish, click on SAVE & APPLY to save and load your configuration.


Step 3: Try Your DDNS Service

Status


Wait up to 5 minutes from the time you saved the changes. In the Status column, you can see when the last time the DDNS was updated. After updating, it should display the 127.0.0.1 IPv4 address.

By doing a DNS lookup, check if the ipv6 address of your hostname record was updated.


Also, you can check your no-ip.com hostname current ipv6 address by clicking on the cogwheel that appears at the right of your hostname record.


A new window will prompt on your web browser, and will display the updated IPv6 address.

Connect To Your Host


Recall you must have ipv6 connectivity on your laptop to reach your router login page. You can test your IPv6 connectivity by clicking here. Also, your router must be enable to allow Remote HTTP(S) Access.

Try to access the host by entering your hostname in your internet browser's URL bar.

Note: If you have a VPN service enabled on your laptop, you may not reach your router WebUI by just typing the domain name on your web browser; instead, you should enter the full ipv6 address between brackets e.g.: https://[2001:AAAA:BBBB:CCCC::0001].

Logs Verification

If you have followed the steps above, you should have correctly setup your DDNS service. However, for debugging purpuses, you can verify the DDNS generated logs by executing in the Command-Line interface the command: cat /tmp/logs/ddns/{yourddnsinstance.log} . This command will show you the current ddns configuration and the messages beetween noip.com servers and your router everytime it sends its updates. In the picture below, you will find a log message response from noip.com server at the moment of successfully updating the new IPv6 address:



See Also

External links