I work at a big company with its own domain, and I SSH into servers every day, many times a day. Is it possible to simply type
hostname instead of
hostname.my.domain.com and still SSH successfully?
You can configure a search domain for DNS. (Not specifically for puTTY, but for all programs doing a DNS lookup).
How you do that depends on your OS.
For most unix like environments:
For any OS configured to use DHCP
Any big company should be using a DHCP server. That can supply not just IP leases, but also DNS server names and which paths to search. This assumes you have control over these. If not, ask IT to add your own domain.
Whenever you now try to resolve a hostname the resolver will not only try to resolve the hostname, but also hostname.my.omain.tld. This will work for anything which uses DNS (e.g. puTTY, Firefox, ...)
Hopefully needless to say, but replace 'my.domain.tld' with your actual domain name.
Just adding an entry to your
You can also set your DNS search path to include