LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DNS - resolving names without needing the FQDN (https://www.linuxquestions.org/questions/linux-newbie-8/dns-resolving-names-without-needing-the-fqdn-404214/)

ehorton 01-16-2006 06:48 PM

DNS - resolving names without needing the FQDN
 
Hello,

I have Fedora Core 4 running and it has been working quite well. I have one last thing that I would like to clean up. The DNS name resolution.

I am a network engineer for a company here in Orlando and I have a PIX establishing a vpn tunnel to my office. This allows me to work from home Linux has made that a lot easier and faster.

I have my resolv.conf file configured for our corporate DNS server and for a public DNS server. It is working, but I have to specify the FQDN to access computers on the company network and I would really like to just specify the host name. The corporate name server I am pointing to is running Windows 2000 with the Microsoft DNS if that makes any difference. So, for a quick example. I would like to..... ping station1 versus station1.mycompany.com

I hope that I have given enough information and made things clear on what I would like to do.

Thanks
Eric

gilead 01-16-2006 07:47 PM

Are you using the domain keyword in your resolv.conf file at the moment or is it just the list of nameservers?

ehorton 01-16-2006 08:17 PM

It is just the list of name servers. I only have the two entries.
I am sorry, but very new to Linux and don't understand how they do things are what it is capable of.

gilead 01-16-2006 08:28 PM

No problem...

There's more info if you type `man resolv.conf`, but briefly:

If you use the domain keyword followed by a domain name if you have a single domain that you want to use just the hostname for (usually the local domain). If you use the search keyword you can specify multiple domains separated by spaces or tabs to look up when resolving hostnames.

ehorton 01-16-2006 08:35 PM

Got it!
 
Perfect. That did the trick. Thanks for the recommendation of
man resolv.conf

I didn't know you can do that. I thought it was only for commands.

Thanks again!

gilead 01-16-2006 08:43 PM

Glad it helped :)


All times are GMT -5. The time now is 03:24 AM.