Dns Dynamic

Test suite to check Dynamic DNS service. Dynamic DNS allows the router to keep a domain updated with the most recent IP address. It does this by periodically updating the domain. The domain to be updated, the ip address with which the domain is updated, the platform where the update is sent, and the update interval can all be defined in the configuration.

Test Dynamic DNS

Description

Test to check Dynamic DNS. A DDNS is configured for a specific interface and then the operational command is used to display relevant information.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.64/24
set service dns dynamic interface eth0 service teldat domain testteldatdns.ddns.net
set service dns dynamic interface eth0 service teldat login moctavian@teldat.com
set service dns dynamic interface eth0 service teldat password 'hSKb3hPCcgU5HMv'
set service dns dynamic interface eth0 service teldat type noip
set service dns dynamic interface eth0 update-frecuency 1

Step 2: Run command service dns dynamic show status interface eth0 at DUT0 and check if output matches the following regular expressions:

Interface:.*eth0
Host-name:.*testteldatdns.ddns.net
Status:.*noconnect
Show output
Interface:    eth0
IP address:
Host-name:    testteldatdns.ddns.net
Last update:  Mon Dec 02 20:28:01 2024
Status:       noconnect

Test Dynamic DNS via VRF

Description

Test to check Dynamic DNS through a VRF. A DDNS is configured for a specific interface which is located inside a vrf. The operational command is then used to display relevant information.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.64/24
set service dns dynamic interface eth0 service teldat domain testteldatdns.ddns.net
set service dns dynamic interface eth0 service teldat login moctavian@teldat.com
set service dns dynamic interface eth0 service teldat password 'hSKb3hPCcgU5HMv'
set service dns dynamic interface eth0 service teldat type noip
set service dns dynamic interface eth0 update-frecuency 1
set interfaces ethernet eth0 vrf 1
set system vrf 1 description test_vrf

Step 2: Run command service dns dynamic show status interface eth0 at DUT0 and check if output matches the following regular expressions:

Interface:.*eth0
Host-name:.*testteldatdns.ddns.net
Status:.*noconnect
Show output
Interface:    eth0
IP address:
Host-name:    testteldatdns.ddns.net
Last update:  Mon Dec 02 20:29:01 2024
Status:       noconnect