s*******a 发帖数: 8827 | 1 Everytime I ssh to lab machines (xxx.abc.xyz.edu) from home (ubuntu virtual
machine), I have to type the entire host names. This is because my home
machine is in a differnt domain. How I wish I could only type xxx !!
An easy way to do this is to manually add dns search domain abc.xyz.edu in
network manager. The only problem is my home machine obtains its ip thru
dhcp. So every time I reboot, my changes get lost, and I need to manually
add the search domain again. So annoying !! But tonight I fin |
m**********g 发帖数: 434 | 2 what's your solution for that, then?
virtual
【在 s*******a 的大作中提到】 : Everytime I ssh to lab machines (xxx.abc.xyz.edu) from home (ubuntu virtual : machine), I have to type the entire host names. This is because my home : machine is in a differnt domain. How I wish I could only type xxx !! : An easy way to do this is to manually add dns search domain abc.xyz.edu in : network manager. The only problem is my home machine obtains its ip thru : dhcp. So every time I reboot, my changes get lost, and I need to manually : add the search domain again. So annoying !! But tonight I fin
|
w********e 发帖数: 557 | |
z**r 发帖数: 17771 | 4 why don't you just add xxx to /etc/hosts ?
virtual
【在 s*******a 的大作中提到】 : Everytime I ssh to lab machines (xxx.abc.xyz.edu) from home (ubuntu virtual : machine), I have to type the entire host names. This is because my home : machine is in a differnt domain. How I wish I could only type xxx !! : An easy way to do this is to manually add dns search domain abc.xyz.edu in : network manager. The only problem is my home machine obtains its ip thru : dhcp. So every time I reboot, my changes get lost, and I need to manually : add the search domain again. So annoying !! But tonight I fin
|
p*****s 发帖数: 344 | 5 谢谢分享你的心情。there are many ways to do a thing, which one is yours?
virtual
in
manually
figured
names
【在 s*******a 的大作中提到】 : Everytime I ssh to lab machines (xxx.abc.xyz.edu) from home (ubuntu virtual : machine), I have to type the entire host names. This is because my home : machine is in a differnt domain. How I wish I could only type xxx !! : An easy way to do this is to manually add dns search domain abc.xyz.edu in : network manager. The only problem is my home machine obtains its ip thru : dhcp. So every time I reboot, my changes get lost, and I need to manually : add the search domain again. So annoying !! But tonight I fin
|
a*******e 发帖数: 3021 | 6 that's the first thing came to my mind too.......
【在 w********e 的大作中提到】 : ever heard of alias?
|
w*******y 发帖数: 372 | 7 If I'm really lazy, I would put the following script into my $HOME/bin as
laba,labs,labd,labf:
#!/bin/bash
ssh m*******[email protected]
【在 a*******e 的大作中提到】 : that's the first thing came to my mind too.......
|
s*******a 发帖数: 8827 | 8 哈哈,非常感谢大家踊跃献计献策 :)
alias不适合我的情况,应为我有很多电脑,然后这些电脑都在同一个domain下。要为
每个电脑写ip,alias,我受不了那个罪哟。
alias适合少数电脑,然后分布在不同domain的情况。
我现在设了dns search domain,只要一行字就搞定了。关键问题是dns设置每次reboot
会被dhcp overwritten. 不过我现在都搞定了 lol
virtual
【在 s*******a 的大作中提到】 : Everytime I ssh to lab machines (xxx.abc.xyz.edu) from home (ubuntu virtual : machine), I have to type the entire host names. This is because my home : machine is in a differnt domain. How I wish I could only type xxx !! : An easy way to do this is to manually add dns search domain abc.xyz.edu in : network manager. The only problem is my home machine obtains its ip thru : dhcp. So every time I reboot, my changes get lost, and I need to manually : add the search domain again. So annoying !! But tonight I fin
|
w********e 发帖数: 557 | 9 Then why make such a big fuss? You only need to add the alias once for each
machine. You can even write a script to populate it to every machine if
you think it is too much work. |
s*******a 发帖数: 8827 | 10 应为我有很多电脑,然后这些电脑都在同一个domain下。要为
每个电脑写ip,alias,我受不了那个罪哟。
each
【在 w********e 的大作中提到】 : Then why make such a big fuss? You only need to add the alias once for each : machine. You can even write a script to populate it to every machine if : you think it is too much work.
|
|
|
u*********r 发帖数: 2735 | 11 I see manager material in you.
each
【在 w********e 的大作中提到】 : Then why make such a big fuss? You only need to add the alias once for each : machine. You can even write a script to populate it to every machine if : you think it is too much work.
|
a*******e 发帖数: 3021 | 12 很多电脑应该用nfs阿
一个alias script就够了阿,不过这个似乎小题大做了
【在 s*******a 的大作中提到】 : 应为我有很多电脑,然后这些电脑都在同一个domain下。要为 : 每个电脑写ip,alias,我受不了那个罪哟。 : : each
|
p**i 发帖数: 688 | 13 我用dnsmasq提供both DHCP&DNS 服务
dhcp-option=option:domain-search,example.org,example.com
来设定DNS search list
if
【在 s*******a 的大作中提到】 : 应为我有很多电脑,然后这些电脑都在同一个domain下。要为 : 每个电脑写ip,alias,我受不了那个罪哟。 : : each
|
s*******a 发帖数: 8827 | 14 nice! thanks for letting me know about this sfotware :)
【在 p**i 的大作中提到】 : 我用dnsmasq提供both DHCP&DNS 服务 : dhcp-option=option:domain-search,example.org,example.com : 来设定DNS search list : : if
|
w********e 发帖数: 557 | 15
It'll be nice you also contribute, not just take.
【在 s*******a 的大作中提到】 : nice! thanks for letting me know about this sfotware :)
|
s*******a 发帖数: 8827 | 16 it's better not to contribute when you know little, than to 'contribute'
wrong infomation.
【在 w********e 的大作中提到】 : : It'll be nice you also contribute, not just take.
|
l****g 发帖数: 122 | 17 惭愧,突然想到了自己的named。
看来俺的方法还是太笨啊。 |
g****s 发帖数: 181 | |
L***n 发帖数: 6727 | 19 Honestly I don't think his contribution which I actually think is pretty
nice is "wrong information", but you are definitely making no contribution
other than a big fuss.
【在 s*******a 的大作中提到】 : it's better not to contribute when you know little, than to 'contribute' : wrong infomation.
|