hostname-d-works 74 B

123
  1. f=$(busybox hostname -f)
  2. d=$(busybox hostname -d)
  3. test x"${f#*.}" = x"$d"