@@ -42,33 +42,63 @@ Just add these Options after the command like `php update.php --quiet`
42
42
| ------------- | -----------------------------------------------------:|
43
43
| --quiet | The script won't output normal messages, only errors |
44
44
45
- ## Example output
45
+ ## Example outputs
46
46
```
47
47
$ php update.php
48
- [2018/06/10 01:16:28 +0200][NOTICE] =============================================
49
- [2018/06/10 01:16:28 +0200][NOTICE] Running dynamic DNS client for netcup 1.0
50
- [2018/06/10 01:16:28 +0200][NOTICE] This script is not affiliated with netcup.
51
- [2018/06/10 01:16:28 +0200][NOTICE] =============================================
52
-
53
- [2018/06/10 01:16:28 +0200][NOTICE] Logged in successfully!
54
- [2018/06/10 01:16:29 +0200][NOTICE] Successfully received Domain info.
55
- [2018/06/10 01:16:29 +0200][NOTICE] Successfully received DNS record data.
56
- [2018/06/10 01:16:30 +0200][NOTICE] IP has changed. Before: 1.2.3.4; Now: 5.6.7.8
57
- [2018/06/10 01:16:30 +0200][NOTICE] IP address updated successfully!
58
- [2018/06/10 01:16:30 +0200][NOTICE] Logged out successfully!
48
+ [2018/06/10 05:03:40 +0200][NOTICE] =============================================
49
+ [2018/06/10 05:03:40 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
50
+ [2018/06/10 05:03:40 +0200][NOTICE] This script is not affiliated with netcup.
51
+ [2018/06/10 05:03:40 +0200][NOTICE] =============================================
52
+
53
+ [2018/06/10 05:03:40 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
54
+
55
+ [2018/06/10 05:03:41 +0200][NOTICE] Logged in successfully!
56
+ [2018/06/10 05:03:41 +0200][NOTICE] Successfully received Domain info.
57
+ [2018/06/10 05:03:41 +0200][NOTICE] Lowered TTL to 300 seconds successfully.
58
+ [2018/06/10 05:03:42 +0200][NOTICE] Successfully received DNS record data.
59
+ [2018/06/10 05:03:42 +0200][NOTICE] A record for host @ doesn't exist, creating necessary DNS record.
60
+ [2018/06/10 05:03:42 +0200][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
61
+ [2018/06/10 05:03:44 +0200][NOTICE] IPv4 address updated successfully!
62
+ [2018/06/10 05:03:44 +0200][NOTICE] AAAA record for host @ doesn't exist, creating necessary DNS record.
63
+ [2018/06/10 05:03:44 +0200][NOTICE] IPv6 address has changed. Before: newly created Record; Now: 2001:db8:85a3:0:0:8a2e:370:7334
64
+ [2018/06/10 05:03:46 +0200][NOTICE] IPv6 address updated successfully!
65
+ [2018/06/10 05:03:46 +0200][NOTICE] Logged out successfully!
66
+
59
67
```
60
68
```
61
69
$ php update.php
62
- [2018/06/10 01:17:11 +0200][NOTICE] =============================================
63
- [2018/06/10 01:17:11 +0200][NOTICE] Running dynamic DNS client for netcup 1.0
64
- [2018/06/10 01:17:11 +0200][NOTICE] This script is not affiliated with netcup.
65
- [2018/06/10 01:17:11 +0200][NOTICE] =============================================
66
-
67
- [2018/06/10 01:17:12 +0200][NOTICE] Logged in successfully!
68
- [2018/06/10 01:17:12 +0200][NOTICE] Successfully received Domain info.
69
- [2018/06/10 01:17:12 +0200][NOTICE] Successfully received DNS record data.
70
- [2018/06/10 01:17:13 +0200][NOTICE] IP hasn't changed. Current IP: 5.6.7.8
71
- [2018/06/10 01:17:13 +0200][NOTICE] Logged out successfully!
70
+ $ php update.php
71
+ [2018/06/10 05:03:50 +0200][NOTICE] =============================================
72
+ [2018/06/10 05:03:50 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
73
+ [2018/06/10 05:03:50 +0200][NOTICE] This script is not affiliated with netcup.
74
+ [2018/06/10 05:03:50 +0200][NOTICE] =============================================
75
+
76
+ [2018/06/10 05:03:50 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
77
+
78
+ [2018/06/10 05:03:50 +0200][NOTICE] Logged in successfully!
79
+ [2018/06/10 05:03:51 +0200][NOTICE] Successfully received Domain info.
80
+ [2018/06/10 05:03:51 +0200][NOTICE] Successfully received DNS record data.
81
+ [2018/06/10 05:03:52 +0200][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
82
+ [2018/06/10 05:03:52 +0200][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
83
+ [2018/06/10 05:03:52 +0200][NOTICE] Logged out successfully!
84
+ ```
85
+ ```
86
+ $ php update.php
87
+ [2018/06/10 05:08:22 +0200][NOTICE] =============================================
88
+ [2018/06/10 05:08:22 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
89
+ [2018/06/10 05:08:22 +0200][NOTICE] This script is not affiliated with netcup.
90
+ [2018/06/10 05:08:22 +0200][NOTICE] =============================================
91
+
92
+ [2018/06/10 05:08:22 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
93
+
94
+ [2018/06/10 05:08:22 +0200][NOTICE] Logged in successfully!
95
+ [2018/06/10 05:08:22 +0200][NOTICE] Successfully received Domain info.
96
+ [2018/06/10 05:08:23 +0200][NOTICE] Successfully received DNS record data.
97
+ [2018/06/10 05:08:23 +0200][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
98
+ [2018/06/10 05:08:24 +0200][NOTICE] IPv4 address updated successfully!
99
+ [2018/06/10 05:08:24 +0200][NOTICE] IPv6 address has changed. Before: 2001:db8:85a3:0:0:8a2e:370:7334; Now: 2001:db8:85a3:0:0:8a2e:370:5123
100
+ [2018/06/10 05:08:24 +0200][NOTICE] IPv6 address updated successfully!
101
+ [2018/06/10 05:08:25 +0200][NOTICE] Logged out successfully!
72
102
```
73
103
74
104
If you have ideas on how to improve this script, please don't hesitate to create an issue or provide me with a pull request. Thank you!
0 commit comments