Professional Web Applications Themes

Putting DNS names in NIS tables. - Linux / Unix Administration

Do most of you Unix admins put your DNS names in your NIS host tables? Just wondering, I've heard differing options like you don't need it with resolv.conf or you do if you turn the switch on in /var/yp/Makefile, etc. Anyway an example would be: # NIS Hosts with DNS names also 123.4.5.6 fred fred.flintstone.org 123.4.5.7 wilma wilma.flintstone.org What do you do? Thanks...

  1. #1

    Default Putting DNS names in NIS tables.

    Do most of you Unix admins put your DNS names in your NIS host tables?
    Just wondering, I've heard differing options like you don't need it
    with resolv.conf or you do if you turn the switch on in
    /var/yp/Makefile, etc.

    Anyway an example would be:

    # NIS Hosts with DNS names also

    123.4.5.6 fred fred.flintstone.org
    123.4.5.7 wilma wilma.flintstone.org


    What do you do?

    Thanks

    george.e.sullivan@saic.com Guest

  2. #2

    Default Re: Putting DNS names in NIS tables.

    When I was running NIS, long long ago, we explicitly did not keep NIS
    host tables.

    Our /etc/hosts file kept the hosts we needed to maintain access to
    despite DNS failures - NFS servers, NIS servers, and so on, and that
    was it. We didn't want to move that into NIS, because we needed the
    NIS entries before NIS was up, so we'd be splitting our local entries
    into multiple places.. it just seemed like unnecessary work.

    *rereads article*

    Hm. Are you talking about FQDNs, rather than just shortnames? whoof.
    No matter what, if I were using NIS for host name service, I'd put any
    hostname I'd be likely to refer to the server with into NIS, to avoid
    the risk of having one name resolved by one service, and another by the
    other. Consistency of behavior and all that.

    Triss Guest

  3. #3

    Default Re: Putting DNS names in NIS tables.

    In article <googlegroups.com>,
    <com> wrote: 

    The main reason for wanting to have host names that are available by dns
    appear in NIS is if you have machines that do not understand dns. For
    example, our old SunOS 4.1.* (Solaris 1.*) machines do not know how to
    use dns (mostly, there are some parts that do). If you need just a few
    names to appear in NIS, you can enter them in the hosts file on your NIS
    master. If you want everything to be available, you would edit the NIS
    make file (/var/yp/Makefile) and place the line 'B=-b' in it near the top.
    There is a comment showing you where. This does not actually load the
    host names into the NIS hosts map. Instead, it causes any query for a name
    not already in the map to cause a dns query to happen and then the result
    is returned as though the name were in the map. If you put the 'B=-b'
    line in your make file, then the only entries that you would need in the
    NIS master's hosts file would be those not in dns or those that you might
    need if dns is down.
    --
    Tom Schulz
    com
    Thomas Guest

  4. #4

    Default Re: Putting DNS names in NIS tables.

    com wrote: 

    Reasons I can think of that someone would want to do this:

    1) DNS is too slow. Actual fix is to correct your broken
    DNS config. Any correct DNS config is at least as fast
    as NIS.

    2) DNS goes down too often. Irrational fear.

    I only put hosts in /etc/hosts that need to be there
    without DNS running.

    In the past I have build NIS tables with all local
    hosts, but the only reason I did that was to build my local
    DNS tables from it.

    Doug Guest

  5. #5

    Default Re: Putting DNS names in NIS tables.

    Thanks to all who have given input to this. I will keep my DNS healthy
    and my host lite.

    george.e.sullivan@saic.com Guest

  6. #6

    Default Re: Putting DNS names in NIS tables.

    check my short story out..

    http://nova.powix.org/~seeweed/web/motgate.com/
    I tend to put a + for my domain name, since I usually run older BSD-based
    SunOS (4.1.3U1) so my stuff looks like this. (btw, I like the bsd-based
    Operating System using Disk Suite 1.0 so I can have larger that 2.1 Gig )

    /etc/domainname
    +OPENSUNOS.COM


    /var/yp/Makefile.yp
    has
    b=-b

    and walla..
    <com> wrote in message
    news:googlegroups.com... 


    Vanton Guest

Similar Threads

  1. Accessing duplicate field names from different tables
    By cakesy in forum Coldfusion Database Access
    Replies: 7
    Last Post: March 10th, 09:45 AM
  2. CFQUERYPARAM with tables names
    By Don Vaillancourt in forum Coldfusion Database Access
    Replies: 5
    Last Post: October 6th, 09:00 PM
  3. How to rename Access tables and field names?
    By Marshal in forum ASP Database
    Replies: 3
    Last Post: October 9th, 05:46 PM
  4. Query to find names in 2 tables
    By Danny in forum Microsoft SQL / MS SQL Server
    Replies: 2
    Last Post: July 23rd, 10:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139