-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add dns override and address updates
- Loading branch information
Phillip Maffettone
committed
Apr 10, 2024
1 parent
83bdb6b
commit 7785df1
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Extract the first nameserver entry | ||
nameserver=$(grep -m 1 'nameserver' /etc/resolv.conf) | ||
|
||
# Recreate resolv.conf with the desired content | ||
{ | ||
echo "search dns.podman" | ||
echo "$nameserver" | ||
} > /etc/resolv.conf | ||
|
||
# Execute the original CMD passed to the script | ||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters