[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DNS works nowhere but with Netscape



Hello everybody,

In response to my message regarding the malfunction of DNS on my Debian 
(Potato) Machine, here's the invaluable suggestion (yes, it worked 
immediately) that Minta Adrian (now, one of my personal heroes) so promptly 
and kindly offered me. I think it's worth sharing this expertise with the 
other list participants.

> > Hello Paulo,
> Here's my advice:
>        Step 1 :Install the bind package.
>        Step 2 :Modify /etc/resolv.conf  to use your machine as DNS
>        server (this is the fastest solution)
>        ---
>        /etc/resolv.conf (owner:root group:root permissions: 644)
>        nameserver 127.0.0.1
>        ---
>        Step 3 :Modify only one file in the bind configuration in order
>        to use your ISP DNS by adding the forwarders directive:
>        ---
>        /etc/bind/named.conf
>
>        options {
>         directory "/var/cache/bind";
>         forward first;
>         forwarders {
>                         // DNS1 for ISP1
>                         200.246.5.2;
>                         // DNS 2 for ISP1
>                         200.30.0.97;
>                         // DNS 1 for ISP 2
>                         193.130.1.1;
>                         // other DNS for others ISP etc ..
>                         ..........
>                 };
>          };
>
>          // reduce log verbosity on issues outside our control
>          .......etc..........
>          ---
>          You could put the DNS IP's of all your providers. When you are
>          on-line the server will ask all for the names and will figure
>          out who is answering quicker (this is ok for 2 max. 3 ISP).
>          Step 4: Let the other files with the default content. Run the
>          named server each time when the machine boot (this is done by
>          default on Debian if the bind package is installed) .
>          No matter if you are or not online ! As soon you will go online
>          your DNS server will answer the queries.
>          Step 5: Watch the ppp-up and ip-up not to modify your
>          /etc/resolv.conf file when you go online !
>          Step 6: Enjoy the results.
>
> Some theory:
>      - the Debian potato comes with a preconfigured cache DNS.
>      - is better to use a local DNS because the answers will be cached
>      and if you will look for www.yahoo.com more than once the answers
>      will come from the cache instead of asking your ISP.
>      - if your ISP DNS is broken (this is happened to me once) your
>      DNS server will ask the main Internet DNS servers and you will
>      still be able to use name instead of IP's.
>      - if you have a small local network you will need to edit your
>      DNS configuration files in /etc/bind/ directory to specify your
>      network and mail exchangers etc (see DNS HOWTO and BOG for
>      details)
>      - if your provider use dynamic DNS (very ugly WINDOZE thing) do a
>      little spy on him by using nslookup to determine the DNS address
>             ---
>             #nslookup
>
>             >set q=any
>             >ls -a stupid.windoze.isp.com
>
>             ---
>      - to connect to the Internet you could use wvdial is better
>      compared to pon/poff :))
>
> PS: I attached my /etc/resolv.conf and my /etc/bind/named.conf
>
> Good Luck !

Best reagrds,

-- 
Paulo Gustavo Soares Fonseca
---------------------------------
R. Sao Clemente, 10 / 809
Botafogo - Rio de Janeiro - RJ
CEP: 22260-000



Reply to: