Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Nov 2003 16:42:03 +0100 (CET)
From:      "Cordula's Web" <cpghost@cordula.ws>
To:        root@pukruppa.de
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Static IP and fully qualified domain names
Message-ID:  <200311211542.hALFg3pd067288@fw.farid-hajji.net>
In-Reply-To: <20031121161852.H28859@pukruppa.net> (message from Peter Ulrich Kruppa on Fri, 21 Nov 2003 16:35:59 %2B0100 (CET))
References:  <20031121161852.H28859@pukruppa.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> My ISP was so nice to give me a domain name (pukruppa.net) and
> assign it statically to an IP (213.146.114.24).
> [So now everybody in the world can telnet pukruppa.net and crack
> my private machine :-)  ]
> 
> From reading manuals one should think, that now I could give my
> machines names like one.pukruppa.net, two.pukruppa.net, etc...
> and all these would be reachable via internet - but they aren't.
> The only one that can be accessed is pukruppa.net .

You need to add A records (or CNAME records) to your DNS
zone pukruppa.net:

  one.pukruppa.net.     A   213.146.114.24
  two.pukruppa.net.     A   213.146.114.24
  ...

Or, alternatively, use CNAME (don't forget the trailing dots)

  pukruppa.net.         A     213.146.114.24
  one.pukruppa.net.     CNAME pukruppa.net.
  two.pukruppa.net.     CNAME pukruppa.net.
  ...

Setting A records directly saves one additional lookup though.
You could also use Wildcard DNS records (*.pukruppa.net.   A  ....),
but I wouldn't recommend this.

BTW, you could also use a better PTR record for your IP:

24.114.146.213.IN-ADDR.ARPA domain name pointer reverse-213-146-114-24.dialin.kamp-dsl.de

kamp-dsl will be glad to set up a reverse record for you
if you asked them.

-- 
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311211542.hALFg3pd067288>