host file
L:1 | C:2

Date posted: Jan. 5, 2024, 2:38 p.m.
Problem: need host file
What does it do?: Generates a host file entry for all domains on the server
Problem: need host file
What does it do?: Generates a host file entry for all domains on the server
sean@castle-murray.com[~/bash/awk/cpanel] #
awk -F ": " -v host=$(hostname -i) '!/*/ {print host " " $1 " www." $1 }' /etc/userdomains