PDA

View Full Version : DNS hostname abbreviation


TSMJ
2007-03-05, 03:36 AM CST
Hi
I've got a FC5 Fedora box using a Windows 2003 nameserver. Is there a way to make the Fedora box (without individually adding hosts to its hosts file) able to [e.g.] telnet to a remote host's hostname, rather than its FQDN, using the Windows nameserver? So from the Fedora box, you'd be able to type 'telnet hostname' rather than 'telnet hostname.company.domain.net ' (and it still query the DNS server)? I've thought about adding 'DOMAIN=' to the network config and changing the hostname of the Fedora box to reflect it's FQDN, hoping it'll realise it's in the same domain as the destination box and appending the rest, but the Fedora box is in constant use and I don't know whether it'd work or not.

Cheers!

RomKnight
2007-03-05, 06:43 AM CST
vi /etc/resolv.conf
search your.domain
nameserver yourserver_ip

TSMJ
2007-03-06, 02:29 AM CST
Thanks a lot for that - I'm going to give it a try - sounds great. Do you know how to do something similar for Windows hosts using the same nameserver? Just put department.company.net in the hosts file?

TSMJ
2007-03-14, 05:43 AM CDT
To do the same on Windows:
TCP/IP network adaptor settings > Advanced > DNS > 'DNS suffix for this connection'
Woo!