由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - Finally.. no need to type domain names!!
相关主题
Ubuntu 12.04的openVPN DNS问题?quick help pls....
明年一月份就可以申请新的domain了。例如。appleSymbolic Link: ln 和 cp -s 是一样的么?
Which DNS server are you using?2个linux问题
为什么resolv.conf总被复原linux tcsh下less的问题
升级到ubuntu9.04遇到的问题(都已解决)ubuntu 里 term的字的颜色怎么显示?
问个router设置问题怎么设置可以用一个简写代表一个域名?
ip addressxemacs状态栏不显示行数
用手机 telnet上网发贴dummy 问题
相关话题的讨论汇总
话题: domain话题: machine话题: names话题: type话题: finally
进入Linux版参与讨论
1 (共1页)
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
3
ever heard of alias?
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.

相关主题
问个router设置问题quick help pls....
ip addressSymbolic Link: ln 和 cp -s 是一样的么?
用手机 telnet上网发贴2个linux问题
进入Linux版参与讨论
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
18
ubuntu 里不是只要tab就行了,
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.

1 (共1页)
进入Linux版参与讨论
相关主题
dummy 问题升级到ubuntu9.04遇到的问题(都已解决)
emacs关于symbolic link怎么修改设定? (转载)问个router设置问题
刚升级完xubuntu,说说几点感受。ip address
A simple Bash question about changing directory用手机 telnet上网发贴
Ubuntu 12.04的openVPN DNS问题?quick help pls....
明年一月份就可以申请新的domain了。例如。appleSymbolic Link: ln 和 cp -s 是一样的么?
Which DNS server are you using?2个linux问题
为什么resolv.conf总被复原linux tcsh下less的问题
相关话题的讨论汇总
话题: domain话题: machine话题: names话题: type话题: finally