Author Topic: Linux/ssh  (Read 4707 times)

lee n. field

  • friend
  • Senior Member
  • ***
  • Posts: 13,587
  • tinpot megalomaniac, Paulbot, hardware goon
Re: Linux/ssh
« Reply #25 on: March 13, 2010, 10:20:11 AM »
Quote
However if I go into my router and find the IP of brutus, it works

Quick fix, add an entry for brutus in your local /etc/hosts file.  Assuming that IP isn't going to change.
In thy presence is fulness of joy.
At thy right hand pleasures for evermore.

tyme

  • expat
  • friend
  • Senior Member
  • ***
  • Posts: 1,056
  • Did you know that dolphins are just gay sharks?
    • TFL Library
Re: Linux/ssh
« Reply #26 on: March 13, 2010, 01:42:20 PM »
The hostname is probably not just "brutus", but rather "brutus.something"

The .something needs to be at the top of /etc/hosts like so:

search something
nameserver <blah>
nameserver <blah2>

If you can get your DHCP server set up to be aware of the .something domain suffix, your dhcp client will typically add that to /etc/hosts automatically.

Having a static ip does not necessarily mean you don't want use dhcp.  It's easier to manage all the dns and ip allocations in one place, where individual MAC addresses or hosts can be given (centrally managed) static ips, or can get their ip addresses from a dhcp pool.   Then all your computers can use dhcp.
« Last Edit: March 13, 2010, 02:04:42 PM by tyme »
Support Range Voting.
End Software Patents

"Four people are dead.  There isn't time to talk to the police."  --Sherlock (BBC)