LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 04-19-2012, 12:54 PM   #1
druisgod
Member
 
Registered: Jun 2004
Location: Maine
Distribution: LFS Mint OS, LFS, CENTos,
Posts: 117

Rep: Reputation: 18
DNS Configuration (BIND)


So I have my DNS server up and running and currently my users can connect to any machine listed by hostname as long as they use the fqdn.

Is there a way to set it up so I can just have them connect by using "host1" instead of "host1.example.com"?

I know I can edit all of the host files and do it, but I'm just getting into DNS and digging into it.

Thx!
 
Old 04-19-2012, 01:15 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,934
Blog Entries: 5

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Yes - In the clients modify /etc/resolv.conf to have both the server name to query AND the domains to search:

Code:
search example.com
nameserver x.x.x.x
nameserver x.x.x.x
That tells it to append example.com to any "short name" searched for and check on the first nameserver (ip) specified and if not found there on the second name server (ip) specified.
You could add other domains to the search line separated by space:

Code:
search example.com mydom.com
It would first search short name in example.com and if found provide that - if not it would then search for it in mydom.com.
 
Old 04-19-2012, 01:37 PM   #3
druisgod
Member
 
Registered: Jun 2004
Location: Maine
Distribution: LFS Mint OS, LFS, CENTos,
Posts: 117

Original Poster
Rep: Reputation: 18
Augh! I just figured it out. I already had resolv.conf setup on the server with the search path. My clients are Windows machines - and so your comment made me wonder about how they resolve networks, and that made me think dhcp. I didn't have the option domain-name "example.com"; in my dhcpd.conf. Now the machines can ping by just the host, appending the DN. Thanks for the hint!!


~Druisgod
 
1 members found this post helpful.
  


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
[SOLVED] dns server - bind configuration question pini Linux - Server 10 03-01-2012 02:23 AM
bind dns configuration help anurajr Linux - Newbie 4 01-02-2012 06:22 AM
bind dns configuration from source in centos 5.5 rath_pan Linux - Server 2 11-19-2011 12:37 AM
configuration DNS ,bind server Tomas12345 Linux - Newbie 1 06-29-2009 08:42 AM
DNS configuration with bind snipersock Linux - Networking 6 08-24-2004 04:00 PM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
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