[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] NIS Problem
- Subject: [ale] NIS Problem
- From: Christopher.Coleman at nsc.com (Christopher Coleman)
- Date: Tue, 20 Sep 2005 12:52:01 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
I believe I understand how this works. Host1 will have 4 entries created
host1 192.168.1.1 host1 host1.domain.com loghost mailhost
host1.domain.com 192.168.1.1 host1 host1.domain.com loghost mailhost
loghost 192.168.1.1 host1 host1.domain.com loghost mailhost
mailhost 192.168.1.1 host1 host1.domain.com loghost mailhost
This way the lookup works regardless of the name used. Sorry for
"thinking out load".
Christopher Coleman wrote:
> My host table looks like this:
>
> 127.0.0.1 localhost localhost.local domain
> 192.168.1.1 host1 host1.domain.com loghost mailhost
> 192.168.1.2 host2 host2.domain.com
>
>
> I'm using NIS on Red Hat EL 3. The hosts.byname generate is more than
> twice the size of the orignal host table. My real host table has 38K
> entries and the output of `ypcat hosts | wc -l` is over 68K in size. I
> narrowed down the problem to following gawk command in the Makefile.
>
> gawk '/^[0-9]/ { for (n=2; n<=NF ; n++) print $n"\t"$0 }' hosts
>
> If there are only two fields in the host table, then it seems to work
> okay. Can any one point me to the problem with the command?
>
>
> Thanks in advance,
>
>
> Chris Coleman
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Christopher.Coleman.vcf
Type: text/x-vcard
Size: 320 bytes
Desc: not available