*BSD News Article 86100


Return to BSD News archive

From: Pascal.Gienger@uni-konstanz.de (Pascal Gienger)
Subject: Re: Hostname Instead of IP address
Newsgroups: comp.unix.bsd.freebsd.misc
References: <5a8j97$ncf@iapetus.comco.com>
Lines: 42
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 960722]
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <32ce65ac.0@finesse.isdn.uni-konstanz.de>
Date: 4 Jan 97 14:14:04 GMT
NNTP-Posting-Host: pc193.isdn.uni-konstanz.de
Organization: University of Constance, Germany
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.nacamar.de!fu-berlin.de!news.belwue.de!news.uni-konstanz.de!not-for-mail
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33531

root@nwpros.com wrote:
: On my dialups now, they all resolve to IP addresses. How can I have 
: them resolveto a hostname.  Would I need to run DNS on the dialup server
: or put entries in  the main DNS server? 

This is the classical question... The solution is named "reverse DNS mapping".

You must define a zone ".IN-ADDR.ARPA" in your named.boot-file.
(Supposing you are running BIND).
Then in that zone file, map IPs with PTR records to names.

Keep in mind that "100.150.200.250" as IP gets invoked as
"250.200.150.100.IN-ADDR.ARPA".

The numbers are reversed. So if you have a 192.168.38.x subnet, declare a zone
named "38.168.192.IN-ADDR.ARPA" and put your PTR records in it like

21  PTR i.checked.it.

22  PTR hugo.example.org.

So 192.168.38.22 is "hugo.example.org" and 192.168.38.21 is "i.checked.it".

For your dialups it would be something like

1  PTR gateway.dialup.myservice.com.
2  PTR modem1.dialup.myservice.com.
3  PTR modem2.dialup.myservice.com.
...... and so on

It is a pity that many Providers don't handle reverse DNS mapping anymore,
because they think it is not important or they don't know how to do it or
they use some sort of Microsoft DNS Server doesn't handling that correctly...

Pascal
-- 
Pascal.Gienger    Zentrale Rechner Rechenzentrum Universität Konstanz
@uni-konstanz.de  Voice: +49 7531 16074   Fax  : +49 7531 20370
                  WWW  : http://www.geocities.com/WestHollywood/1381/
Das Wort "WINDOWS" stammt aus einem alten Sioux-Dialekt und bedeutet:
"Weißer Mann starrt durch Glasscheibe auf Sanduhr." (gefunden in d.c.t.)