please help to parse the line

cp4 0 0 170.217.86.10.1421 170.217.86.8.53308 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.62948 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.62949 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.63814 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.65322 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.41119 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.11.41394 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.11.41396 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.11.41461 ESTABLISHED

what need to do is, take 170.217.86.11 this portion of the content and check the hostname and act on it.
please help me how can I dothat
i tried like |awk -F '{print $5\.$6}' but gave error.

thanks

Using the below input file,

$ cat test
cp4 0 0 170.217.86.10.1421 170.217.86.8.53308 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.62948 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.62949 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.63814 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.65322 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.8.41119 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.11.41394 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.11.41396 ESTABLISHED
tcp4 0 0 170.217.86.10.1421 170.217.86.11.41461 ESTABLISHED

How about this:

$ awk '{print $5}' test|while read line; do
> echo ${line%\.*}
> done

or this:

$ while read junk1 junk2 junk3 junk4 ipadd restofjunk; do
> echo ${ipadd%\.*}
> done < test

This is done in ksh. Check the man page for the explaination.