Re: hostname of remote computer

2010-11-02 Thread Alan Chandler
On 31/10/10 18:57, Seb wrote: Hi, I use SSH to connect to a laptop computer that is in an institutional network. I would like to set an entry for it in my local /etc/hosts, so that I don't have to type the IP address every time I want to connect to is and simply use an alias. As per the man pa

Re: hostname of remote computer

2010-10-31 Thread Seb
On Sun, 31 Oct 2010 20:17:05 -0600, Bob Proulx wrote: [...] > I assume the laptop gets a dynamic address from DHCP and doesn't > register a dynamic DNS address for it? My understanding of these terms is very limited, but I think so. > If you only need this for ssh then you can add an entry in

Re: hostname of remote computer

2010-10-31 Thread Bob Proulx
Seb wrote: > I use SSH to connect to a laptop computer that is in an institutional > network. I would like to set an entry for it in my local /etc/hosts, so > that I don't have to type the IP address every time I want to connect to > is and simply use an alias. I assume the laptop gets a dynamic

Re: hostname of remote computer

2010-10-31 Thread Tom H
On Sun, Oct 31, 2010 at 4:03 PM, Seb wrote: > On Sun, 31 Oct 2010 16:00:34 -0400, > Tom H wrote: >> >> I've never seen "dnshostname" before. You must be looking for >> "hostname" or "hostname -f". ("domainname" returns the nis domain.) > > Sorry, I mistyped it; I meant dnsdomainname. No worries.

Re: hostname of remote computer

2010-10-31 Thread Seb
On Sun, 31 Oct 2010 16:00:34 -0400, Tom H wrote: [...] > I've never seen "dnshostname" before. You must be looking for > "hostname" or "hostname -f". ("domainname" returns the nis domain.) Sorry, I mistyped it; I meant dnsdomainname. -- Seb -- To UNSUBSCRIBE, email to debian-user-requ...@

Re: hostname of remote computer

2010-10-31 Thread Seb
Great, thanks every one. -- Seb -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/87fwvm872v@kolob.sebmags.homelinux.org

Re: hostname of remote computer

2010-10-31 Thread Tom H
On Sun, Oct 31, 2010 at 2:57 PM, Seb wrote: > > I use SSH to connect to a laptop computer that is in an institutional > network.  I would like to set an entry for it in my local /etc/hosts, so > that I don't have to type the IP address every time I want to connect to > is and simply use an alias.

Re: hostname of remote computer

2010-10-31 Thread Camaleón
On Sun, 31 Oct 2010 13:57:22 -0500, Seb wrote: (...) > To get the canonical_hostname I thought I'd easily get it by typing > "dnshostname" when logged into the remote laptop, but that returns > nothing, and "domainname" returns '(none)'. Just a side note. You can run "hostname" to get the name

Re: hostname of remote computer

2010-10-31 Thread Ron Johnson
On 10/31/2010 02:16 PM, Seb wrote: On Sun, 31 Oct 2010 20:10:00 +0100, Klistvud wrote: [...] Any name you come up with will work, if hard-coded into your /etc/hosts. Of course, it won't be canonical ... Thanks, so what would make it canonical? Don't get hung up on the word "canonical".

Re: hostname of remote computer

2010-10-31 Thread Seb
On Sun, 31 Oct 2010 20:10:00 +0100, Klistvud wrote: [...] > Any name you come up with will work, if hard-coded into your > /etc/hosts. Of course, it won't be canonical ... Thanks, so what would make it canonical? -- Seb -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with

Re: hostname of remote computer

2010-10-31 Thread Klistvud
Dne, 31. 10. 2010 19:57:22 je Seb napisal(a): Hi, I use SSH to connect to a laptop computer that is in an institutional network. I would like to set an entry for it in my local /etc/hosts, so that I don't have to type the IP address every time I want to connect to is and simply use an alia

hostname of remote computer

2010-10-31 Thread Seb
Hi, I use SSH to connect to a laptop computer that is in an institutional network. I would like to set an entry for it in my local /etc/hosts, so that I don't have to type the IP address every time I want to connect to is and simply use an alias. As per the man page, /etc/hosts has: IP_address