Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 2002 08:43:43 -0600
From:      "DaleCo Help Desk" <daleco@daleco.biz>
To:        "Tiago Andre" <tiagoandre@hotmail.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: your mail about "domain name"
Message-ID:  <00f701c28735$3d22ea30$fa00a8c0@DaleCoportable>
References:  <F122m9t0CI76rOJhKPc000000c1@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Tiago Andre" <tiagoandre@hotmail.com>
Subject: Re: your mail about "domain name"


> what i mean is that other hosts can 
>ping your IP but not your name...
> 
> My DNS server is in my LAN
> and i have acces to it
> 
 
Setting up BIND is a pretty complex subject.
There is a chapter in the handbook devoted
to it.  Generally, if you've already got it
working <?> it should just be a matter of
adding the new host's name to the zone file
on the nameserver, incrementing the serial
number in the zone file, and restarting the
name daemon.

Something like<as root>:

$cd /etc/namedb
$ed my.domain.hosts

<increment the serial number>

<add an A record for your new host>
my.old.host.         IN      A       192.168.0.100
my.new.host.       IN      A       192.168.0.101

<restart the name daemon>
$ndc restart

make sure your LAN hosts are using
*your* DNS server to do their lookups.

<test your DNS server's response---
in the example, I'm shelled into the nameserver>

$nslookup - your.dns.server
Default Server:  localhost.my.domain
Address:  127.0.0.1

>my.new.host

Server:  localhost.my.domain
Address: 127.0.0.1

Name:    my.new.host
Address:   192.168.0.101

That should about take care of it, unless
I'm not understanding the questions, which
is quite possible, even likely....

HTH,

Kevin Kinsey


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00f701c28735$3d22ea30$fa00a8c0>