The dnsDomainLevels()() function finds the number of DNS levels (number of dots) in the URL host name.
host is the host name from the URL.
number (integer) of DNS domain levels.
dnsDomainLevels("www") returns 0.
dnsDomainLevels("www.example.com") returns 2.