Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
compose.libre.sh
Commits
51fd8677
Commit
51fd8677
authored
5 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Adds a script to test domains.
parent
05e1207e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/test-domain.sh
+10
-0
10 additions, 0 deletions
utils/test-domain.sh
with
10 additions
and
0 deletions
utils/test-domain.sh
0 → 100644
+
10
−
0
View file @
51fd8677
#!/bin/bash
cd
/data/domains
my_ip
=
`
curl http://ipv4.icanhazip.com/
`
echo
"My IP is
$my_ip
"
for
domain
in
`
ls
.
`
;
do
domain_ip
=
`
host
${
domain
}
|
awk
'/has address/ { print $4 }'
`
if
[[
"
${
domain_ip
}
"
!=
"
${
my_ip
}
"
]]
;
then
echo
"
$domain
has this IP:
$domain_ip
"
fi
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment