On Sun, 28 Nov 1999, Gaurav Agarwal wrote:

> Hi all !
>       I was setting up DNS on my machine running Red Hat Linux 6.0
> Actually, i wanted the DNS such that it would lookup and resolve only my
> domain name
> and resolve any other domains through the internet.
> My machine is not always connected to the internet.
> 
> But now, after doing this, i am not able to resolve external domains ...
> eg ping my_machine works
> but not
> ping linux.com
> 
> Please help me set it up correctly, as it does'nt even send the mails !
> 
> THanks a lot !
> Regards
> Gaurav.
> 
> Details of files i edited ...
> _________________________________________________
> 
> i edited my /etc/named.conf and added:
> <snip>
> zone "prayagonline.com" {
>       type master;
>       file "named.prayagonline.com";
>       };
> </snip>
> where prayagonline.com is my machine's domain.
> and created the file named.prayagonline.com
> reading
> <snip>
> @       IN      SOA     t.prayagonline.com. hostmaster.prayagonline.com. (
>                                       1997022700 ; Serial
>                                       28800      ; Refresh
>                                       14400      ; Retry
>                                       3600000    ; Expire
>                                       86400 )    ; Minimum
>               IN      NS      t
>               IN        MX 10   t
> 
> t             IN      A        192.168.5.3
> mtx           IN      A        192.168.5.4
> 
> www           IN      A       CNAME   t
> </snip>
> and finally my resolve.conf reads
> search prayagonline.com
> nameserver 192.168.5.3
> 
> Please Help 1
> Thanks again ...
> 
> 
Gaurav,

        You have two options. Either you should set up a roots.hints file
which will tell your DNS server where the root name servers are located,
or you can rely on the fact that your ISP will have done this. The second
approach invovles you appending your ISP's domain name on the 'search'
line of resolve.conf, and also specifying (in addition to yours) their
nameservers.

        The first approach is more involved. I would suggest reading the
DNS-HOWTO in order to do that. Or the 'DNS and BIND' book by Albitz and
Liu.

Regards,
Kenneth

Reply via email to