Skip to content

Commit

Permalink
feat: add flush_dns.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kral2 committed Oct 1, 2021
1 parent 8321b2a commit 2c6efe5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,27 @@ Given a version number MAJOR.MINOR.PATCH:
- MINOR version when adding functionality in a backwards compatible manner,
- PATCH version when making backwards compatible bug fixes.

## [0.6.0] - 2021-10-01

### Added

- flush_dns.sh: a cli tool to flush macOS DNS cache

## [0.5.1] - 2021-09-08

## Changed
### Changed

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

## [0.5.0] - 2021-09-08

## Added
### Added

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

## [0.4.0] - 2021-09-03

## Added
### Added

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

Expand Down
16 changes: 16 additions & 0 deletions system-config/flush_dns.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

# Last update : September, 2021
# Author: kral2
# Description: flush DNS cache

script_name=$(basename "$0")
version="0.1.0"
echo "$script_name - version $version"
echo "A cli tool to flush macOS DNS cache"
echo ""

dscacheutil -flushcache
sudo killall -HUP mDNSResponder

echo "DNS cache entries flushed, Bonjour restarted."

0 comments on commit 2c6efe5

Please sign in to comment.