Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

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 ""?

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

Old 04-19-2012, 01:15 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,986
Blog Entries: 14

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

nameserver x.x.x.x
nameserver x.x.x.x
That tells it to append 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:

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

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 ""; in my dhcpd.conf. Now the machines can ping by just the host, appending the DN. Thanks for the hint!!

1 members found this post helpful.


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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:33 PM.

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