728x90
반응형
What Is My IP?
bind utilities
- centos
yum install -y bind-utils
- ubuntu
apt-get install -y bind9-dnsutils
Public IP Address
dig @resolver1.opendns.com myip.opendns.com +short
Private IP Address
ip route get 1.2.3.4 | awk '{ print $7 }' | egrep -v '^$'
728x90
반응형
'Linux Distributions' 카테고리의 다른 글
우분투 비밀번호 분실 및 변경(초기화) 방법 (0) | 2024.02.17 |
---|---|
ip 명령어 (0) | 2024.02.17 |
How to install Ruby on Ubuntu (0) | 2023.09.15 |
How to install libmcrypt on CentOS 7.9 (0) | 2023.07.28 |
How to install and use stress (0) | 2023.07.09 |