SUMMARY: DNS not resolving host names

From: rwolf@dretor.dciem.dnd.ca
Date: Wed Feb 02 1994 - 05:17:45 CST


Hello Sun-managers

>>>>>>>>>>>>> SOLUTION >>>>>>>>>>>>>>>>>>>>>

    It turns on in the zone file for DNS you can only have one
    $INCLUDE, it seems to reload its internal data structures each time
    it gets one of these commands. As a result the server is setup okay
    but by the time the last command is processed then the initial commands
    to setup the server itself are gone.

>>>>>>>>>>>>> ORIGINAL QUERY >>>>>>>>>>>>>>>>>>>>>
    I am trying to setup a machine as a Domain Name Server.

    I am running SunOS 4.1.3 many patches on a Sun4 IPX including
    patch 100465-02 dns res_send resolv.conf.

    I followed the example in System Admin. manual and the named seems
    to run okay. However when I try to do any lookups it fails.

    Our domain is 'dciem.dnd.ca' and the name server is 'hermes'.

    Below I am trying to lookup the name of the DNS itself on the DNS machine.
    hermes{root}67: nslookup
    Default Server: dciem.dnd.ca
    Address: 131.136.64.3

> set debug
> hermes
    Server: dciem.dnd.ca
    Address: 131.136.64.3

    res_mkquery(0, hermes.dciem.dnd.ca, 1, 1)
    ------------
    Got answer:
        HEADER:
            opcode = QUERY, id = 2, rcode = SERVFAIL
            header flags: response, want recursion, recursion avail.
            questions = 1, answers = 1, auth. records = 0, additional = 0

        QUESTIONS:
            hermes.dciem.dnd.ca, type = A, class = IN
        ANSWERS:
        -> hermes.dciem.dnd.ca inet address = 131.136.64.3

    ------------
    Failed: SERVFAIL, num. answers = 1, ns = 0, additional = 0
    *** dciem.dnd.ca can't find hermes: Server failed
>

    I turned on debugging in the name daemon and below is the result.
    Here is a trace, it looks like the DNS server is okay but nslookup is not?
 
    hermes{root}59: kill -USR1 `cat /etc/named.pid`
 
    hermes{root}60: ls -l /var/tmp/named*
    -rw-r--r-- 1 root 25 Jan 27 14:52 /var/tmp/named.run

    hermes{root}61: cat /var/tmp/named.run
    Debug turned ON, Level 1
 

    hermes{root}62: nslookup
    Default Server: dciem.dnd.ca
    Address: 131.136.64.3
 
> exit
 

    hermes{root}63: cat /var/tmp/named.run
    Debug turned ON, Level 1
 
    datagram from 131.136.64.3 port 1068, fd 8, len 27
    req: IQuery class 1 type 1
    req: IQuery 2 records
    req: answer -> 131.136.64.3 10 (1068) id=1 Local

    hermes{root}64: nslookup
    Default Server: dciem.dnd.ca
    Address: 131.136.64.3
 
> hermes
    Server: dciem.dnd.ca
    Address: 131.136.64.3
 
    *** dciem.dnd.ca can't find hermes: Server failed
> exit

    hermes{root}65: cat /var/tmp/named.run
    Debug turned ON, Level 1

    datagram from 131.136.64.3 port 1068, fd 8, len 27
    req: IQuery class 1 type 1
    req: IQuery 2 records
    req: answer -> 131.136.64.3 10 (1068) id=1 Local

    datagram from 131.136.64.3 port 1069, fd 8, len 27
    req: IQuery class 1 type 1
    req: IQuery 2 records
    req: answer -> 131.136.64.3 10 (1069) id=1 Local

    datagram from 131.136.64.3 port 1070, fd 8, len 37
    req: nlookup(hermes.dciem.dnd.ca) id 2 type=1
    req: found 'hermes.dciem.dnd.ca' as 'hermes.dciem.dnd.ca' (cname=0)
    req: answer -> 131.136.64.3 10 (1070) id=2 Local
<<<<<<<<<<<<< ORIGINAL QUERY <<<<<<<<<<<<<<<<<<<<<

    Is there any other patch for DNS or nslookup? Any ideas where I might
    start looking?
    Thanks, and yes I will summarize.

------------------------------------------------------------------------------
Robert J Wolf, Sun System Admin. DCIEM, CFB Toronto
rwolf@dciem.dnd.ca PO Box 2000 1133 Sheppard Avenue West
                                    North York (Toronto), Ont., Canada M3M 3B9
Internet: 192.16.207.3 Phone: (416)635-2073 FAX: (416)635-2104
"Capitalism with environmental ethics will benefit the entire world."



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:55 CDT