ostridge
Guru
- Joined
- Jan 22, 2015
- Messages
- 1,813
- Reaction score
- 625
# add-fqdn at Line 20
# iptest=`nslookup $2 | tail -2 | cut -f 2 -d " " | head -n 1`
_____________________________________________________
# iptest=`nslookup $2 | tail -2 | cut -f 2 -d " " | head -n 1`
Code:
root@incrediblepbx:~# nslookup pbxinaflash.com | tail -2 | cut -f 2 -d " " | head -n 1
2606:4700:20::681a:5b8
root@incrediblepbx:~#
Code:
#add-fqdn at line 19 (Raspi13-12)
#iptest=`nslookup $2 | tail -2 | cut -f 2 -d " " | head -n 1`
root@raspi-13:~# nslookup pbxinaflash.com | tail -2 | cut -f 2 -d " " | head -n 1
104.26.5.184
root@incrediblepbx:~#
root@raspi-13:~# nslookup sipgate.co.uk | tail -2 | cut -f 2 -d " " | head -n 1
217.10.79.23
root@raspi-13:~#

