Is it pointed here?
<3
:0
Date posted: Feb. 7, 2023, 8:14 p.m.
Problem: not sure if domains are pointed here? This will list all domains and subdomains which are indeed pointed at this server. add a -v to the grep for domains NOT pointed here.
What does it do?: Validates if a domain is pointed at any IP on the server
Problem: not sure if domains are pointed here? This will list all domains and subdomains which are indeed pointed at this server. add a -v to the grep for domains NOT pointed here.
What does it do?: Validates if a domain is pointed at any IP on the server
sean@castle-murray.com[~/bash/cpanel] #
awk -F ": " '!/*/ {system("echo " $1 " $(dig +short " $1 ")")}' /etc/userdomains | grep -E "$(hostname -I | sed '$s/.$//' | tr ' ' '|')"