dns and subdomain(some corrections)

gliu ryuu-gou at mail1.dnet.gr.jp
Fri Feb 1 17:10:28 UTC 2002


Hi
As a newbee in setting Dns server,I have a few questions in learining.

The  Administrator of my company have given me a subdomain to be accessed from internet.I was response for setting the domain server.

go.nu -->the domain of my company    ip 210.220.18.2

s.go.nu-->the domain name of my department   ip  210.220.3.100

Now I tried to set up a linux server just for test.

dns server name -->ns.s.go.nu (domain name--> s.go.nu)    ip-->192.168.2.3  gateway-->192.168.2.1 
I found there was no problem at solving machine in 192.168.2.0/24.(ping hostname<->ping ip).It was impossible to ping outside.eg: ping ip  (of yahoo) directly Ok,but ping www.yahoo.com error.

Here are my setting files.
zone "." {
    type hint;
    file "named.cache"; downloaded  from ftp://internic.net and copied to /var/named/
};

zone "s.go.nu"{
    type master;
    file "db.s.go.nu"
};

file db.s.go.nu

@  SOA ns.s.go.nu. root at s.go.nu. (
    1997022700 ; Serial 
    28800 ; Refresh 
    14400 ; Retry 
    3600000 ; Expire 
    86400 ; Minimum 
)
NS ns.s.go.nu.
ns IN A 192.168.2.7
test IN A 192.168.2.5

file /etc/resolve.conf
nameserver 192.168.2.7


My questions are
 
1. How can not I ping nameserver at internet although i setup the root.cache.Is it for the local ip address? Can I do it if I use the true internet address(210.220.3.100)?

2. Do I have to use the localhost and 0.0.127.in-addr.arpa as two zones. System knows localhost and 127.0.0.1 each others in default.

3. As using "master" type ,how can the dns server  refresh its database by the time ( 
    1997022700 ; Serial 
    28800 ; Refresh 
    14400 ; Retry 
    3600000 ; Expire 
    86400 ; Minimum )
 
Thanks in advance!



More information about the bind-users mailing list