Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread John Hasler
Phil Brutsche writes:
> Samba won't necessarily work if you don't have the hostname pointing to
> the IP in /etc/hosts.

Are you saying that samba will may not work if you have both lines, like
this?

127.0.0.1   hasler.dhh  hasler localhost
192.168.1.1 hasler.dhh  hasler

If so, that is a bug in samba.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread aphro
On Fri, 31 Dec 1999, Salman Ahmed wrote:

ssahme >Could this be a case of the DHCP server treating Windows clients
ssahme >differently than non-Windows clients ? Majority of the DHCP clients at
ssahme >our place are Windoze boxes.

yes, if they are pointed at different DNS then anything is possible.  you
may be able to override the DHCP client on the linux side from using the
DNS the DHCP server assigns it, if  you wanted, i have never tried it
though.

nate

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
1:08pm up 134 days, 1:03, 3 users, load average: 1.62, 1.83, 1.80


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread Phil Brutsche
A long time ago, in a galaxy far, far way, someone said...

> Salman Ahmed writes:
> > What should I add to this file so I can ping from the machine itself by
> > giving its fqdn hostname ?
> 
> 127.0.0.1 matrix. matrix localhost.
> 
> With this line any process on the machine can reach the machine itself via
> the fqdn, the hostname, or just 'localhost'.

True.

> Phil Brutsche writes:
> > Having matrix mapped to 127.0.0.1 in /etc/hosts isn't a good thing.
> 
> Why?
> 
> >  It should look like this:
> > 192.168.9.31 matrix. matrix
> 
> What use is such a line other than for reverse lookups?

Samba won't necessarily work if you don't have the hostname pointing to
the IP in /etc/hosts.  Admittedly if you don't use Samba then either
method will work.

-- 
--
Phil Brutsche   [EMAIL PROTECTED]

"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread John Hasler
Salman Ahmed writes:
> But the second line in /etc/hosts will have to be updated/modified
> whenever the DHCP lease for that IP address runs out.

If you have a proper localhost line in /etc/hosts you don't actually need
the IP of your interface in there at all.
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread John Hasler
Salman Ahmed writes:
> What should I add to this file so I can ping from the machine itself by
> giving its fqdn hostname ?

127.0.0.1 matrix. matrix localhost.

With this line any process on the machine can reach the machine itself via
the fqdn, the hostname, or just 'localhost'.

Phil Brutsche writes:
> Having matrix mapped to 127.0.0.1 in /etc/hosts isn't a good thing.

Why?

>  It should look like this:
> 192.168.9.31 matrix. matrix

What use is such a line other than for reverse lookups?
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread aphro
On Thu, 30 Dec 1999, Salman Ahmed wrote:

ssahme >
ssahme >Whenever I try to ping this machine (from itself) by giving the
ssahme >fqdn hostname, I get an error message like:
ssahme >
ssahme > unknown host matrix.domain.com
ssahme >
ssahme >nslookup on that fqdn hostname gives an error message saying that the
ssahme >specified domain doesn't exist.

make sure that the windows box and the linux box are pointed at the same
DNS. that is if the windows box is using DNS.  

nate

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
7:19pm up 133 days, 7:13, 3 users, load average: 1.58, 1.60, 1.55


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread hypnos
<<< No Message Collected >>>


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread Phil Brutsche
A long time ago, in a galaxy far, far way, someone said...

[...]
> Some more questions: I seem to be getting the same IP address through
> DHCP.

That's the way it works - each time you reboot you get the same IP until
the lease time runs out.

> After the DNS config update, I can ping this machine by using its fqdn
> hostname from a windows box. But from the machine itself, I can't ping
> the fqdn hostname.
> 
> The /etc/hosts file for this machine is:
> 
>  127.0.0.1   matrix localhost
> 
> What should I add to this file so I can ping from the machine itself by
> giving its fqdn hostname ? I always get 192.168.9.31 as my IP address
> for this box via DHCP.

Having matrix mapped to 127.0.0.1 in /etc/hosts isn't a good thing.  It
should look like this:

127.0.0.1 localhost
192.168.9.31 matrix. matrix

You should also check that /etc/resolv.conf is set correctly.

> Also, is there any curses-based tool to configure network settings for a
> Debian box ?

Not that I know of.  Would a set of shell scripts help?  It'd be a good
start for a curses-based tool.

-- 
--
Phil Brutsche   [EMAIL PROTECTED]

"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein


Re: (fqdn) hostname resolution when using DHCP

1999-12-31 Thread aphro
On Thu, 30 Dec 1999, Salman Ahmed wrote:

ssahme >I got one of the network admins to update their DNS config so that the
ssahme >hostname of the machine is mapped to the machine's ethernet address.

ok

