Skip to content

Commit 33da9da

Browse files
committed
Bumped version to 2.0 and updated README with new example outputs
1 parent 3895318 commit 33da9da

File tree

2 files changed

+53
-23
lines changed

2 files changed

+53
-23
lines changed

README.md

Lines changed: 52 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,63 @@ Just add these Options after the command like `php update.php --quiet`
4242
| ------------- |-----------------------------------------------------:|
4343
| --quiet | The script won't output normal messages, only errors |
4444

45-
## Example output
45+
## Example outputs
4646
```
4747
$ 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+
5967
```
6068
```
6169
$ 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!
72102
```
73103

74104
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!

update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require_once 'functions.php';
55

66
outputStdout("=============================================");
7-
outputStdout("Running dynamic DNS client for netcup 1.0");
7+
outputStdout("Running dynamic DNS client for netcup 2.0");
88
outputStdout("This script is not affiliated with netcup.");
99
outputStdout("=============================================\n");
1010

0 commit comments

Comments
 (0)