I use /etc/hosts to define names to local addresses in the network, so I can type ssh user@raspberry instead of ssh user@192.168.0.5.  It works very well for a single machine, but now I need to replicate to many machines. So naturally, a central name server in the server is a better approach, so I configure the machine once and the changes are all made in the server.  The question is: Whats the better way to implement this? I want to to keep it simple, just like using the hosts file, and something like BIND seems to be a little overwhelming. And what the pros and cons of a certain approach?
13497
Here are details of the machine I want to access using its hostname:  $ hostname hostname $ cat /etc/hosts 127.0.0.1   localhost 127.0.1.1   hostname.company.local  hostname   It's a default Debian 6 (Squeeze) install, so I didn't fiddle with anything yet.  This is what I get from a machine (running Debian Unstable) trying to access above machine:  $ ping hostname ping: unknown host hostname $ ping hostname.company.local ping: unknown host hostname.company.local $ cat /etc/resolv.conf nameserver 192.168.2.21 nameserver 192.168.2.51 search company.local
26036
I want to change the OS hostname but I do not want to restart.  I have edited /etc/hostname but it requires a restart to get implemented. How to avoid this?
80027
I want to communicate between several computers on my network (static Ethernet), through SSH. In order to do that I need to run ssh-add every time I log in on a specific machine, how can I do it so that it's set up once and it doesn't ask me for the passphrase every time I log in or reboot my machine?  I know that there is a way that you should add some lines to the bash_profile file, but I still need to type the password every time I reboot/log in to a specific machine.  if [ -z "$SSH_AUTH_SOCK" ] ; then     eval `ssh-agent -s`     ssh-add fi
60162
I've created accounts and hostnames within my  account, which is by  far the most commonly used service for my type of server. Can somebody walk me through the configuration process of using ddclient with no-ip, as I'm a command line noob?
39000
Currently i invoke the following:  $ ssh me@host.com my_cmd   This is slow and not easy to automate safely. I would like to establish ssh connection once and have some script that will forward my commands to host.com and print output.  Is that possible ?  Adding my machine to authorized_keys is not an option for me and it wouldn't solve slowness issue.
62843
I have a Raspberry Pi, and I'd like to use it as a DNS server on my LAN.  I'd like it to work like the following:  The Raspberry Pi is a DNS server, but not a fancy one. When it receives a request, if it doesn't have the result cached, it looks it up from another DNS server, and caches it for future.  I've looked at a few solutions, but they're all fiendishly complex, as if I'm setting up some kind of uber DNS solution for an enterprise.  All I want is to speed up repeated DNS requests to make web browsing faster.  Oh, OS is Debian Squeeze.
91963
My /etc/ssh/sshd_config file has a line like:  AllowUsers jim@11.22.33.456   If I want to allow jim to use another IP addresses, how do I specify it?   Does it take the form of a comma separated list? Or, do add a similar line like   AllowUsers jim@new-ip-address   ?
94622
I have written an app which will run on a server. I have little experience with network configuration and such things.  Now I have set-up the server and everything works how I want however I want 2 things   set the ip of my server to a static ip ideally be able to acces the server with a url like mytestserver.test or something like that   I do have experience with command line linux and windows but never needed to do anything with networks as I usually work with embedded systems  e\ my distribution is debian on the raspberry pi
124008
A sandbox enviroment of a web app is reachable directly by an IP address: http://&lt;my_ip_address&gt; without a login name.  Is there a way to make a virtual host in my local machine, named as &lt;my_ip_address&gt;, and change /etc/hosts so it will "redirect" to my localhost?  127.0.0.1 &lt;my_ip_address&gt;   So when I load the url http://&lt;my_ip_address&gt; the browser will point to my localhost? The way I can already redirect domain names.
52672
I'm new to Linux (currently running Ubuntu 10.04) and I have just finished setting up SSH access to my Linux Machine.  Currently, I have to use ssh root@x.x.x.x to connect but would much rather be able to swap the IP for the computer name (like in Windows with \\name) or a domain name (like computername.example.com). I don't really know where to start so any help would be most appreciated.  Please go slowly, as mentioned - I am still new to this.  EDIT 1 Completely forgot to mention that I am trying to connect from Windows 7 (via PuTTY) - sorry.
101823
I see more and more servers that have no domain defined in the /etc/resolv.conf file.  Only a search entry. In what cases is this setup used ? Are there any cases where it must not be used ?  nameserver xxx.xxx.xxx.xxx nameserver yyy.yyy.yyy.yyy nameserver zzz.zzz.zzz.zzz  search domain1 domain2 domain3 ...
8171
For privacy and performance reasons, I'd like to prevent my computer from ever communicating with certain Internet hosts. I'd like to do this at the OS level, not through web browser plug-ins (not broad enough), or even through my home router (my laptop travels). I'd prefer to use built-in tools.  I'm running Windows 7 Professional 64-bit. I'm all too familiar with the Windows hosts file - and its limitations. There seems to be some confusion over whether hosts supports wildcards, but my own tests confirm that it does not.  I have experimented with Windows Firewall and the IP Security Policy MMC snap-in. So far as I can tell, both require numeric addresses. I don't want to block specific IP addresses, or ranges of addresses, in part because IP-address-to-hostname mappings can and do change.  Is there any tool in Windows 7 Professional with which I can block (or route to 0.0.0.0) communication with Internet hosts by hostname mask? If not, are there any good, free, third-party tools?
52280
i have on my server a settings i use for all my users. every time i create a new user i have to copy all the settings over and over.  for example:   .vimrc. .profile .bashrc firefox homepage to our intranet evolution settings (server and username) etc...   i saw skel can do it, is there a easy way to setup a user with my settings when i adduser?  thanks
110684
I have two remote hosts. host1-> 10.3.0.1 host2-> 10.3.0.2 Both run an ssh server.  The ssh server listens on port 22 in host1 and on port 6969 in host2. Now, using my local machine, I need to copy something from host1 to host2 without logging into either host1 or host2 via ssh. Something like,  scp user@10.3.0.1:/path/to/file user@10.3.0.2/path/to/file   How can I do this, please note that the two hosts use different ports for ssh.
120163
How can I set up Chrome to reference hostname lookups locally and not from the standard etc/hosts file?  When debugging a website, it's sometimes useful to set up entries in C:\Windows\system32\drivers\etc\hosts that replace certain domains with localhost, thus allowing me to test out on-the-fly versions of websites or domains that may conflict with live actual sites.   Can I set up Google Chrome in a way that simulates and simplifies this process?  I won't to modify the browser instance to behave as if etc/hosts has been modified although even that might be too much of a security risk in an extension.
87021
One of the servers I frequently log into via SSH has changed it's IP address. So, now I'm getting man in the middle attack warnings when I try to use SSH via Windows Powershell and OpenSSH for Windows.   On a linux machine, I would just remove the offending line from ~/.ssh/known_hosts. But, the ~/.ssh directory seems to be empty.  Where is the known_hosts file for Powershell/OpenSSH? I've checked in C:\Program Files\OpenSSH\home\anschauung\.ssh, but that folder is empty as well.
69227
How do I set up SSH so I don't have to type my password when connecting to a host?