LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-13-2004, 02:38 PM   #1
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Resolving Local Non-FQDN Host Names


I am a bit flustered here. I have several computers on my internal network ( non-public IP's ) and run my own DNS server that hosts my domain. FQDN for hosts in my domain resolve fine, but it I try just the hostname ( say mail, for mail.mydomain.org ) the DNS server does not check for a hostname in my domain, instead it just forwards the request out to my ISP's DNS servers and of course does not get an answer.

Now this is the case on all computers on my network, so either none of them are adding the default domain to the hostname in their requests, or maybe if they are not supposed to then the DNS server isn't doing it.

I modified the resolve.conf on all the systems I was testing on to :
domain mydomain.org
search mydomain.org

and restarted the network service on each system and then retested. No change in the problem. I even tried editing /etc/sysconfig/network and added the line
DOMAIN=mydomain.org

and still no change. I can't figure out what I am doing wrong. Yes, I could give up use the FQDN, or do something crazy like add all the hosts to the /etc/hosts file, but I would rather have an elegant solution.

Any ideas?

Like I said, all FQDN stuff works great, including DNS, mail services, web services, etc, its' just I can't simple type in the local host's name and have it resolve correctly. Oh, and I have searched these forums for an answer, most of them recommended the things I have already tried.
 
Old 02-13-2004, 03:00 PM   #2
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Original Poster
Rep: Reputation: 30
One note

Grr, ok, I am retarded, it works with ping, but not with dig. I don't know if that is a big deal or not. I would like it to work with dig too, but my frustration level went down a few notches when I found ping worked.
 
Old 02-14-2004, 05:17 AM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Can you see which DNS server dig querrys?
It might be that ping tries the DNS servers found in your configuration till it get's an answer but that dig locks to one DNS server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how does dns/host names work on local lan gman_O0O0 Linux - Networking 1 04-11-2005 01:22 AM
Help resolving names between a Redhat and a win 2003 host Terrence Hinds Linux - Networking 5 10-10-2004 06:08 AM
Sendmail and the local-host-names file vpatton Linux - Software 5 04-26-2004 08:37 PM
nslookup returns local ip when resolving another servers fqdn on same subnet nodrogx Linux - Networking 3 10-28-2003 03:12 PM
can't makemap local-host-names in sendmail TomHodder Linux - Software 2 09-09-2003 10:21 PM


All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration