??? domainmart.net on 1 machine and www.domainmart.net on another server

x at y.z.com x at y.z.com
Sat Mar 25 09:05:35 UTC 2000


I am trying to set up the nameserver for domainmart.net.
Initially, I would like www.domainmart.net to point to its current
location.

Eventually, I would like to host other domains (both domain.com and
www.domain.com). I would like to host domain.com even though it does not
have a tcp/ip address assigned to it and www.domain.com by pointing to
the location where it is really hosted, for example
http://www.Yahoo.com/domain .

I got 5 tcp/ip addresses assigned 63.202.70.186-63.202.70.190
my subnet mask = 255.255.255.248

56 ns1 ~ $ rpm -qa | grep -i bind
bind-8.2.1-7mdk

If I decide to use h2n, do I have the correct switches:

#h2n options for domainmart.net
#version 8
-v 8
#domain = domainmart.net
-d domainmart.net
#nameservers = ns1,2
-s ns1
-s ns2
#network = 63.202.70.186-63.202.70.190 or 63.202.70.184
#my subnet mask = 255.255.255.248
-n 63.202.70.184:255.255.255.248
#contact = gchiht at 2xtreme.net
-u gchiht.2xtreme.net

I created the following alias:
alias h2d 'pushd /var/named/ ; \
h2n -f /root/opt.txt ; kill -HUP `cat /var/run/named.pid` ;\
grep -i named /var/log/messages | tail -3 ; popd '

and executed it.

These are the contents of the directory:

  /var/named:
  total 16
  drwxr-xr-x    2 root     root         1024 Mar 24 17:46 .
  drwxr-xr-x   22 root     root         1024 Jan  2  1999 ..
  -rw-r--r--    1 root     root          171 Mar 24 17:46 boot.cacheonly
  -rw-r--r--    1 root     root          193 Mar 24 17:46 db.127.0.0
  -rw-r--r--    1 root     root          141 Mar 24 17:46
db.63.202.70.184
  -rw-r--r--    1 root     root          182 Mar 24 17:46 db.domainmart
  -rw-r--r--    1 root     root          322 Mar 24 17:46 named.boot
  -rw-r--r--    1 root     root         2769 May 12  1999 named.ca
  -rw-r--r--    1 root     root          413 Mar 24 13:47 named.local
(h2n MUST be executed in the directory were the db files reside,
otherwise it will create them in the directory where it is executed)

the nameserver function seems to be working:
111 ns1 ~ $ nslookup socrates.berkeley.edu 63.202.70.187 
Server:  adsl-63-202-70-187.dsl.snfc21.pacbell.net
Address:  63.202.70.187

Name:    socrates.berkeley.edu
Address:  128.32.25.13

112 ns1 ~ $ nslookup uclink4.berkeley.edu 63.202.70.187 
Server:  adsl-63-202-70-187.dsl.snfc21.pacbell.net
Address:  63.202.70.187

Name:    uclink4.berkeley.edu
Address:  128.32.25.39

I can send mail but cannot receive mail.

Also, can I put the www.domain.com entries in the hosts file and use h2n
to generate the corresponding nameserver files?

How do I park domain names that have not yet been assigned tcp/ip
addresses?

These are the nameserver files I got with the machine:
/etc/named.boot:
----------------

;
; a caching only nameserver config
;
directory                              /var/named
cache           .                      named.ca
primary         0.0.127.in-addr.arpa   named.local

/etc/named.conf:
---------------
// generated by named-bootconf.pl

options {
        directory "/var/named";
        /*
         * If there is a firewall between you and nameservers you want
         * to talk to, you might need to uncomment the query-source
         * directive below.  Previous versions of BIND always asked
         * questions using port 53, but BIND 8.1 uses an unprivileged
         * port by default.
         */
        // query-source address * port 53;
};

// 
// a caching only nameserver config
// 
zone "." {
        type hint;
        file "named.ca";
};

zone "0.0.127.in-addr.arpa" {
        type master;
        file "named.local";
};

/var/named/named.ca:
--------------------
;
..                        3600000      NS    I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17

/var/named/named.local:
----------------------
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      localhost.

1       IN      PTR     localhost.



 Thank you very much.
If you have any questions, please don't hesitate to contact me.
 Thanks, Ghaouar Camij Toschian,
 gchiht at 2xtreme.net, 510 5408013, 2500 Durant # 310, Bk, CA 94704
 http://www.domainmart.net/InternetAccess/buildings.htm
 http://www.istanbulexpress.com/oldsite/sweetener.html

Visualize that the smoke of cigarettes is unpleasant to other people.
Visualize that peoples' civic duties do NOT include having to breathe
the
smoke from cigarettes.
Visualize that astrologers, fortune tellers, tarot card readers,
psychics and
palm readers are Crooks, Fools or Both.
Visualize using the Metric System.



More information about the bind-users mailing list