02-22-2016 06:26 AM - edited 03-05-2019 03:23 AM
I have configured Dyn DNS on my Cisco 1921 router (15.3(3)M3) but it is not updating the host-name. I used debug command too to see the DDNS updates but no update or information shown in response to debug ip ddns update command. Can anyone please suggest what is missing in following configuration?
BR-RTR#show runn
Building configuration...
Current configuration : 8336 bytes
!
! Last configuration change at 10:25:57 UTC Tue Feb 9 2016 by pilot1
version 15.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname BR-RTR
!
boot-start-marker
boot-end-marker
!
!
logging buffered 51200 warnings
enable secret 5 $1$PGMm$.ARlNw3FeDyBc0033Fklf1
!
no aaa new-model
!
!
!
!
ip dhcp excluded-address 192.168.206.1 192.168.206.100
ip dhcp excluded-address 192.168.206.200 192.168.206.254
!
ip dhcp pool BR-RTR
network 192.168.206.0 255.255.255.0
default-router 192.168.206.1
dns-server 8.8.8.8 8.8.4.4
!
!
!
ip domain name hq.com
ip name-server 8.8.8.8
ip name-server 8.8.4.4
ip ddns update method MYDYN
HTTP
add http://EmailID:Password@members.dyndns.org/nic/update?system=dyndns&hostname=mydomain.dyndns.org&myip=MYWANIP
add http://EmailID:Password@members.dyndns.org/nic/update?system=dyndns&hostname=mydomain.dyndns.org&myip=MYWANIP
interval maximum 2 0 0 0
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
crypto pki trustpoint TP-self-signed-1724857321
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1724857321
revocation-check none
rsakeypair TP-self-signed-1724857321
!
!
crypto pki certificate chain TP-self-signed-1724857321
certificate self-signed 01
3082022B 30820194 A0030201 02020101 300D0609 2A864886 F70D0101 05050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 31373234 38353733 3231301E 170D3134 31313134 31393539
31315A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 37323438
35373332 3130819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100BCEA D2FEE707 C4B0C4C6 6C604A08 82F79EB8 D470A9BA E5C3DD0B F0D6A335
4C33ECDA C6C8C0A7 A8F1C66B 8C07E90F C11D9EAC 6C062044 B19F5056 5BA0ACC5
DE8968FB 6847E723 81C14BBB 65D7B8AD 08988C33 19D37355 4ABD997E 86D635ED
61C04F4E 77407E1B 68C98D28 47FF95F6 CF2E5052 6E1D1846 F0A264FE 45EC384F
C7050203 010001A3 53305130 0F060355 1D130101 FF040530 030101FF 301F0603
551D2304 18301680 14C44FAA 91D904CA B7649917 DD82FF4F 252AA380 35301D06
03551D0E 04160414 C44FAA91 D904CAB7 649917DD 82FF4F25 2AA38035 300D0609
2A864886 F70D0101 05050003 818100AF C998BE34 B2279F5A 60A7349B 80F2E2CC
31D56281 92FD8E56 C6BBB14F 7BCD0479 6BFE91BC 23315B32 A2057AFD 44E7E490
7CB9E67C 4650B4E5 B51EE0EC 85199D11 C6D52B75 8095F719 D373FC43 EF052098
741247D6 00CF278E 70B1EC23 F4B71E7E 81383E20 DD350EB5 5B9F03A7 E91DEBB3
220AA6FD 922ED672 92E9D359 9F53B9
quit
license udi pid CISCO1921/K9 sn abcdefghij
!
!
username admin privilege 15 secret 5 $secret/
!
redundancy
!
!
!
!
!
!
!
crypto isakmp policy 10
encr 3des
hash md5
authentication pre-share
group 2
crypto isakmp key cisco123 address HO_WAN_IP
crypto isakmp key cisco123 address JAD-WAN-IP
crypto isakmp key cisco123 hostname hooffice.dyndns.org
!
!
crypto ipsec transform-set VPN esp-3des esp-md5-hmac
mode tunnel
!
crypto ipsec profile HO
set security-association lifetime days 7
!
!
!
crypto map CMAP 10 ipsec-isakmp
set peer HO_WAN_IP
set transform-set VPN
match address JADC
reverse-route
crypto map CMAP 20 ipsec-isakmp
set peer JAD-WAN-IP
set transform-set VPN
match address HO
reverse-route
crypto map CMAP 30 ipsec-isakmp
set peer hooffice.dyndns.org dynamic
set security-association lifetime seconds 86400
set transform-set VPN
match address HO
reverse-route
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description ***WAN-INTERFACE***
no ip address
ip tcp adjust-mss 1412
duplex auto
speed auto
pppoe enable group global
pppoe-client dial-pool-number 1
!
interface GigabitEthernet0/1
description ***LAN-INTERFACE***
ip address 192.168.206.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
ip tcp adjust-mss 1412
duplex auto
speed auto
!
interface Dialer1
ip ddns update hostname mydomain.dyndns.org
ip ddns update MYDYN host mydomain.dyndns.org
ip address negotiated
ip mtu 1452
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication chap pap callin
ppp chap hostname usename
ppp chap password 0 pass
ppp pap sent-username username password 0 pass
ppp ipcp dns request
crypto map CMAP
!
ip forward-protocol nd
!
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
!
ip dns server
ip nat inside source route-map NONAT interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
ip route 192.168.6.0 255.255.255.0 JAD-WAN-IP
!
ip access-list extended HO
permit ip 192.168.206.0 0.0.0.255 192.168.6.0 0.0.0.255
permit ip 192.168.206.0 0.0.0.255 192.168.5.0 0.0.0.255
permit ip 192.168.206.0 0.0.0.255 172.16.1.0 0.0.0.255
ip access-list extended JADC
permit ip 192.168.206.0 0.0.0.255 10.1.2.0 0.0.0.255
permit ip 192.168.206.0 0.0.0.255 10.1.3.0 0.0.0.255
permit ip 192.168.206.0 0.0.0.255 10.1.4.0 0.0.0.255
ip access-list extended NONAT
deny ip 192.168.206.0 0.0.0.255 10.1.2.0 0.0.0.255
deny ip 192.168.206.0 0.0.0.255 10.1.3.0 0.0.0.255
deny ip 192.168.206.0 0.0.0.255 10.1.4.0 0.0.0.255
deny ip 192.168.206.0 0.0.0.255 192.168.6.0 0.0.0.255
deny ip 192.168.206.0 0.0.0.255 192.168.5.0 0.0.0.255
deny ip 192.168.206.0 0.0.0.255 172.16.1.0 0.0.0.255
deny ip 192.168.206.0 0.0.0.255 192.168.0.0 0.0.0.255
permit ip 192.168.206.0 0.0.0.255 any
ip access-list extended HO
permit ip 192.168.206.0 0.0.0.255 192.168.0.0 0.0.0.255
!
ip sla auto discovery
ip sla 3
icmp-echo 192.168.0.254 source-ip 192.168.206.1
ip sla schedule 3 life forever start-time now
ip sla 10
icmp-echo 172.16.1.254 source-ip 192.168.206.1
ip sla schedule 10 life forever start-time now
dialer-list 1 protocol ip permit
!
route-map NONAT permit 10
match ip address NONAT
!
!
!
control-plane
!
!
!
line con 0
login local
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
privilege level 15
login local
transport input telnet ssh
line vty 5 15
privilege level 15
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
!
end
03-13-2016 05:15 PM
add http://EmailID:Password@members.dyndns.org/nic/update?system=dyndns&hostname=mydomain.dyndns.org&myip=MYWANIP
If your EmailID includes the @character you need to either enclose it in brackets [user@example.com]:[Password]@members... OR replace the @ with %40 user%40example.com:Password@members... Either will work.
MYWANIP should also probably be <a> to make it truly dynamic. This variable will be replaced with the interface IP when it is run. Also, you can make the statement read hostname=<h> and that'll be replaced as well.
I use OpenDNS so I can't tell you if the rest is correct. I know that I have to use https which comes with another set of challenges (I have to import a cert). Provided the URL you are using is correct this should work for you.
01-05-2018 05:19 AM
Hello,
i have the same issue. there is my config:
ip ddns update method dyndns HTTP add http://username:password@members.dyndns.org/nic/updatesystem=dyndns&hostname=myname.dyndns.org&myip=<a> interval maximum 1 0 0 0 ! interface Dialer0 description VDSL TELEKOM ip ddns update hostname myname.dyndns.org ip ddns update dyndns
show ip ddns update Dynamic DNS Update on Dialer0: Update Method Name Update Destination dyndns not available
Debug shows nothing. What i did wrong?
Cisco ISR 886VA, Version 15.3(3)M6, RELEASE SOFTWARE (fc1)
01-05-2018 07:02 AM
Hello,
it looks like you are missing the '?' question mark in the URL:
hostname Router_DDNS
!
ip domain name dyndns.org
ip name-server 8.8.8.8
!
ip ddns update method dyndns
HTTP
add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=myname.dyndns.org&myip=<a>
interval maximum 1 0 0 0
!
interface Dialer0
description VDSL TELEKOM
ip ddns update hostname myname.dyndns.org
ip ddns update dyndns
Press ctrl + V, then type the '?'
01-05-2018 07:13 AM
wow, i really don't have "?" because I can't type it:
gate1(DDNS-HTTP)#add http://username:password@members.dyndns.org/nic/update? WORD
IOS behaves like I ask for the next command...
01-05-2018 07:15 AM
Hello,
press Ctrl + V, you can then enter the ?
01-05-2018 07:20 AM - edited 01-05-2018 07:21 AM
done. but it still doesn't work:
ip ddns update method dyndns HTTP add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=myname.dyndns.org&myip=<a> interval maximum 1 0 0 0 ! show ip ddns update Dynamic DNS Update on Dialer0: Update Method Name Update Destination dyndns not available
01-05-2018 07:33 AM
The syntax still doesn't look right. Try the below:
add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
01-05-2018 07:40 AM
ip ddns update method dyndns HTTP add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a> interval maximum 1 0 0 0 !
interface Dialer0
description VDSL TELEKOM
ip ddns update hostname myname.dyndns.org
ip ddns update dyndns
ip address negotiated
no ip redirects
no ip proxy-arp
ip mtu 1492
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
dialer-group 1
no keepalive
ppp authentication pap callin
ppp pap sent-username ***********************@t-online.de password 7 *********************
ppp ipcp dns request
ppp ipcp mask request
ppp ipcp route default
no cdp enable
show ip ddns update Dynamic DNS Update on Dialer0: Update Method Name Update Destination dyndns not available
the Cisco's hostname is not the same as the registered name with DynDNS.ORG.
01-05-2018 07:43 AM
Hello,
rename your router to the name you registered with DynDns.
01-05-2018 08:14 AM
ip ddns update method dyndns
HTTP
add http://user:password@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a>
interval maximum 1 0 0 0
!
is it now the same as before?
nothing was changed.
01-05-2018 07:48 AM
done, no changes.
01-05-2018 08:06 AM
Odd...
an you post the full configuration of the router ?
01-05-2018 08:20 AM
Hello,
I meant the full output of 'show run'...
01-08-2018 12:56 AM
Building configuration... Current configuration : 3633 bytes ! ! Last configuration change at 17:13:35 CET Fri Jan 5 2018 by user1 ! NVRAM config last updated at 17:13:36 CET Fri Jan 5 2018 by user1 ! NVRAM config last updated at 17:13:36 CET Fri Jan 5 2018 by user1 version 15.3 service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname myname.dyndns.org ! boot-start-marker boot-end-marker ! aqm-register-fnf ! enable secret 5 password3 ! aaa new-model ! aaa session-id common clock timezone CET 1 0 ! ip domain name my.ad.domain ip ddns update method dyndns HTTP add http://username:password@members.dyndns.org/nic/update?system=dyndns&hostname=<h>&myip=<a> interval maximum 1 0 0 0 ! ip cef no ipv6 cef ! multilink bundle-name authenticated ! license udi pid C886VA-K9 sn FCZ2044B08C ! username user1 privilege 15 secret 5 password1 username user2 privilege 15 secret 5 password2 ! controller VDSL 0 ! interface ATM0 no ip address shutdown no atm ilmi-keepalive ! interface ATM0.1 point-to-point pvc 1/32 pppoe-client dial-pool-number 1 ! ! interface BRI0 no ip address encapsulation hdlc shutdown isdn termination multidrop ! interface Ethernet0 no ip address ! interface Ethernet0.7 description VDSL Internet Verbindung - VLAN 7 tagged encapsulation dot1Q 7 pppoe enable group global pppoe-client dial-pool-number 1 ! interface FastEthernet0 no ip address ! interface FastEthernet1 no ip address ! interface FastEthernet2 no ip address ! interface FastEthernet3 description LAN no ip address duplex full ! interface Vlan1 description LAN ip address 10.254.1.1 255.255.255.0 ip flow ingress ip nat inside ip virtual-reassembly in ! interface Dialer0 description VDSL TELEKOM ip ddns update hostname myname.dyndns.org ip ddns update dyndns ip address negotiated no ip redirects no ip proxy-arp ip mtu 1492 ip nat outside ip virtual-reassembly in encapsulation ppp dialer pool 1 dialer-group 1 no keepalive ppp authentication pap callin ppp pap sent-username XXXXXXXXXXXXXXXXXXXXXXXXXXX@t-online.de password 7 ---------------- ppp ipcp dns request ppp ipcp mask request ppp ipcp route default no cdp enable ! ip forward-protocol nd no ip http server no ip http secure-server ! ip flow-export version 9 ip flow-top-talkers top 10 sort-by bytes ! ip nat inside source list 101 interface Dialer0 overload ! access-list 22 permit 10.254.1.0 0.0.0.255 access-list 101 permit ip 192.168.1.0 0.0.0.255 any access-list 101 permit ip 10.254.1.0 0.0.0.255 any ! control-plane ! mgcp behavior rsip-range tgcp-only mgcp behavior comedia-role none mgcp behavior comedia-check-media-src disable mgcp behavior comedia-sdp-force disable ! mgcp profile default ! line con 0 password 7 ------------------------ no modem enable line aux 0 line vty 0 4 access-class 22 in exec-timeout 30 0 password 7 ------------------------ logging synchronous transport input ssh line vty 5 189 exec-timeout 30 0 password 7 ------------------------ logging synchronous transport input ssh ! scheduler allocate 20000 1000 ntp server 10.254.1.9 ! end
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide