574 Part IV . Implementing (Web server application) Network Services in
Friday, August 31st, 2007574 Part IV . Implementing Network Services in SUSE Linux Listing 21-1 (continued) ;; QUESTION SECTION: ;www.palmcoder.net. IN A ;; ANSWER SECTION: www.palmcoder.net. 38396 zen.palmcoder.net. 38400 IN IN A CNAME zen.palmcoder.net. 212.13.208.115 ;; AUTHORITY SECTION: palmcoder.net. 38400 IN NS zen.palmcoder.net. ;; Query time: 443 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Jul 6 10:02:21 2004 ;; MSG SIZE rcvd: 83 Tip In the past, the name resolver tool nslookup was used in place of dig; nslookup is now deprecated, but is included in most Linux distributions. If you want to do a quick name resolution, using nslookup hostname returns the IP address. The output of dig may be confusing if you have never used it before, but its response to a name query is logical when you understand what DNS does. The output contains three basic parts: . The first part of the response is the QUESTION section. The QUESTION is what was sent originally to the DNS server. In this case, you asked for the A record of www.palmcoder.net. (Note that we talk about record types later in the chapter.) . The second part is the ANSWER section. The answer is the response to your question. In this case, you have been told the www.palmcoder.net is a CNAME of zen.palmcoder.net, and zen s address is 212.13.208.115. . Finally, you have the AUTHORITY section. The authority is the controlling server s IP address in the NS record. Using host A user-friendly replacement for the nslookup program that enables you to query the DNS for information about a domain is host. Using host, you can query a specific domain record and by default look up the address mapping of a host name. bible:~ # host www.palmcoder.net www.palmcoder.net is an alias for zen.palmcoder.net. zen.palmcoder.net has address 212.13.208.115
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.