Mailing List Archive

Support open source code!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: donegal fell into hyperspace and can't get up

>>>>> Dennis McMurchy <> writes:

    Dennis>   Thankyou so much, Jim and Steve.  My problem with
    Dennis> sendmail is now solved.  You emboldened me to try doing
    Dennis> exactly what it says NOT to do in the header of
    Dennis> /etc/hosts.  I can't specify an IP address for my hostname
    Dennis> because I'm only on the net when I dial up my provider,
    Dennis> who allocates addresses dynamically, so I just added the
    Dennis> line 

    Dennis> donegal

    Dennis>   By God, it did the trick - sendmail doesn't complain,
    Dennis> and actually moves the mail.

    Dennis>   This is my /etc/hosts :

    Dennis>	localhost
    Dennis>	donegal

I'm not sure this is entirely correct; maybe it should be done as an
alias:	donegal	localhost

    Dennis> # End of hosts.

    Dennis>   I'm a little nervous about problems that this might
    Dennis> cause further down the road, but it sure works.  The thing
    Dennis> is though, as Steve said, sendmail ought to be able to
    Dennis> figure out that donegal is localhost.  Things certainly
    Dennis> were not this way in my earlier Slackware installation,
    Dennis> and should not be this way now.  If anyone can figure out
    Dennis> a more elegant solution that would allow me to remove this
    Dennis> line from /etc/hosts, I'd feel better about it.

I don't understand exactly how these things work since I haven't
looked at the source code.  However, what you should be able to do is
change /etc/hosts.conf to "bind, hosts" and run named(8).  Then
/etc/hosts should not be consulted when your inet connection is up,
because named should be asking your provider's nameserver.

You should be able to configure named to alias donegal to the IP
address assigned by your provider.  (But the man page is not exactly
crystal clear....)

[Theoretically, by having multiple named.boot files and using

cd /etc
cp -f named.boot
kill SIGHUP `cat /etc/`"

you should be able to reconfigure it on the fly if necessary.  I don't 
think it should be necessary.]

Elegant?  Dunno....

    Dennis>   Great to be running again though.  Thanks again, guys.

De nada.

>>>>> "Jim" == Jim Tittsler <> writes:

    Jim> In article <>,
    Jim> you wrote:
    >> NOT to do in the header of /etc/hosts.  I can't specify an IP
    >> address for my hostname because I'm only on the net when I dial
    >> up my provider, who allocates addresses dynamically, so I just

    Jim> You can add one.  Just pick one from the blocks of
    Jim> "disconnected networks" like 172.16.xx.xx.  When you get a

They don't necessarily stay disconnected....  Shouldn't be a problem,
but weird things happen occasionally.

    Jim> dynamically assigned IP address during the connection it will
    Jim> be added to the routing tables (and your machine will become
    Jim> something like in addition to donegal :-).

You should be able to delete the junk address from the routing tables, 
but I forget exactly how.  You want to do this just before you
connect, I think.

                           Stephen John Turnbull
University of Tsukuba                                        Yaseppochi-Gumi
Institute of Policy and Planning Sciences
Tennodai 1-1-1, Tsukuba, 305 JAPAN       
a word from the sponsor will appear below
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.
Tel: 03-3351-5977   Fax: 03-3353-6096

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links