ssahme >Some more questions: I seem to be getting the same IP address through
ssahme >DHCP. After the DNS config update, I can ping this machine by using its
ssahme >fqdn hostname from a windows box. But from the machine itself, I can't
ssahme >ping the fqdn hostname.

sounds as if the dns config on the linux box is not right?  check
/etc/resolv.conf, and show the error it gives you whenever possible.

ssahme >The /etc/hosts file for this machine is:
ssahme >
ssahme > 127.0.0.1   matrix localhost
ssahme >
ssahme >What should I add to this file so I can ping from the machine itself by
ssahme >giving its fqdn hostname ? I always get 192.168.9.31 as my IP address
ssahme >for this box via DHCP.

/etc/hosts and DNS are quite different. /etc/hosts can give one
response(the one that is hard coded into the file) while DNS can give
something totally different.  Make sure the DNS config is set right on the
linux box.  For my home network i recently added a fake domain 'aphro' (no
.com .net .org or any of that) and just started assigning my internal ip
addresses to it:

Server:  localhost
Address:  127.0.0.1

Name:mail.aphro
Address:  10.10.10.1

Server:  localhost
Address:  127.0.0.1

Name:linuxoutpost.aphro
Address:  10.10.10.2

if you dont have a real domain for that internal network, you can make one
like i have for mine. or, you could add a line to /etc/hosts that looks
like:

192.168.9.31 hostname.domainname

check /etc/host.conf as well, the line that has 'order' on it tells the
system where to look first to try to get an ip from a name (hosts,bind is
default i believe)

ssahme >Also, is there any curses-based tool to configure network settings for a
ssahme >Debian box ?

i cant reccomend anything since i have never tried any such tools under
debian.

maybe you can find something at:

http://www.freshmeat.net/appindex/console/administration.html

ssahme >Thanks.

sure, glad to help

nate

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
1:53pm up 133 days, 1:47, 4 users, load average: 1.42, 1.56, 1.53



Re: (fqdn) hostname resolution when using DHCP

1999-12-30 Thread aphro
On Wed, 29 Dec 1999, Salman Ahmed wrote:

ssahme >how this work ? Will this approach require the network sysadmins to
ssahme >change their (internal) DNS configuration ? Our network admins know of
ssahme >only one OS: Windoze, and generally don't know d*** about
ssahme >Unix/Linux/*BSD, so I am a little hesitant to try anything that requires
ssahme >their intervention.

yes they would have to point the machine(s) to that DNS, for optimal
performance they should be going to a machine on the internal network
anyways(and best security).

ssahme >but this would require:
ssahme >  a) updating the LM hosts file on a lot of windoze boxes
ssahme >  b) changing the file everytime my linux box's IP address changes
ssahme > because of DHCP

you could give the linux box a static ip ..if its a permanent station i
believe any permanent station should have a static ip. you may be able to
setup samba on the linux boxes and then use WINS to locate them..didnt
think of that till just now.

ssahme >I am not familiar with DNS at all but is there a way to bind/associate a
ssahme >hostname+domainname to an ethernet address ? I guess I might have to try
ssahme >option (1).

try option #3 if you want too :)

nate

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
11:30pm up 132 days, 11:24, 3 users, load average: 2.67, 2.40, 1.94



Re: (fqdn) hostname resolution when using DHCP

1999-12-29 Thread aphro
you could add a domain to a DNS in your local network so that works, or
what is probably easier is look for the lmhosts file on the windows box
(use find) it may be called lmhosts.sam or some shit, add the ip and the
names there, it seems to be window's version of /etc/hosts.  you may have
to rename the lmhosts.sam file or copy it, i forget what it supposed to be
and what its supposed to be named i just keep playing with it till it
works.

and it does work ..

nate

On Wed, 29 Dec 1999, Salman Ahmed wrote:

ssahme >
ssahme >I have a linux box running potato (updated as of a couple of hrs ago) +
ssahme >kernel 2.2.13. The box gets its IP address via a DHCP server. I set the
ssahme >hostname of this box when I first installed Debian (slink) off of the
ssahme >CDs without any domain name.
ssahme >
ssahme >I noticed that from windoze boxes, I can't ping this box if I use the
ssahme >fqdn hostname. Pinging by IP address works fine. But I want to be able
ssahme >to ping this box from other linux/windoze boxes by using
ssahme >hostname.domainname.
ssahme >
ssahme >How do I do this ? Do I have to setup a DNS server on this box ?
ssahme >
ssahme >Thanks for any info.
ssahme >
ssahme >-- 
ssahme >Salman Ahmed
ssahme >ssahmed AT pathcom DOT com
ssahme >
ssahme >
ssahme >-- 
ssahme >Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] < /dev/null
ssahme >

[mailto:[EMAIL PROTECTED] ]--
   Vice President Network Operations   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--
3:03pm up 132 days, 2:57, 3 users, load average: 1.70, 1.64, 1.53