fsfacca@LERC08.LERC.NASA.GOV (Tony Facca) (06/22/89)
With the nameserver we are using, we are able to specify the hostname of any machine in the same domain just by using the hostname. This is version 3.1D of the OS. However, I believe that hostname. (<--- that's a period) is the way you are supposed to specify that the machine is in your domain. As for NFS, I was getting mount failures as well, until I specified the entire domain name of each host in the /etc/exports file. Then, everything worked f fine. It never had a problem with hosts inside the domain. -- ----------------------------------------------------------------------------- Tony Facca | phone: 216-433-8318 NASA Lewis Research Center | Cleveland, Ohio 44135 | email: fsfacca@lerc08.lerc.nasa.gov -----------------------------------------------------------------------------
blbates@AERO4.LARC.NASA.GOV ("Brent L. Bates AAD/TAB MS361 x42854") (09/07/90)
One thing we do around here is have a couple of names and addresses reserved in the host table for demo machines. That way if we have a demo or evaluation unit, all we have to do is plug it into the network. -- Brent L. Bates NASA-Langley Research Center M.S. 361 Hampton, Virginia 23665-5225 (804) 864-2854 E-mail: blbates@aero4.larc.nasa.gov or blbates@aero2.larc.nasa.gov
fsfacca@AVELON.LERC.NASA.GOV (Tony Facca) (09/07/90)
Your problem is fixed in the 3.3 release of the software where you can tell
the system to lookup names in the host table either before or after it attempts
to use the nameserver to resolve.
In the meantime, here is a short script which you can run as root to
temporarily enable/disable the name resolver on your machine. Be careful that
no one else is on when you run it because it brings the inetd (network
services) down and then back up.
Hope this helps.
------------------------- cut here for best results --------------------------
#! /bin/csh -f
# nameserver turn the nameserver on or off and do all the other
# network stuff that is required to support the change.
#
# Original Author: Tony Facca
# Original Date: July 1989
#
# Modified by Scott Presnell Thu Mar 1 08:41:59 PST 1990
#
# 128.156.1.43 falcon.lerc.nasa.gov
# 128.156.1.33 eagle.lerc.nasa.gov
set primary = "128.156.1.43" # Internet address primary NS
set secondary = "128.156.1.33" # secondary nameserver
set domain = "lerc.nasa.gov" # domain name
set CONFIG=/etc/config
if (! -o /bin/su) then
echo "You must be superuser to run this script"
exit(-1)
endif
switch ($1)
case "on":
echo "on" > $CONFIG/named
/bin/rm -f /usr/etc/resolv.conf
echo "$0 : enabled -- restarting the network"
/etc/init.d/network stop
/etc/init.d/network start
/etc/init.d/network.local start
breaksw
case "remote":
if (-e /usr/etc/resolv.conf) then
echo "Nameserver already in remote mode."
exit()
else
echo "domain $domain" > /usr/etc/resolv.conf
echo "nameserver $primary" >> /usr/etc/resolv.conf
echo "nameserver $secondary" >> /usr/etc/resolv.conf
echo "$0 : remote operation enabled -- restarting the network"
echo "off" > $CONFIG/named
/etc/init.d/network stop
/etc/init.d/network start
/etc/init.d/network.local start
endif
breaksw
case "off":
echo "$0 : disabled -- restarting the network"
echo "off" > $CONFIG/named
/bin/rm -f /usr/etc/resolv.conf
/etc/init.d/network stop
/etc/init.d/network start
/etc/init.d/network.local start
breaksw
case "status":
if ( `cat $CONFIG/named` == "on" ) then
echo "$0 : named should be operating,\c"
if ( ! { (kill -0 `cat /usr/etc/named.pid` > /dev/null) } ) then
echo " but it isn't. Better check this out."
else
echo " and it is."
endif
else if ( -e /usr/etc/resolv.conf ) then
echo "$0 : in remote operation mode."
else if ( ! { (kill -0 `cat /usr/etc/named.pid` > /dev/null) } ) then
echo "$0 : a named process is running, but named is not specified in the system configuration."
else
echo "$0 : all host name service through the /etc/hosts file."
endif
breaksw
default:
echo "Usage: $0 status|on|remote|off"
breaksw
endsw
exit()
------------------------------------------------------------------------------
--
-----------------------------------------------------------------------------
Tony Facca | fsfacca@avelon.lerc.nasa.gov | phone: 216-433-8318
-----------------------------------------------------------------------------
You are at Witt's end. Passages lead off in *all* directions."Root@UCBVAX.BERKELEY.EDU (09/08/90)
Hi to all,
I have a problem related with my local nameserver configuration.
I configured the machine as secondary server caching from the registered
domain server, as follows
--------
;
; @(#)named.boot.slave 1.13 (Berkeley) 87/07/21
;
; boot file for secondary name server
; Note that there should be one primary entry for each SOA record.
;
;
sortlist 10.0.0.0
directory /usr/etc/named.d
; type domain source host/file backup file
cache . root.cache
secondary CINECA.IT 130.186.1.194 130.186.1.53 itnsg1.bak
secondary 186.130.IN-ADDR.ARPA 130.186.1.194 130.186.1.53 itnsg1.rev.bak
primary 0.0.127.IN-ADDR.ARPA loopback.rev
forwarders 130.186.1.53 192.12.192.4
--------
;
; loopback.rev -- PTR record for 127.1 (itnsg1.cineca.it)
;
@ IN SOA itnsg1.cineca.it root.itnsg1.cineca.it (
1.2 ; Serial
43200 ; Refresh 3 hours
3600 ; Retry 1 hour
360000 ; Expire 100 hours
86400 ) ; Minimum 24 hours
itnsg1.cineca.it IN A 130.186.1.194
localhost.cineca.it. IN A 127.0.0.1
IN NS itnsg1.cineca.it
;
1 IN PTR localhost.
--------
The defualt domain name is stored in /usr/etc/resolv.conf wich
contains only one line:
--------
domain cineca.it
--------
Everything works well with this configuration, except for one thing.
Our domain is very wide, in fact covering all the North-East side of
Italy and we are a little university away from the central site.
For strange administrative reasons we cannot act as a sub-domain.
Frequently we need to connect local machines to the net for some time
(demonstrations from vendors, tests and so on) and would like to tell
our domain server (the local one) to recognize those machines without
asking every time to the central site to put their names into the database.
Putting the names in /etc/hosts won't help.
So the question is the following:
Is there any way to put local information in the local server database?
Any hint is welcome.
Thanks a lot in advance,
- valter
--
---------------------------------------------------------------------------
| Valter V. Cavecchia | Bitnet: cavecchi@itncisca |
| Centro di Fisica del C.N.R. | Internet: root@itnsg1.cineca.it |
| I-38050 Povo (TN) - Italy | Decnet: itnvax::cavecchia (37.65) |
---------------------------------------------------------------------------marinell@Iris1.UCIS.Dal.Ca (Kevin Marinelli) (09/09/90)
One method that I have used to solve this problem is to have our net adminintrator create "permanent" fictional machines. This way, when I need to put test equipment on the net, all I do is configure the machine with an IP address and a name from the list of what I can use, and away the machine goes, including having the DNS recognize it. Kevin Marinelli Dalhousie University
schachar@CCSG.TAU.AC.IL (Schachar Levin (tel 0326)) (06/16/91)
We have a problem with the name resolvtion on our SGI. Each time the main nameserver falls, the computer waits for the time-out until it moves to the secondary nameserver. The problem is, that it happens for EACH name request, so the computer works VERY slow. The other problem is that SGI cannot work with /etc/hosts and the name server at the same time. Does any one have a Solution? Schachar Levin
rbriber@POLY1.NIST.GOV (06/19/91)
Someone (Silvert) is (was) having problems with setting up his SGI as local nameserver. We had trouble with this also but by brute force finally ended up with a set of working named configuration files. I have a longish letter which I'd rather not send to the entire news group so if anyone is interested in copies of our config files please email me. I lost the original postings with Silvert's address. ------------------------------------------------------------------------ | Adios Amebas, |"In the future we will all have names that will | | Robert Briber | make the cathode ray tube resonate." | | NIST 224/B210 | --Professor Brian O'Blivion | | Gaithersburg, MD 20899| rbriber@poly1.nist.gov (Internet) | | (301) 975-6775 (voice)| rbriber@enh.nist.gov (Internet) | | (301) 975-2128 (fax) | rbriber@nbsenh.bitnet (Bitnet) | ------------------------------------------------------------------------