Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!mcsun!ukc!inmos!gwh@lion.inmos.co.uk From: gwh@lion.inmos.co.uk (Graham Hudspith) Newsgroups: comp.protocols.tcp-ip.domains Subject: Does anyone use RFC1101 ?? Message-ID: <14123@ganymede.inmos.co.uk> Date: 29 Jan 91 16:44:46 GMT References: sockets, BIND Sender: news@inmos.co.uk Reply-To: gwh@inmos.co.uk () Organization: INMOS Limited, Bristol, UK. Lines: 77 I am working on an application which needs to implement the gethostent(3N) and getnetent(3N) socket calls using a DNS. Using rfcs 1034 and 1035 I have gotten gethostbyname() and gethostbyaddr() working. It seems that rfc 1101 is purpose-built for my needs (to get getnetbyname() and getnetbyaddr() working), but has anyone ever tried it? I have acquired the source code for BIND v4.8 and have tried to mimic the code for gethostby... to make getnetby... work. Unfortunately, although getnetbyaddr() was fairly simple, by adding: 0.0.198.138.IN-ADDR.ARPA. PTR br-ether. to the named.revzone file, getnetbyname() is proving more difficult. I have added a line: br-ether. PTR 0.0.198.138.IN-ADDR.ARPA. to the named.zone file and called: res_query("br-ether", C_IN, T_PTR, ...); Although the DNS returns an answer with the string "0.0.198.138.IN-ADDR.ARPA" present, it also indicates SERVFAIL in the return code. I don't want to hack the code for the DNS - the software must work with any DNS, so is there anyway I can hack the Resolver libraries to make the getnetent(3N) calls work?? The DNS that I am using is the standard DNS supplied with SunOs 4.1, here are the files: :::::::::::::: /etc/named.boot :::::::::::::: primary inmos.co.uk /etc/named.zone primary 198.138.IN-ADDR.ARPA /etc/named.revzone :::::::::::::: /etc/named.revzone :::::::::::::: 198.138.IN-ADDR.ARPA. IN SOA eagle.inmos.co.uk. gwh.inmos.co.uk. ( 1.0010 3600 300 360000 3600 ) ; 7.35 PTR eagle.inmos.co.uk. 204.35 PTR trout.inmos.co.uk. ; 0.0 PTR br-ether. :::::::::::::: /etc/named.zone :::::::::::::: @ IN SOA eagle.inmos.co.uk. gwh.inmos.co.uk. ( 1.0010 3600 300 360000 3600 ) ; eagle IN A 138.198.35.7 IN HINFO Sun-4/60 UNIX trout IN A 138.198.35.204 IN HINFO NCD X-Terminal ; br-ether. PTR 0.0.198.138.IN-ADDR.ARPA. Thanks for struggling through the article if you got this far!! Graham Hudspith. Graham W. Hudspith INMOS Ltd, Bristol | EMail(UK) ukc!inmos!gwh ---------------------------------------| or gwh@inmos.co.uk I wouldn't give a XXXX for any other | Internet: gwh@inmos.com windowing system | UUCP:(US) uunet!inmos.com!gwh