Skip to content

Commit

Permalink
Update examples in README.md for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
stecklars committed Jan 20, 2022
1 parent 14b4f03 commit 049c04d
Showing 1 changed file with 103 additions and 50 deletions.
153 changes: 103 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,60 +57,113 @@ Just add these Options after the command like `./update.php --quiet`

## Example outputs
```
$ php update.php
[2018/06/10 05:03:40 +0200][NOTICE] =============================================
[2018/06/10 05:03:40 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
[2018/06/10 05:03:40 +0200][NOTICE] This script is not affiliated with netcup.
[2018/06/10 05:03:40 +0200][NOTICE] =============================================
[2018/06/10 05:03:40 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
[2018/06/10 05:03:41 +0200][NOTICE] Logged in successfully!
[2018/06/10 05:03:41 +0200][NOTICE] Successfully received Domain info.
[2018/06/10 05:03:41 +0200][NOTICE] Lowered TTL to 300 seconds successfully.
[2018/06/10 05:03:42 +0200][NOTICE] Successfully received DNS record data.
[2018/06/10 05:03:42 +0200][NOTICE] A record for host @ doesn't exist, creating necessary DNS record.
[2018/06/10 05:03:42 +0200][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
[2018/06/10 05:03:44 +0200][NOTICE] IPv4 address updated successfully!
[2018/06/10 05:03:44 +0200][NOTICE] AAAA record for host @ doesn't exist, creating necessary DNS record.
[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
[2018/06/10 05:03:46 +0200][NOTICE] IPv6 address updated successfully!
[2018/06/10 05:03:46 +0200][NOTICE] Logged out successfully!
$ ./update.php
[2022/01/20 00:35:02 +0000][NOTICE] =============================================
[2022/01/20 00:35:02 +0000][NOTICE] Running dynamic DNS client for netcup 3.0
[2022/01/20 00:35:02 +0000][NOTICE] This script is not affiliated with netcup.
[2022/01/20 00:35:02 +0000][NOTICE] =============================================
[2022/01/20 00:35:02 +0000][NOTICE] Logged in successfully!
[2022/01/20 00:35:02 +0000][NOTICE] Updating DNS records for domain "myfirstdomain.com"
[2022/01/20 00:35:03 +0000][NOTICE] Successfully received Domain info.
[2022/01/20 00:35:03 +0000][NOTICE] Lowered TTL to 300 seconds successfully.
[2022/01/20 00:35:03 +0000][NOTICE] Successfully received DNS record data.
[2022/01/20 00:35:03 +0000][NOTICE] Updating DNS records for subdomain "subdomain1" of domain "myfirstdomain.com".
[2022/01/20 00:35:03 +0000][NOTICE] A record for host subdomain1 doesn't exist, creating necessary DNS record.
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address updated successfully!
[2022/01/20 00:35:03 +0000][NOTICE] AAAA record for host subdomain1 doesn't exist, creating necessary DNS record.
[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
[2022/01/20 00:35:03 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:35:03 +0000][NOTICE] Updating DNS records for subdomain "subdomain2" of domain "myfirstdomain.com".
[2022/01/20 00:35:03 +0000][NOTICE] A record for host subdomain2 doesn't exist, creating necessary DNS record.
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
[2022/01/20 00:35:03 +0000][NOTICE] IPv4 address updated successfully!
[2022/01/20 00:35:03 +0000][NOTICE] AAAA record for host subdomain2 doesn't exist, creating necessary DNS record.
[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
[2022/01/20 00:35:03 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:35:03 +0000][NOTICE] Updating DNS records for domain "myseconddomain.com"
[2022/01/20 00:35:03 +0000][NOTICE] Successfully received Domain info.
[2022/01/20 00:35:04 +0000][NOTICE] Successfully received DNS record data.
[2022/01/20 00:35:04 +0000][NOTICE] Updating DNS records for subdomain "@" of domain "myseconddomain.com".
[2022/01/20 00:35:04 +0000][NOTICE] A record for host @ doesn't exist, creating necessary DNS record.
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address updated successfully!
[2022/01/20 00:35:04 +0000][NOTICE] AAAA record for host @ doesn't exist, creating necessary DNS record.
[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
[2022/01/20 00:35:04 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:35:04 +0000][NOTICE] Updating DNS records for subdomain "*" of domain "myseconddomain.com".
[2022/01/20 00:35:04 +0000][NOTICE] A record for host * doesn't exist, creating necessary DNS record.
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address has changed. Before: newly created Record; Now: 5.6.7.8
[2022/01/20 00:35:04 +0000][NOTICE] IPv4 address updated successfully!
[2022/01/20 00:35:04 +0000][NOTICE] AAAA record for host * doesn't exist, creating necessary DNS record.
[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
[2022/01/20 00:35:04 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:35:04 +0000][NOTICE] Logged out successfully!
```
```
$ php update.php
[2018/06/10 05:03:50 +0200][NOTICE] =============================================
[2018/06/10 05:03:50 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
[2018/06/10 05:03:50 +0200][NOTICE] This script is not affiliated with netcup.
[2018/06/10 05:03:50 +0200][NOTICE] =============================================
[2018/06/10 05:03:50 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
[2018/06/10 05:03:50 +0200][NOTICE] Logged in successfully!
[2018/06/10 05:03:51 +0200][NOTICE] Successfully received Domain info.
[2018/06/10 05:03:51 +0200][NOTICE] Successfully received DNS record data.
[2018/06/10 05:03:52 +0200][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
[2018/06/10 05:03:52 +0200][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
[2018/06/10 05:03:52 +0200][NOTICE] Logged out successfully!
$ ./update.php
[2022/01/20 00:39:00 +0000][NOTICE] =============================================
[2022/01/20 00:39:00 +0000][NOTICE] Running dynamic DNS client for netcup 3.0
[2022/01/20 00:39:00 +0000][NOTICE] This script is not affiliated with netcup.
[2022/01/20 00:39:00 +0000][NOTICE] =============================================
[2022/01/20 00:39:00 +0000][NOTICE] Logged in successfully!
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for domain "myfirstdomain.com"
[2022/01/20 00:39:00 +0000][NOTICE] Successfully received Domain info.
[2022/01/20 00:39:00 +0000][NOTICE] Successfully received DNS record data.
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for subdomain "subdomain1" of domain "myfirstdomain.com".
[2022/01/20 00:39:00 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
[2022/01/20 00:39:00 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for subdomain "subdomain2" of domain "myfirstdomain.com".
[2022/01/20 00:39:00 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
[2022/01/20 00:39:00 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
[2022/01/20 00:39:00 +0000][NOTICE] Updating DNS records for domain "myseconddomain.com"
[2022/01/20 00:39:01 +0000][NOTICE] Successfully received Domain info.
[2022/01/20 00:39:01 +0000][NOTICE] Successfully received DNS record data.
[2022/01/20 00:39:01 +0000][NOTICE] Updating DNS records for subdomain "@" of domain "myseconddomain.com".
[2022/01/20 00:39:01 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
[2022/01/20 00:39:01 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
[2022/01/20 00:39:01 +0000][NOTICE] Updating DNS records for subdomain "*" of domain "myseconddomain.com".
[2022/01/20 00:39:01 +0000][NOTICE] IPv4 address hasn't changed. Current IPv4 address: 5.6.7.8
[2022/01/20 00:39:01 +0000][NOTICE] IPv6 address hasn't changed. Current IPv6 address: 2001:db8:85a3:0:0:8a2e:370:7334
[2022/01/20 00:39:01 +0000][NOTICE] Logged out successfully!
```
```
$ php update.php
[2018/06/10 05:08:22 +0200][NOTICE] =============================================
[2018/06/10 05:08:22 +0200][NOTICE] Running dynamic DNS client for netcup 2.0
[2018/06/10 05:08:22 +0200][NOTICE] This script is not affiliated with netcup.
[2018/06/10 05:08:22 +0200][NOTICE] =============================================
[2018/06/10 05:08:22 +0200][NOTICE] Updating DNS records for host @ on domain mydomain.com
[2018/06/10 05:08:22 +0200][NOTICE] Logged in successfully!
[2018/06/10 05:08:22 +0200][NOTICE] Successfully received Domain info.
[2018/06/10 05:08:23 +0200][NOTICE] Successfully received DNS record data.
[2018/06/10 05:08:23 +0200][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
[2018/06/10 05:08:24 +0200][NOTICE] IPv4 address updated successfully!
[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
[2018/06/10 05:08:24 +0200][NOTICE] IPv6 address updated successfully!
[2018/06/10 05:08:25 +0200][NOTICE] Logged out successfully!
$ ./update.php
[2022/01/20 00:40:10 +0000][NOTICE] =============================================
[2022/01/20 00:40:10 +0000][NOTICE] Running dynamic DNS client for netcup 3.0
[2022/01/20 00:40:10 +0000][NOTICE] This script is not affiliated with netcup.
[2022/01/20 00:40:10 +0000][NOTICE] =============================================
[2022/01/20 00:40:10 +0000][NOTICE] Logged in successfully!
[2022/01/20 00:40:10 +0000][NOTICE] Updating DNS records for domain "myfirstdomain.com"
[2022/01/20 00:40:10 +0000][NOTICE] Successfully received Domain info.
[2022/01/20 00:40:10 +0000][NOTICE] Successfully received DNS record data.
[2022/01/20 00:40:10 +0000][NOTICE] Updating DNS records for subdomain "subdomain1" of domain "myfirstdomain.com".
[2022/01/20 00:40:10 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address updated successfully!
[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
[2022/01/20 00:40:11 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:40:11 +0000][NOTICE] Updating DNS records for subdomain "subdomain2" of domain "myfirstdomain.com".
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address updated successfully!
[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
[2022/01/20 00:40:11 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:40:11 +0000][NOTICE] Updating DNS records for domain "myseconddomain.com"
[2022/01/20 00:40:11 +0000][NOTICE] Successfully received Domain info.
[2022/01/20 00:40:11 +0000][NOTICE] Successfully received DNS record data.
[2022/01/20 00:40:11 +0000][NOTICE] Updating DNS records for subdomain "@" of domain "myseconddomain.com".
[2022/01/20 00:40:11 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
[2022/01/20 00:40:12 +0000][NOTICE] IPv4 address updated successfully!
[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
[2022/01/20 00:40:12 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:40:12 +0000][NOTICE] Updating DNS records for subdomain "*" of domain "myseconddomain.com".
[2022/01/20 00:40:12 +0000][NOTICE] IPv4 address has changed. Before: 5.6.7.8; Now: 1.2.3.4
[2022/01/20 00:40:12 +0000][NOTICE] IPv4 address updated successfully!
[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
[2022/01/20 00:40:12 +0000][NOTICE] IPv6 address updated successfully!
[2022/01/20 00:40:12 +0000][NOTICE] Logged out successfully!
```

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 comments on commit 049c04d

Please sign in to comment.