HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_244
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 244 · To query domain name servers using resolver, use the command: [root@deep /]# dnsquery <host> For example: [root@deep /]# dnsquery www.redhat.com ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40803 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4 ;;      www.redhat.com, type = ANY, class = IN www.redhat.com.          2h19m46s IN CNAME  www.portal.redhat.com. redhat.com.               2h18m13s IN NS  ns.redhat.com. redhat.com.               2h18m13s IN NS  ns2.redhat.com. redhat.com.               2h18m13s IN NS  ns3.redhat.com. redhat.com.               2h18m13s IN NS  speedy.redhat.com. ns.redhat.com.            1d2h18m8s IN A  207.175.42.153 ns2.redhat.com.             1d2h18m8s IN A  208.178.165.229 ns3.redhat.com.             1d2h18m8s IN A  206.132.41.213 speedy.redhat.com.      2h18m13s IN A   199.183.24.251 Where <host> is the name of the host you want to qery. host The host program look up host names using DNS. · To look up host names using domain server, use the command: [root@deep /]# host <FQDN, domain names, host names, or host numbers> For example: [root@deep /]# host redhat.com redhat.com has address 207.175.42.154 Where <FQDN, domain names, host names, or  host numbers> is either FDQN (www.redhat.com), domain names (redhat.com), host names (www) or host numbers (207.175.42.154). · To find all of the information about host maintained by the DNS, use the command: [root@deep /]# host <-a domain names > For example: [root@deep /]# host -a redhat.com Trying null domain rcode = 0 (Success), ancount=6 The following answer is not authoritative: The following answer is not verified as authentic by the server: redhat.com      8112 IN NS      ns.redhat.com  redhat.com      8112 IN NS      ns2.redhat.com  redhat.com      8112 IN NS      ns3.redhat.com  redhat.com      8112 IN NS      speedy.redhat.com  redhat.com      8112 IN A        207.175.42.154 redhat.com      11891 IN         SOA     ns.redhat.com noc.redhat.com(                         2000021402 ;serial (version)                         3600      ;refresh period                         1800      ;retry refresh this often                         604800    ;expiration period                         86400     ;minimum TTL                          ) For authoritative answers, see: redhat.com      8112 IN NS      ns.redhat.com  redhat.com      8112 IN NS      ns2.redhat.com  redhat.com      8112 IN NS      ns3.redhat.com  redhat.com      8112 IN NS      speedy.redhat.com