Nslookup simulation can be easily achieved with Dnsjava tools, Dnsjava official website, Dnsjava-2.1.7.jar downloadPackage Cn.baokx;import Java.net.inetaddress;import Java.net.unknownhostexception;import org.xbill.DNS.Lookup; Import Org.xbill.dns.record;import Org.xbill.dns.textparseexception;import Org.xbill.dns.type;public class NetWork { public static void Main (string[] args) throws Unknownhostexception, textparseexception {inetaddress address = I
Nslookup (name server lookup): A tool for querying Internet domain name information or troubleshooting DNS server problems, see the installation method below. New VPS Installed CentOS 6.x, and then the default installation without Nslookup command, but directly with Yum install nslookup is not possible, because Nslookup
Query IP addressesThe simplest use of NSLookup is to query the IP address corresponding to the domain name, including the record and cname record. If a cname record is found, the setting of the alias record is returned. Its usage is:NSLookup Domain NameThe command format for specifying the query record type is as follows:NSLookup-Qt = Type Target Domain NameNote that QT must be in lower case.It can be of the following character type, not case sensitiv
Usually collect some commands for easy use.1:LS-LRT Sort by Time show2:nslookup View DNS resolution3:lsof-p Process NumberLsof ' which httpd '//That process is using Apache executable fileLSOF/ETC/PASSWD//The process is taking up/etc/passwdLSOF/DEV/HDA6//The process is taking up Hda6Lsof/dev/cdrom//The process is occupying the optical driveLsof-c sendmail//view file usage for SendMail processLsof-c courier-u ^zahn//shows that those files are opened wi
that DNS server.
You can use Nslookup www.baidu.com | awk '/[0-9]. [0-9]. [0-9]. [0-9]/{print $} ' | awk-f# ' {print} ' extracts the IP address. First intercept the IP address, and then remove the port number.
Host Www.baidu.com
Will see Baidu's IP address, but do not know from that DNS server returned.
You can use host Www.baidu.com | awk '/[0-9]. [0-9]. [0-9]. [0-9]/{print $} ' extracts the IP address.
Version development to determine whether it
NSLookup command usage gl dq/ X
1. query a record h sa l'} o
C:/> NSLookup www.cdnunion.com = (Ka 3! * ** Can't find server name for address 192.168.2.1: non-existent domain S wfwj
* ** Default servers are not available SN/nfdaq
Server: Unknown/il lb d (
Address: 192.168.2.1 =-[^,
Non-Authoritative Answer:/= I: P
Name: www.cdnunion.com a' I c ++ @ o
Addresses: 61.129.102.61, 202.101.42.101! 0d "BL, W
61.12
Common Linux commands: nslookup, lsmd5sum, uname, and history1. nslookup
DNS developers all know what the nslookup (name server lookup: domain name query) command is for. It comes with windows. However, in Linux, enter nslookup to display the command not found. DirectYum install ns
After DNS compilation is complete, the system prompts "XNDOMAIN -- Linux Enterprise Application-Linux server application" during nslookup. The following is a detailed description. Attaches all the compilation content, and red indicates the modified items.
The host name is linux, the DNS domain name to be configured is test.com, and the Host IP address is 10.47.32.152.
10.47.32.20.for windows PC under the same network segment
Configuration of the/etc
1. install the software packages dig and nslookup. Centos: # yuminstallbind-utilsDebian: # apt-getupdate # apt-getinstalldnsutils set the dns server IP address in/etc/resolv. conf before querying. II. usage
1. install the software packageInstall related software packages for dig and nslookup.
Centos:# yum install bind-utilsDebian:# apt-get update# apt-get install dnsutilsIn addition, you must set the dns se
1. Network Tools: ifconfig, ping, netstate, Redhat command and graphical settings of ip, finger, nslookup, ifconfignetstateZookeeper
1 ip ad view Nic ID
2. View Nic information in ifconfig
3. Disable the NIC
4. Start the NIC
5. configure a temporary ip address for etho
Sudo ifconfig ethoIP address
6. ping Command
Ping [Option] Host Name/IP Address
Check whether hosts on the network are working. It sends an ICMP ECHO_REQUEST packet to the ho
The simplest use of nslookup is to query the IP address corresponding to the domain name, which is applicable to A record or CNAME record. If you need to know who the domain name resolution server is, you can also use nslookup, but you need to add parameters. This command is provided by Windows and linux, but the parameter expressions are somewhat different, for example:
// Usage:
Want to use the dig command to set the domain name query, the result CentOS hint does not have this directive, and then take for granted that need to install dig software package, but check to know actually dig, host, nslookup these instructions are in Bind-utils package inside.Installation of bind-utils is very simple, direct yum installation can,Yum Install Bind-utilsThen the corresponding simple query can enter the instructions directly,Dig Abc.com
View all two-level domain names under a top-level domain
Author: stood
> nslookup [This is the first step of the order.] "nslookup" command. ]
> Set type=ns [Step two.] "Set Type=ns"]
> Server ns.xinnet.cn [Step three.] "Server ns.xinnet.cn"]
Default Server:ns.xinnet.cn
address:202.106.124.195
> LS hoky.org [Fourth step. "LS hoky.org" Oh, the hoky.org replaced by the domain name you want to query!
Check whether the dns server change takes effect.First, let's take a look at the domain name resolution sequence priority:1. Local DNS Cache2. Local Hosts file3. DNS ServerView the local DNS Cache: ipconfig/displaydnsClear local DNS Cache: ipconfig/flushdnsHosts file location: C: \ WINDOWS \ system32 \ drivers \ etcRun the nslookup command to check whether the DNS change takes effect.Under DOS (Start Menu-run), enter nslookupC: \ Users \ Administrator
BackgroundUser A Domino mail server was hung up and a new one was built, resulting in a pile of back letters. Here are two of these questionsQuestion one:No route found to domain xxx.com from server xxx/xxx. Check DNS configuration."Issue Tracking"1. Server Side--run--cmd2. nslookup3. Set TYPE=MX4. Enter xxx.com to discover that this domain name is not resolved at all.DNS configuration address problem was found, changed the DNS after the external network is normal.Question two:Was wasn't deliver
Query IP addresses
NSLookupThe simplest method is to query the IP address corresponding to the domain name, including the record, MX record, and NS record cname record.
Query a records:NSLookupDomain Name
Query MX records:NSLookup-Q = Mx Domain Name
Query NS records:NSLookup-Q = NS Domain Name
Query cname records:NSLookupDomain Name
Query whether Reverse Domain name resolution takes effect.NSLookupCommand
Command Format:NSLookup-Qa =PTRXXX. XXX
-Qa =PTRThe query type isPTRThat is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.