[NTLUG:Discuss] can I use *.domaon.com in /etc/hosts?
m m
llliiilll at hotmail.com
Tue Dec 3 13:25:32 CST 2002
>From: Chris Albertson <alb at chrisalbertson.com>
>No dice.
this is the answer I want. thanks.
It's a straight lookup over the table. It just treats the * as any
>other character.
>If you're running this as a firewall and need to have local, internal name
>resolution for internal hosts IP addresses... I'd suggest running an
>internal
>DNS. Put the internal DNS on a linux box inside the firewall and make the
>firewall use it as it's primary name server. (Clear out your /etc/hosts
>too)
>Then, you can copy the zone file for the external resolution into your
>internal
>DNS server and change the IP addresses from the external values to the
>internal
>values.
>This way, you'll have all the external names pointing to internal IP
>addresses
>for the firewall only.
>
>I think that would be fairly low work on your part.
>
>--
>Chris Albertson
>alb at chrisalbertson.com
>
>186,300 miles per second. It's not just a good idea, it's the law.
>
>
>Quoting m m <llliiilll at hotmail.com>:
>
> >
> > Quoting m m <llliiilll at hotmail.com>:
> >
> > >Hi All:
> > >
> > >I do think that we can use *.domaon.com in /etc/hosts, right?
> > >what is the way too define/assign multiple host name in /etc/hosts
>except
> > >use DNS or NIS.
> > >
> > >thanks
> >
> > If I understand the question, you can do this:
> >
> > 192.168.1.9 nighthawk.dyndns.org nightscape.shadowland.net nightscape
> >
> > and similar things. This is what I've done for my web/mail/database
>server
> > that sits behind the firewall.
> >
> > yes. that is my question. what about if you have 1000 host/domain name?
> > again, do not use DNS or other application, use /etc/hosts files only.
> >
> > what I want to know is if we can use * in /etc/hosts file?
> >
> >
> >
> >
> >
> >
> >
> >
> > Ed
> >
> > -------------------------------------------------
> > This mail sent through IMP: http://horde.org/imp/
> >
> >
> >
> >
> > _________________________________________________________________
> > Protect your PC - get McAfee.com VirusScan Online
> > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> >
> >
> > _______________________________________________
> > https://ntlug.org/mailman/listinfo/discuss
> >
>
>
>-------------------------------------------------
>This email was sent from www.chrisalbertson.com
>using the IMP mailing program, part of the Horde suite
>of information management tools.
>http://horde.org/
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
More information about the Discuss
mailing list