Hello , welcome to Castle-Murray
Login Register

Is it pointed here?

:1
Date posted: Nov. 29, 2022, 3:35 a.m.
Problem: Need to know what is pointe here? Apart from proxied stuff like cloudflare
What does it do?: checks all domains on the server against each of the dedicated ips.
sean@castle-murray.com[~/bash/uapi] #
checkdomains() { 
domnip=$(awk -F ": " '!/*/ {system(" echo " $1 " $( dig +short " $1 ")")}' /etc/userdomains)
for ip in $(hostname -I | sed s/127.0.0.1//) 
do echo "$domnip" | grep $ip
done 
}
checkdomains
sean@castle-murray.com[~/bash/uapi] #
fixed it.

Add a comment

Login to comment.