# Lookup domains and IP addresses The IP Address of a domain can be found out from the linux console by typing: ``` nslookup ``` It returns a result like: ``` Server: Address: Non-authoritative answer: Name: Address: Name: Address: ``` When the domain has changed recently the latest changes may not be available in the prompted dns server. To obtain the latest information you can write: `nslookup -type=soa ` This returns the start of authority dns server formatted like this: ``` Server: Address: Non-authoritative answer: google.com origin = mail addr = serial = refresh = retry = expire = minimum = ``` The `` information can now be used to get the latest ip information: ``` nslookup ``` ## Applications This can be used for [finding the ip address of spam emails to report them](../../software/security/redirect-spam-mails.md).