Skip to content

Commit 049c04d

Browse files
committed
Update examples in README.md for new version
1 parent 14b4f03 commit 049c04d

File tree

1 file changed

+103
-50
lines changed

1 file changed

+103
-50
lines changed

README.md

Lines changed: 103 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -57,60 +57,113 @@ Just add these Options after the command like `./update.php --quiet`
5757

5858
## Example outputs
5959
```
60-
$ php update.php
61-
[2018/06/10 05:03:40 +0200][NOTICE] =============================================
62-
[2018/06/10 05:03:40 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
63-
[2018/06/10 05:03:40 +0200][NOTICE] This script is not affiliated with netcup.
64-
[2018/06/10 05:03:40 +0200][NOTICE] =============================================
65-
66-
[2018/06/10 05:03:40 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
67-
68-
[2018/06/10 05:03:41 +0200][NOTICE] Logged in successfully!
69-
[2018/06/10 05:03:41 +0200][NOTICE] Successfully received Domain info.
70-
[2018/06/10 05:03:41 +0200][NOTICE] Lowered TTL to 300 seconds successfully.
71-
[2018/06/10 05:03:42 +0200][NOTICE] Successfully received DNS record data.
72-
[2018/06/10 05:03:42 +0200][NOTICE] A record for host @ doesn't exist, creating necessary DNS record.
73-
[2018/06/10 05:03:42 +0200][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
74-
[2018/06/10 05:03:44 +0200][NOTICE] IPv4 address updated successfully!
75-
[2018/06/10 05:03:44 +0200][NOTICE] AAAA record for host @ doesn't exist, creating necessary DNS record.
76-
[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
77-
[2018/06/10 05:03:46 +0200][NOTICE] IPv6 address updated successfully!
78-
[2018/06/10 05:03:46 +0200][NOTICE] Logged out successfully!
79-
60+
$ ./update.php
61+
[2022/01/20 00:35:02 +0000][NOTICE] =============================================
62+
[2022/01/20 00:35:02 +0000][NOTICE] Running dynamic DNS client for netcup 3.0
63+
[2022/01/20 00:35:02 +0000][NOTICE] This script is not affiliated with netcup.
64+
[2022/01/20 00:35:02 +0000][NOTICE] =============================================
65+
66+
[2022/01/20 00:35:02 +0000][NOTICE] Logged in successfully!
67+
[2022/01/20 00:35:02 +0000][NOTICE] Updating DNS records for domain "myfirstdomain.com"
68+
[2022/01/20 00:35:03 +0000][NOTICE] Successfully received Domain info.
69+
[2022/01/20 00:35:03 +0000][NOTICE] Lowered TTL to 300 seconds successfully.
70+
[2022/01/20 00:35:03 +0000][NOTICE] Successfully received DNS record data.
71+
[2022/01/20 00:35:03 +0000][NOTICE] Updating DNS records for subdomain "subdomain1" of domain "myfirstdomain.com".
72+
[2022/01/20 00:35:03 +0000][NOTICE] A record for host subdomain1 doesn't exist, creating necessary DNS record.
73+
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
74+
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address updated successfully!
75+
[2022/01/20 00:35:03 +0000][NOTICE] AAAA record for host subdomain1 doesn't exist, creating necessary DNS record.
76+
[2022/01/20 00:35:03 +0000][NOTICE] IPv6 address has changed. Before: newly created Record; Now: 2001:db8:85a3:0:0:8a2e:370:7334
77+
[2022/01/20 00:35:03 +0000][NOTICE] IPv6 address updated successfully!
78+
[2022/01/20 00:35:03 +0000][NOTICE] Updating DNS records for subdomain "subdomain2" of domain "myfirstdomain.com".
79+
[2022/01/20 00:35:03 +0000][NOTICE] A record for host subdomain2 doesn't exist, creating necessary DNS record.
80+
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
81+
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address updated successfully!
82+
[2022/01/20 00:35:03 +0000][NOTICE] AAAA record for host subdomain2 doesn't exist, creating necessary DNS record.
83+
[2022/01/20 00:35:03 +0000][NOTICE] IPv6 address has changed. Before: newly created Record; Now: 2001:db8:85a3:0:0:8a2e:370:7334
84+
[2022/01/20 00:35:03 +0000][NOTICE] IPv6 address updated successfully!
85+
[2022/01/20 00:35:03 +0000][NOTICE] Updating DNS records for domain "myseconddomain.com"
86+
[2022/01/20 00:35:03 +0000][NOTICE] Successfully received Domain info.
87+
[2022/01/20 00:35:04 +0000][NOTICE] Successfully received DNS record data.
88+
[2022/01/20 00:35:04 +0000][NOTICE] Updating DNS records for subdomain "@" of domain "myseconddomain.com".
89+
[2022/01/20 00:35:04 +0000][NOTICE] A record for host @ doesn't exist, creating necessary DNS record.
90+
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
91+
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address updated successfully!
92+
[2022/01/20 00:35:04 +0000][NOTICE] AAAA record for host @ doesn't exist, creating necessary DNS record.
93+
[2022/01/20 00:35:04 +0000][NOTICE] IPv6 address has changed. Before: newly created Record; Now: 2001:db8:85a3:0:0:8a2e:370:7334
94+
[2022/01/20 00:35:04 +0000][NOTICE] IPv6 address updated successfully!
95+
[2022/01/20 00:35:04 +0000][NOTICE] Updating DNS records for subdomain "*" of domain "myseconddomain.com".
96+
[2022/01/20 00:35:04 +0000][NOTICE] A record for host * doesn't exist, creating necessary DNS record.
97+
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
98+
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address updated successfully!
99+
[2022/01/20 00:35:04 +0000][NOTICE] AAAA record for host * doesn't exist, creating necessary DNS record.
100+
[2022/01/20 00:35:04 +0000][NOTICE] IPv6 address has changed. Before: newly created Record; Now: 2001:db8:85a3:0:0:8a2e:370:7334
101+
[2022/01/20 00:35:04 +0000][NOTICE] IPv6 address updated successfully!
102+
[2022/01/20 00:35:04 +0000][NOTICE] Logged out successfully!
80103
```
81104
```
82-
$ php update.php
83-
[2018/06/10 05:03:50 +0200][NOTICE] =============================================
84-
[2018/06/10 05:03:50 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
85-
[2018/06/10 05:03:50 +0200][NOTICE] This script is not affiliated with netcup.
86-
[2018/06/10 05:03:50 +0200][NOTICE] =============================================
87-
88-
[2018/06/10 05:03:50 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
89-
90-
[2018/06/10 05:03:50 +0200][NOTICE] Logged in successfully!
91-
[2018/06/10 05:03:51 +0200][NOTICE] Successfully received Domain info.
92-
[2018/06/10 05:03:51 +0200][NOTICE] Successfully received DNS record data.
93-
[2018/06/10 05:03:52 +0200][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
94-
[2018/06/10 05:03:52 +0200][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
95-
[2018/06/10 05:03:52 +0200][NOTICE] Logged out successfully!
105+
$ ./update.php
106+
[2022/01/20 00:39:00 +0000][NOTICE] =============================================
107+
[2022/01/20 00:39:00 +0000][NOTICE] Running dynamic DNS client for netcup 3.0
108+
[2022/01/20 00:39:00 +0000][NOTICE] This script is not affiliated with netcup.
109+
[2022/01/20 00:39:00 +0000][NOTICE] =============================================
110+
111+
[2022/01/20 00:39:00 +0000][NOTICE] Logged in successfully!
112+
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for domain "myfirstdomain.com"
113+
[2022/01/20 00:39:00 +0000][NOTICE] Successfully received Domain info.
114+
[2022/01/20 00:39:00 +0000][NOTICE] Successfully received DNS record data.
115+
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for subdomain "subdomain1" of domain "myfirstdomain.com".
116+
[2022/01/20 00:39:00 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
117+
[2022/01/20 00:39:00 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
118+
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for subdomain "subdomain2" of domain "myfirstdomain.com".
119+
[2022/01/20 00:39:00 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
120+
[2022/01/20 00:39:00 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
121+
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for domain "myseconddomain.com"
122+
[2022/01/20 00:39:01 +0000][NOTICE] Successfully received Domain info.
123+
[2022/01/20 00:39:01 +0000][NOTICE] Successfully received DNS record data.
124+
[2022/01/20 00:39:01 +0000][NOTICE] Updating DNS records for subdomain "@" of domain "myseconddomain.com".
125+
[2022/01/20 00:39:01 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
126+
[2022/01/20 00:39:01 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
127+
[2022/01/20 00:39:01 +0000][NOTICE] Updating DNS records for subdomain "*" of domain "myseconddomain.com".
128+
[2022/01/20 00:39:01 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
129+
[2022/01/20 00:39:01 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
130+
[2022/01/20 00:39:01 +0000][NOTICE] Logged out successfully!
96131
```
97132
```
98-
$ php update.php
99-
[2018/06/10 05:08:22 +0200][NOTICE] =============================================
100-
[2018/06/10 05:08:22 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
101-
[2018/06/10 05:08:22 +0200][NOTICE] This script is not affiliated with netcup.
102-
[2018/06/10 05:08:22 +0200][NOTICE] =============================================
103-
104-
[2018/06/10 05:08:22 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
105-
106-
[2018/06/10 05:08:22 +0200][NOTICE] Logged in successfully!
107-
[2018/06/10 05:08:22 +0200][NOTICE] Successfully received Domain info.
108-
[2018/06/10 05:08:23 +0200][NOTICE] Successfully received DNS record data.
109-
[2018/06/10 05:08:23 +0200][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
110-
[2018/06/10 05:08:24 +0200][NOTICE] IPv4 address updated successfully!
111-
[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
112-
[2018/06/10 05:08:24 +0200][NOTICE] IPv6 address updated successfully!
113-
[2018/06/10 05:08:25 +0200][NOTICE] Logged out successfully!
133+
$ ./update.php
134+
[2022/01/20 00:40:10 +0000][NOTICE] =============================================
135+
[2022/01/20 00:40:10 +0000][NOTICE] Running dynamic DNS client for netcup 3.0
136+
[2022/01/20 00:40:10 +0000][NOTICE] This script is not affiliated with netcup.
137+
[2022/01/20 00:40:10 +0000][NOTICE] =============================================
138+
139+
[2022/01/20 00:40:10 +0000][NOTICE] Logged in successfully!
140+
[2022/01/20 00:40:10 +0000][NOTICE] Updating DNS records for domain "myfirstdomain.com"
141+
[2022/01/20 00:40:10 +0000][NOTICE] Successfully received Domain info.
142+
[2022/01/20 00:40:10 +0000][NOTICE] Successfully received DNS record data.
143+
[2022/01/20 00:40:10 +0000][NOTICE] Updating DNS records for subdomain "subdomain1" of domain "myfirstdomain.com".
144+
[2022/01/20 00:40:10 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
145+
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address updated successfully!
146+
[2022/01/20 00:40:11 +0000][NOTICE] IPv6 address has changed. Before: 2001:db8:85a3:0:0:8a2e:370:7334; Now: 2001:db8:85a3:0:0:8a2e:370:5123
147+
[2022/01/20 00:40:11 +0000][NOTICE] IPv6 address updated successfully!
148+
[2022/01/20 00:40:11 +0000][NOTICE] Updating DNS records for subdomain "subdomain2" of domain "myfirstdomain.com".
149+
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
150+
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address updated successfully!
151+
[2022/01/20 00:40:11 +0000][NOTICE] IPv6 address has changed. Before: 2001:db8:85a3:0:0:8a2e:370:7334; Now: 2001:db8:85a3:0:0:8a2e:370:5123
152+
[2022/01/20 00:40:11 +0000][NOTICE] IPv6 address updated successfully!
153+
[2022/01/20 00:40:11 +0000][NOTICE] Updating DNS records for domain "myseconddomain.com"
154+
[2022/01/20 00:40:11 +0000][NOTICE] Successfully received Domain info.
155+
[2022/01/20 00:40:11 +0000][NOTICE] Successfully received DNS record data.
156+
[2022/01/20 00:40:11 +0000][NOTICE] Updating DNS records for subdomain "@" of domain "myseconddomain.com".
157+
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
158+
[2022/01/20 00:40:12 +0000][NOTICE] IPv4 address updated successfully!
159+
[2022/01/20 00:40:12 +0000][NOTICE] IPv6 address has changed. Before: 2001:db8:85a3:0:0:8a2e:370:7334; Now: 2001:db8:85a3:0:0:8a2e:370:5123
160+
[2022/01/20 00:40:12 +0000][NOTICE] IPv6 address updated successfully!
161+
[2022/01/20 00:40:12 +0000][NOTICE] Updating DNS records for subdomain "*" of domain "myseconddomain.com".
162+
[2022/01/20 00:40:12 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
163+
[2022/01/20 00:40:12 +0000][NOTICE] IPv4 address updated successfully!
164+
[2022/01/20 00:40:12 +0000][NOTICE] IPv6 address has changed. Before: 2001:db8:85a3:0:0:8a2e:370:7334; Now: 2001:db8:85a3:0:0:8a2e:370:5123
165+
[2022/01/20 00:40:12 +0000][NOTICE] IPv6 address updated successfully!
166+
[2022/01/20 00:40:12 +0000][NOTICE] Logged out successfully!
114167
```
115168

116169
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

Comments
 (0)