[openbeosnetteam] Re: [BUG] name resolution

Thanks. Next week I'll look into it :)

david



> Name resolution does not seem to work if the name is not known by the
queried dns.
> Shouldn't it ask one of the root servers in the second attempt?
> Can someone else please fix it? I have no idea how this works.
> See below.
>
> $ /boot/home/Develop/OpenBeOS/net_kit/source/apps/traceroute/traceroute
www.heise.de
> ;; res_setoptions(" debug", "conf")..
> ;;      debug
> gethostname
> find_net_setting
> ;; res_init()... default dnsrch list:
> ;;
> ;;      ..END..
> ;; res_querydomain(www.heise.de, <Nil>, 1, 1)
> ;; res_query(www.heise.de, 1, 1)
> ;; res_mkquery(0, www.heise.de, 1, 1)
> ;; res_send()
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50617
> ;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
> ;; QUESTIONS:
> ;;      www.heise.de, type = A, class = IN
>
> ;; Querying server (# 1) address = 193.0.0.193
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50617
> ;; flags: qr rd; Ques: 1, Ans: 0, Auth: 13, Addit: 13
> ;; QUESTIONS:
> ;;      www.heise.de, type = A, class = IN
>
> ;; AUTHORITY RECORDS:
> .       440240  IN      NS      F.ROOT-SERVERS.NET.
> .       440240  IN      NS      B.ROOT-SERVERS.NET.
> .       440240  IN      NS      J.ROOT-SERVERS.NET.
> .       440240  IN      NS      K.ROOT-SERVERS.NET.
> .       440240  IN      NS      L.ROOT-SERVERS.NET.
> .       440240  IN      NS      M.ROOT-SERVERS.NET.
> .       440240  IN      NS      I.ROOT-SERVERS.NET.
> .       440240  IN      NS      E.ROOT-SERVERS.NET.
> .       440240  IN      NS      D.ROOT-SERVERS.NET.
> .       440240  IN      NS      A.ROOT-SERVERS.NET.
> .       440240  IN      NS      H.ROOT-SERVERS.NET.
> .       440240  IN      NS      C.ROOT-SERVERS.NET.
> .       440240  IN      NS      G.ROOT-SERVERS.NET.
>
> ;; ADDITIONAL RECORDS:
> F.ROOT-SERVERS.NET.     3600000 IN      A       192.5.5.241
> B.ROOT-SERVERS.NET.     3600000 IN      A       128.9.0.107
> J.ROOT-SERVERS.NET.     3600000 IN      A       198.41.0.10
> K.ROOT-SERVERS.NET.     3600000 IN      A       193.0.14.129
> L.ROOT-SERVERS.NET.     3600000 IN      A       198.32.64.12
> M.ROOT-SERVERS.NET.     3600000 IN      A       202.12.27.33
> I.ROOT-SERVERS.NET.     3600000 IN      A       192.36.148.17
> E.ROOT-SERVERS.NET.     3600000 IN      A       192.203.230.10
> D.ROOT-SERVERS.NET.     3600000 IN      A       128.8.10.90
> A.ROOT-SERVERS.NET.     3600000 IN      A       198.41.0.4
> H.ROOT-SERVERS.NET.     3600000 IN      A       128.63.2.53
> C.ROOT-SERVERS.NET.     3600000 IN      A       192.33.4.12
> G.ROOT-SERVERS.NET.     3600000 IN      A       192.112.36.4
>
> ;; rcode = 0, ancount=0
> ;; res_querydomain(www.heise.de, , 1, 1)
> ;; res_query(www.heise.de., 1, 1)
> ;; res_mkquery(0, www.heise.de., 1, 1)
> ;; res_send()
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56228
> ;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
> ;; QUESTIONS:
> ;;      www.heise.de, type = A, class = IN
>
> ;; Querying server (# 1) address = 193.0.0.193
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56228
> ;; flags: qr rd; Ques: 1, Ans: 0, Auth: 13, Addit: 13
> ;; QUESTIONS:
> ;;      www.heise.de, type = A, class = IN
>
> ;; AUTHORITY RECORDS:
> .       440240  IN      NS      F.ROOT-SERVERS.NET.
> .       440240  IN      NS      B.ROOT-SERVERS.NET.
> .       440240  IN      NS      J.ROOT-SERVERS.NET.
> .       440240  IN      NS      K.ROOT-SERVERS.NET.
> .       440240  IN      NS      L.ROOT-SERVERS.NET.
> .       440240  IN      NS      M.ROOT-SERVERS.NET.
> .       440240  IN      NS      I.ROOT-SERVERS.NET.
> .       440240  IN      NS      E.ROOT-SERVERS.NET.
> .       440240  IN      NS      D.ROOT-SERVERS.NET.
> .       440240  IN      NS      A.ROOT-SERVERS.NET.
> .       440240  IN      NS      H.ROOT-SERVERS.NET.
> .       440240  IN      NS      C.ROOT-SERVERS.NET.
> .       440240  IN      NS      G.ROOT-SERVERS.NET.
>
> ;; ADDITIONAL RECORDS:
> F.ROOT-SERVERS.NET.     3600000 IN      A       192.5.5.241
> B.ROOT-SERVERS.NET.     3600000 IN      A       128.9.0.107
> J.ROOT-SERVERS.NET.     3600000 IN      A       198.41.0.10
> K.ROOT-SERVERS.NET.     3600000 IN      A       193.0.14.129
> L.ROOT-SERVERS.NET.     3600000 IN      A       198.32.64.12
> M.ROOT-SERVERS.NET.     3600000 IN      A       202.12.27.33
> I.ROOT-SERVERS.NET.     3600000 IN      A       192.36.148.17
> E.ROOT-SERVERS.NET.     3600000 IN      A       192.203.230.10
> D.ROOT-SERVERS.NET.     3600000 IN      A       128.8.10.90
> A.ROOT-SERVERS.NET.     3600000 IN      A       198.41.0.4
> H.ROOT-SERVERS.NET.     3600000 IN      A       128.63.2.53
> C.ROOT-SERVERS.NET.     3600000 IN      A       192.33.4.12
> G.ROOT-SERVERS.NET.     3600000 IN      A       192.112.36.4
>
> ;; rcode = 0, ancount=0
> res_search failed
> error: unknown host www.heise.de
>
>
> $ /boot/home/Develop/OpenBeOS/net_kit/source/apps/traceroute/traceroute
www.ripe.net
> ;; res_setoptions(" debug", "conf")..
> ;;      debug
> gethostname
> find_net_setting
> ;; res_init()... default dnsrch list:
> ;;
> ;;      ..END..
> ;; res_querydomain(www.ripe.net, <Nil>, 1, 1)
> ;; res_query(www.ripe.net, 1, 1)
> ;; res_mkquery(0, www.ripe.net, 1, 1)
> ;; res_send()
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44774
> ;; flags: rd; Ques: 1, Ans: 0, Auth: 0, Addit: 0
> ;; QUESTIONS:
> ;;      www.ripe.net, type = A, class = IN
>
> ;; Querying server (# 1) address = 193.0.0.193
> ;; got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44774
> ;; flags: qr aa rd; Ques: 1, Ans: 2, Auth: 6, Addit: 3
> ;; QUESTIONS:
> ;;      www.ripe.net, type = A, class = IN
>
> ;; ANSWERS:
> www.ripe.net.   172800  IN      CNAME   peach.ripe.net.
> peach.ripe.net. 172800  IN      A       193.0.0.203
>
> ;; AUTHORITY RECORDS:
> ripe.net.       172800  IN      NS      ns.ripe.net.
> ripe.net.       172800  IN      NS      ns.eu.net.
> ripe.net.       172800  IN      NS      auth03.ns.uu.net.
> ripe.net.       172800  IN      NS      ns2.nic.fr.
> ripe.net.       172800  IN      NS      munnari.OZ.AU.
> ripe.net.       172800  IN      NS      sunic.sunet.se.
>
> ;; ADDITIONAL RECORDS:
> ns.ripe.net.    172800  IN      A       193.0.0.193
> auth03.ns.uu.net.       3600    IN      A       198.6.1.83
> ns2.nic.fr.     172800  IN      A       192.93.0.4
>
> traceroute to peach.ripe.net (193.0.0.203), 64 hops max, 40 byte packets
> $
>
>


Other related posts: