Linux查看域名解析的IP

一、Linux系统
1、查看IP
ifconfig
2、查看gateway
netstat -rn
3、查看dns
cat /etc/resolv.conf

二、window系统
1、window查看ip
ipconfig
2、查看gateway
ipconfig
3、查看本地dns
ipconfig/all

域名解析
nslookup 域名
dig 域名
dig +trace 域名

原文地址:https://www.cnblogs.com/2018-05-9-ygk/p/11939241.html

时间: 2024-08-09 10:38:30

Linux查看域名解析的IP的相关文章

实例:linux查看和操作IP路由表方法

实例:linux查看和操作IP路由表方法 听语音 | 浏览:2933 | 更新:2015-10-17 10:07 | 标签:linux 1 2 3 4 5 6 7 分步阅读 Linux系统的route命令用于显示和操作IP路由表(show / manipulate the IP routing table).要实现两个不同的子网之间的通信,需要一台连接两个网络的路由器,或者同时位于两个网络的网关来实现.本文将以实例讲解linux查看和操作IP路由表方法,外网SSH访问内网LINUX. 方法/步骤

linux 查看TCP连接IP统计小程序

#!/usr/bin/env python #coding:utf8 import commands import time import sys def main(count_list): print "数量\t\tIP地址 \t\t\t连接状态" for i in count_list: for x in i.split(): if len(x) > 14: print "%s \t"% x, else: print "%s \t\t"

linux查看本机IP、gateway、DNS

IP:     ifconfig gateway:[[email protected] ~]# netstat -rnKernel IP routing tableDestination     Gateway         Genmask         Flags   MSS Window irtt Iface172.16.44.0     0.0.0.0          255.255.255.0    U         0      0          0 vmnet8172.1

linux查看出口ip 及w3m字符浏览器

Linux 查看服务器出口IP? ? 字符浏览器: http://wiki.ubuntu.org.cn/W3m

Window、Linux查看本机外网ip

前言 我们上网用的IP并不一定是本机网卡的IP地址,由于公网IP地址稀少,国内绝大多数电脑上网,一般都是通过拨号或者端口映射.多个内网地址映射到一个公网地址来实现上网的. 目录 1.查看本机网卡ip 2.查看本机外网ip上网ip 3.路由跟踪查询上网-网关ip 查看本机网卡IP Windows 查看本地IP ipconfig Linux 查看本地IP ifconfig 查看本机外网IP\上网IP 内网ip要访问外网,需要通过NAT(Network Address Translation)技术,将

linux 查看公网ip

linux 快速查看公网ip,linux查看公网ip有很多种,下面主要介绍三种:原理是通过curl 命令发送url请求,返回相应ip. 或发送ip 请求返回所对应的地址,如下: curl icanhazip.com [[email protected] ~]# curl icanhazip.com 125.17.201.250 [[email protected] ~]# curl cip.cc [email protected] ~]# curl cip.cc IP : 124.87.222.

linux 查看ip、用户、时间对应执行的命令

这个需要使用到history命令.可以加数字,返回最近执行的几条命令.如果不加数字会返回所有的历史命令. [[email protected] ~]# history 20 1015 rm stdin.log 1016 ll 1017 rm yy 1018 ll 1019 echo 'hello' 1>> echo.log 1020 ll 1021 cat echo.log 1022 echo 'world' 1>> echo.log 1023 cat echo.log 1024

linux 查看端口号命令

Linux下如果我们需要知道2809号端口的情况的话,我们可以这样,如下命令: $netstat -pan|grep 24800 tcp        0      0 0.0.0.0:24800           0.0.0.0:*               LISTEN      4496/synergys        tcp        0      0 192.168.1.104:24800     192.168.1.106:49479     ESTABLISHED 4496

Linux 查看系统硬件信息(实例详解)

cpu lscpu命令,查看的是cpu的统计信息. [email protected]:~$ lscpu Architecture: i686 #cpu架构 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian #小尾序 CPU(s): 4 #总共有4核 On-line CPU(s) list: 0-3 Thread(s) per core: 1 #每个cpu核,只能支持一个线程,即不支持超线程 Core(s) per socket: