How to host a single record

Barry Margolin barmar at alum.mit.edu
Tue Jan 27 22:27:53 UTC 2004


In article <bv6l11$7ug$1 at sf1.isc.org>,
 "Eric Schubert" <eschubert at dataweb.com> wrote:

> Question: How do I alter the zone file below for newcustomer.com so it
> only answers for 'certify' and nothing else?
> 
> Here's a template of a 'standard' zone file for our setup.
> -------------------------------------------------------
> $ORIGIN com.
> newcompany      10800   IN      SOA     dns1.us.com. dnsadmin.us.com. (
>                 2001050201 3600 900 86400 10800 )
> ;Cl=2
>                 10800   IN      NS      dns1.us.com.              ;Cl=2
>                 10800   IN      NS      dns2.us.com.              ;Cl=2
>                 10800   IN      MX      10 mail.newcompany.com.
> ;Cl=2
>                 10800   IN      A       192.168.0.5
> ;Cl=2
> $ORIGIN newcompany.com.
> mywebs          10800   IN      A       192.168.0.5            ;Cl=2
> www             10800   IN      CNAME   mywebs
> ;Cl=2
> ftp             10800   IN      CNAME   ftp.us.com.               ;Cl=2
> secure          10800   IN      CNAME   secure.us.com.            ;Cl=2
> 
> --------------------------------------------------------

Change it to:

@ IN SOA dns1.us.com. dnsadmin.us.com ( ... )
  IN NS  dns1.us.com.
  IN NS  dns2.us.com.
  IN MX  10 mail.newcompany.com.
  IN A   192.168.0.5

and change the entry in named.conf to:

zone "certify.newcompany.com" {
  ...
}

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA


More information about the bind-users mailing list