Skip to content

Commit 2c6efe5

Browse files
committed
feat: add flush_dns.sh
1 parent 8321b2a commit 2c6efe5

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

CHANGELOG.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,27 @@ Given a version number MAJOR.MINOR.PATCH:
1414
- MINOR version when adding functionality in a backwards compatible manner,
1515
- PATCH version when making backwards compatible bug fixes.
1616

17+
## [0.6.0] - 2021-10-01
18+
19+
### Added
20+
21+
- flush_dns.sh: a cli tool to flush macOS DNS cache
22+
1723
## [0.5.1] - 2021-09-08
1824

19-
## Changed
25+
### Changed
2026

2127
- cpu_info.sh: use bash function for command usage information
2228

2329
## [0.5.0] - 2021-09-08
2430

25-
## Added
31+
### Added
2632

2733
- cpu_info.sh: show cpu specific information (brand, model, core count, thread count)
2834

2935
## [0.4.0] - 2021-09-03
3036

31-
## Added
37+
### Added
3238

3339
- show-hidden-files.sh: add command usage information
3440

system-config/flush_dns.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# Last update : September, 2021
4+
# Author: kral2
5+
# Description: flush DNS cache
6+
7+
script_name=$(basename "$0")
8+
version="0.1.0"
9+
echo "$script_name - version $version"
10+
echo "A cli tool to flush macOS DNS cache"
11+
echo ""
12+
13+
dscacheutil -flushcache
14+
sudo killall -HUP mDNSResponder
15+
16+
echo "DNS cache entries flushed, Bonjour restarted."

0 commit comments

Comments
 (0)