fixing localhost -> DNS Server -> NAMED -> NDC -> NOTFOUND

fixing localhost -> DNS Server -> NAMED -> NDC -> NOTFOUND

Post by Brad Co » Sat, 13 May 2000 04:00:00



I'm trying to make localhost work in netscape (instead of routing to
http://www.localhost.com as it does now) on Redhat 6.2 system on a local
lan connected to external internet via netopia analog router).

I set up a hosts file to define localhost as an alias for
localhost.cox.dom (internal fake names). While that once worked, I
touched something somewhere and it no longer does.

By following the cryptic syggestions at www.localhost.com, I decided I
needed to set up a DNS server for the local lan (8 machines) via
http://www.linuxdoc.org/HOWTO/DNS-HOWTO-3.html under "A caching only
name server">

All went well til the section "Starting named", which says type
"/usr/sbin/ndc start". There's nothing there by the name ndc, nor under

thing called under Redhat 6.2?

Or is setting up DNS the wrong thing altogether? I'm basically trying to
get a combined Windows 2000 Server, Linux, and Macintosh combined
network to cooperate.

 
 
 

fixing localhost -> DNS Server -> NAMED -> NDC -> NOTFOUND

Post by David Efflan » Sun, 14 May 2000 04:00:00



>I'm trying to make localhost work in netscape (instead of routing to
>http://www.localhost.com as it does now) on Redhat 6.2 system on a local
>lan connected to external internet via netopia analog router).

That is because Netscape thinks that localhost is an incomplete name and
does a web search to try to find a similar fully qualified domain name.
Seems like a bug to me.  To fix that in Netscape go to Edit, Perferences,
Navigator, Smart Browsing and UNcheck "Enable internet keywords".

Quote:>I set up a hosts file to define localhost as an alias for
>localhost.cox.dom (internal fake names). While that once worked, I
>touched something somewhere and it no longer does.

127.0.0.1 should not have any name or aliases other than localhost
(although, Red Hat also has localhost.localdomain so something that thinks
it needs a dot will work).  If you have another local name that needs to
be recognized when it may not be connected, use another 127.0.0.x loopback
IP like 127.0.0.2.  I do that with my ppp static hostname so sendmail and
apache will work off or online.

>By following the cryptic syggestions at www.localhost.com, I decided I
>needed to set up a DNS server for the local lan (8 machines) via
>http://www.linuxdoc.org/HOWTO/DNS-HOWTO-3.html under "A caching only
>name server">

>All went well til the section "Starting named", which says type
>"/usr/sbin/ndc start". There's nothing there by the name ndc, nor under

>thing called under Redhat 6.2?

Red Hat usually has a package for a caching nameserver which should tell
you if you are missing something needed to make it work.  But I don't know
if the DNS package itself is bind or named.  All I know is that I do have
'ndc' which runs 'named' and it all works following the DNS-HOWTO

--

http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/

 
 
 

fixing localhost -> DNS Server -> NAMED -> NDC -> NOTFOUND

Post by Michael Taylo » Sun, 25 Jun 2000 04:00:00


I fixed this very easily with

127.0.0.1 www.localhost.com

Even if Netscape tries to be tricky, it still bounces right back to my
machine.  I think this should always work.  Let me know if I'm wrong.

Cheers,

Mike

 
 
 

1. <><><> MOUNTING EXTENDED PARTITION <><><>

I have a 10 GB UDMA IDE drive formatted with Windows.  The first partition
is FAT32, and the second is NTFS.  I can successfully mount the first, but
not the second.  Any ideas?

Suse 7.2 on i86
the drive is mounted on /dev/hdc, and I CAN see hda1, but not hda2

2. FreeBSD: APM & Power Switch

3. Wanted: <><><> Unix Specialist <><><>

4. magic cookie?

5. LILO help <><><><><><>

6. test

7. >>---> Software Jobs! >>--->

8. Installing Linux and NT side-by-side

9. <<->> x-server and backspace: help needed please <<->>

10. Client ->(HTTPS) -> Proxy -> (HTTP) -> Server

11. Win95/IPX -> IP ->PPP ->Linux ->Novell 3.12

12. <Alt>+<key> = <Esc><key> ?

13. A <= ping => B => OK A <= TCP => B => FAILS