The domain name is the one before the dot while the domain extension is the one immediately after it. In pippo.com, pippo is the domain name (aka second level domain), while .com the extension (defined as top level domain).